FeatureChange
The FeatureChange event notifies the client whenever a feature changes.
Remarks
This is provided for features in parts and also for assembly features. A change is defined as the modification of a feature’s definition. This can occur when the end-user uses the edit command for that particular feature and when a feature is modified using the API. A feature recomputing as the result of other changes in the model is not considered a feature change. For example, if a fillet recomputes because the underlying geometry has changed, this is not considered a feature change because only the resulting geometry changed, not the definition of the fillet. Also, editing any of the various objects the feature is dependent on (sketch, parameters) is also not considered a feature change.
EventNames:
FeatureChange_Pre
FeatureChange_Post
Examples:
FeatureChange_Pre:
Register-InventorEvent -EventName FeatureChange_Pre -Action 'PreFeatureChange'
function PreFeatureChange() {
#Write event code here
}
FeatureChange_Post:
Register-InventorEvent -EventName FeatureChange_Post -Action 'PostFeatureChange'
function PostFeatureChange() {
#Write event code here
}