Share

AssemblyEvents.OnNewRelationship Event

Parent Object: AssemblyEvents

Description

The OnNewRelationship event notifies a client when a new constraint or connection is added to an assembly.

Syntax

AssemblyEvents.OnNewRelationship( DocumentObject As AssemblyDocument, Relationship As Object, BeforeOrAfter As EventTimingEnum, Context As NameValueMap, HandlingCode As HandlingCodeEnum )

Parameters

Name Type Description
DocumentObject AssemblyDocument The AssemblyDocument object that represents the assembly the constraint is being added to.
Relationship Object The new relationship (an AssemblyConstraint, iMateResult, or AssemblyConnection) that was just created. When the value of the BeforeOrAfter argument is kBefore, Nothing is returned for this argument. When the value is kAfter, the new assembly relationship object is returned.
BeforeOrAfter EventTimingEnum Input EventTimingEnum indicating if the event is being fired before (kBefore) or after (kAfter) the relationship is created.
Context NameValueMap Input NameValueMap object that can be used to determine the context of why the event fired. No context information is currently provided for this event.
HandlingCode HandlingCodeEnum Output HandlingCodeEnum that indicates how you are handling the event. The value of this argument is currently ignored for this event.

Version

Introduced in version 2014

Was this information helpful?