Solid Edge FrameworkSupport Type Library
GetRelatedObject Method
Specifies the index of the related object.
Returns the graphic object at the index.
Returns the keypoint value of the index. For objects participating in collinear, concentric, equal, parallel, perpendicular, tangent, horizontal, or vertical constraints, Keypoint_Index is -1, meaning that the object itself, not a particular keypoint on the object, is constrained. If a constraint object involves an object keypoint (keypoint, point-on, intersect, horizontal align, or vertical align, for example), then the Keypoint_Index returned for that object is not -1, but a value such as igKeyPointStart, igKeyPointEnd, and so forth.
Description
Returns an object and its key point index at a given index.
Syntax
Visual Basic
Public Sub GetRelatedObject( _
   ByVal Index As Long, _
   ByRef GraphicObject As Object, _
   ByRef Keypoint_Index As Long _
) 
Parameters
Index
Specifies the index of the related object.
GraphicObject
Returns the graphic object at the index.
Keypoint_Index
Returns the keypoint value of the index. For objects participating in collinear, concentric, equal, parallel, perpendicular, tangent, horizontal, or vertical constraints, Keypoint_Index is -1, meaning that the object itself, not a particular keypoint on the object, is constrained. If a constraint object involves an object keypoint (keypoint, point-on, intersect, horizontal align, or vertical align, for example), then the Keypoint_Index returned for that object is not -1, but a value such as igKeyPointStart, igKeyPointEnd, and so forth.
See Also

Relation2d Object  | Relation2d Members

Send comments on this topic.