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
Name | Input / Output | Required? | Type | Comment |
---|---|---|---|---|
dimension | In | Yes | Integer | |
geoFeature | In | Yes | GeometricFeature |
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 */