3D Shape Methods

Note: To view an example, import the 2016x EKL Enhancements.3dxml file located in win_b64\startup\Knowledgeware\Sample1 in the installation folder.

This page discusses:

GeometricFeature.GetNearSubElements()

Function used to return the sub-elements of a feature that are the nearest to a point, curve or surface. Those points, curves or surfaces can be anywhere in the model. They are not necessary part of the feature whose sub-elements you are looking for.

Signature

GeometricFeature.GetNearSubElements(dimension : Integer, geoFeature : GeometricFeature) : List

Arguments

NameInput / OutputRequired?TypeComment
dimensionInYesInteger
geoFeatureInYesGeometricFeature

ReturnType

List

Example

let subElements (List)
let pad (GeometricFeature)
let nearToFeature (GeometricFeature)

set pad=PartBody\Pad.1

set nearToFeature = PartBody\Point.1
subElements = pad->GetNearSubElements(1, nearToFeature) /* nearest edges of a pad to a point */

set nearToFeature = PartBody\Line.1
subElements = pad->GetNearSubElements(2, nearToFeature) /* nearest pad faces to a line */

set nearToFeature = PartBody\Plane.1
subElements = pad->GetNearSubElements(0, nearToFeature) /* nearest vertexes of a pad to a plane */

GeometricFeature.GetSubElements()

Function used to return sub-elements of a feature. An integer argument specifies the type you want:

  • vertex (0)
  • edge (1)
  • face (2).

Signature

GeometricFeature.GetSubElements(dimension : Integer) : List

Arguments

NameInput / OutputRequired?TypeComment
dimensionInYesInteger

ReturnType

List

Example

let subElements (List)
subElements = PartBody\Pad.1.GetSubElements(0)
subElements = PartBody\Pad.1.GetSubElements(1)
subElements = PartBody\Pad.1GetSubElements(2)

GeometricFeature.ListParents()

Signature

GeometricFeature.ListParents() : List

ReturnType

List

Example

let parents (List)
parents = PartBody\Pad.1.ListParents()