You should add an event to your application.
PartEvents.OnSurfaceBodyChanged Event
PartEvents.OnSurfaceBodyChanged Event
Parent Object: PartEvents
Description
The OnSurfaceBodyChanged event notifies the client when the surface and solid geometry of a part geometrically changes.
Syntax
PartEvents.OnSurfaceBodyChanged( Context As NameValueMap, BeforeOrAfter As EventTimingEnum, HandlingCode As HandlingCodeEnum )
Parameters
Context |
Input object that can be used to determine the context of why the event fired. Additional information is provided through this argument to help in understanding the context of the notification. Name = "Undo". Value = A Boolean indicating if the change occurred as the result of an undo operation. This context value is only provided in the case where the change does occur because of an undo operation, so the value will always be True. |
BeforeOrAfter |
Input indicating when the event is being fired. Notification is only sent after the surface body has changed, so this value is always kAfter. |
HandlingCode |
|
Remarks
If there are multiple surface bodies within a part, (solid and/or work surfaces), this notification is sent if any of them change.
Version
Introduced in Inventor version 4
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2