Solid Edge FrameworkSupport Type Library
AddEqualDirection Method
Specifies the first object to which the constraint is to be applied.
Specifies the index of the first keypoint.
Specifies the second object to which the constraint is to be applied.
Specifies the index of the second keypoint.
If set to 0, a check is performed to ensure that the relationship does not contradict previously placed relationships. If set to 1, this check is bypassed.
Description
This method adds a relationship to the referenced Relations2d collection in which the two specified objects have equal direction at the specified keypoints.
Syntax
Visual Basic
Public Function AddEqualDirection( _
   ByVal Object1 As Object, _
   ByVal Index1 As Long, _
   ByVal Object2 As Object, _
   ByVal Index2 As Long, _
   Optional ByVal guaranteed_ok As Variant _
) As Relation2d
Parameters
Object1
Specifies the first object to which the constraint is to be applied.
Index1
Specifies the index of the first keypoint.
Object2
Specifies the second object to which the constraint is to be applied.
Index2
Specifies the index of the second keypoint.
guaranteed_ok
If set to 0, a check is performed to ensure that the relationship does not contradict previously placed relationships. If set to 1, this check is bypassed.
Remarks
Relationship Add methods have checks to ensure that a new relationship does not contradict previously placed relationships. For example, AddHorizontal will return an error if the line already has a vertical relationship. This check can be turned off to enhance performance. The optional guaranteed_ok argument, if set to 1, bypasses relationship checking. However, this feature could leave the system in an unsolvable state, so use it carefully. It is best to use this feature only on a new element with no other relationships.
See Also

Relations2d Collection  | Relations2d Members