Click or drag to resize

MacroFeatureExOnEditDefinition Method

Called when the Edit feature menu is clicked from the feature manager tree

Namespace:  CodeStack.SwEx.MacroFeature
Assembly:  CodeStack.SwEx.MacroFeature (in CodeStack.SwEx.MacroFeature.dll) Version: 0.5.3.0 (0.5.3.0)
Syntax
protected virtual bool OnEditDefinition(
	ISldWorks app,
	IModelDoc2 model,
	IFeature feature
)

Parameters

app
Type: ISldWorks
Pointer to the application
model
Type: IModelDoc2
Pointer to the current model where the feature resided
feature
Type: IFeature
Pointer to the feature being edited

Return Value

Type: Boolean
Result of the editing
Remarks
Use this handler to display property manager page or any other user interface to edit feature. Refer the SwEx.PMPage Framework for advanced way of creating property pages. Usually feature needs to be rolled back in the feature tree when edited. Use IMacroFeatureData::AccessSelections to start editing of the feature. Call IFeature::ModifyDefinition to submit the changes or IMacroFeatureData::ReleaseSelectionAccess to cancel the editing. It is important to use the same pointer to IMacroFeatureData in all of the above methods. Use IFeature::GetDefinition to get the pointer and store it in a variable.
See Also