SelectionSubscriber Class¶
-
class
NXOpen.
SelectionSubscriber
¶ Bases:
NXOpen.TransientObject
Defines a
SelectionSubscriber
for managing selection eventsTo create a new instance of this class, use
NXOpen.Selection.CreateSelectionSubscriber()
New in version NX11.0.0.
Methods¶
Method | Description |
---|---|
Activate | Activate the subscriber so that it will receive selection change notifications. |
Deactivate | Deactivate the subscriber so that it will not receive selection change notifications. |
Dispose | Releases resources allocated by the selection subscriber. |
IsActive | Is the subscriber active? |
RegisterOnSelectionChangeCallback | Register a callback which is called at the end of a series of changes to the set of selected objects. |
Method Detail¶
Activate¶
-
SelectionSubscriber.
Activate
¶ Activate the subscriber so that it will receive selection change notifications.
Signature
Activate()
New in version NX11.0.0.
License requirements: None.
Deactivate¶
-
SelectionSubscriber.
Deactivate
¶ Deactivate the subscriber so that it will not receive selection change notifications.
Signature
Deactivate()
New in version NX11.0.0.
License requirements: None.
Dispose¶
-
SelectionSubscriber.
Dispose
¶ Releases resources allocated by the selection subscriber.
Call this method when you are done with your selection operations.
Signature
Dispose()
New in version NX11.0.0.
License requirements: None.
IsActive¶
-
SelectionSubscriber.
IsActive
¶ Is the subscriber active?
Signature
IsActive()
Returns: Return type: bool New in version NX11.0.0.
License requirements: None.
RegisterOnSelectionChangeCallback¶
-
SelectionSubscriber.
RegisterOnSelectionChangeCallback
¶ Register a callback which is called at the end of a series of changes to the set of selected objects.
The series of changes are all of the changes which occur as part of the response to a single user action.
Signature
RegisterOnSelectionChangeCallback(callbackToRegister)
Parameters: callbackToRegister (CallableObject) – Callback New in version NX11.0.0.
License requirements: None.