|
|
|
|
|
Use the Custom Logic Connection window to connect customized code to events and attributes. A custom logic connection lets you create your own type of connection. You have access to the source instance, target instance, and the event data (if any) passed on the source event.
During generation, the Composition Editor attaches your custom logic to the connection class instance. It is not available to any other connection or part. To reuse your code, attach it to the part using an event-to-member function connection instead.
Fields
Push buttons
Custom Logic
Connections
Connections
Connecting Features to
Custom Logic
Making Connections in
the Composition Editor
Manipulating
Connections on the Free-Form Surface
Connection Windows
Attribute-to-Attribute
Connection - Settings Window
Event-to-Action Connection -
Settings Window
Constant Parameter Value
Properties Window
Member Function Connection -
Settings Window
Use the Custom Logic field to enter the customized code you want connected to this event. When code is generated for the part, this code is added as a member of the connection class instance. To get a list of member functions that can be called for a part, browse features for the part. To access a part in the Custom Logic field other than the source or target, you must use a pointer to the part. For example, the pointer to access myPart is imyPart().
Custom Logic
Connections
Connections
Connecting Features to
Custom Logic
Making Connections in
the Composition Editor
Manipulating
Connections on the Free-Form Surface
Browsing a Part's Features
Connection Windows
Attribute-to-Attribute
Connection - Settings Window
Event-to-Action Connection -
Settings Window
Constant Parameter Value
Properties Window
Member Function Connection -
Settings Window
Select Add (or Update) to add the connection to (or update it in) the list.
Select Source to paste a reference to the source object pointer into the insertion point of the multiline edit (MLE) field.
Select Target to paste a reference to the target object pointer into the insertion point of the multiline edit (MLE) field.
Select Event to paste a reference to the source event pointer into the insertion point of the multiline edit (MLE) field. The event is an instance of INotifificationEvent.
