Solid Edge FrameworkSupport Type Library
AddLink Method
Specifies the first object to be linked.
Specifies the second object to be linked.
If set, checking is performed to ensure that the relationship does not contradict previously placed relationships.
Description
Adds a link relationship to a Relations2d collection.
Syntax
Visual Basic
Public Function AddLink( _
   ByVal Object1 As Object, _
   ByVal Object2 As Object, _
   Optional ByVal guaranteed_ok As Variant _
) As Relation2d
Parameters
Object1
Specifies the first object to be linked.
Object2
Specifies the second object to be linked.
guaranteed_ok
If set, checking is performed to ensure that the relationship does not contradict previously placed relationships.
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 with extreme caution. It is best to use this feature only on a new element with no other relationships.
See Also

Relations2d Collection  | Relations2d Members

Send comments on this topic.