Click or drag to resize

MacroFeatureExTParams, THandler Class

Represents macro feature which stores additional user parameters and provides per feature handler. This version of macro feature is useful where it is required to track the lifecycle of an individual feature as MacroFeatureEx behaves as a service and it creates one instance per application session
Inheritance Hierarchy
SystemObject
  CodeStack.SwEx.MacroFeatureMacroFeatureEx
    CodeStack.SwEx.MacroFeatureMacroFeatureExTParams
      CodeStack.SwEx.MacroFeatureMacroFeatureExTParams, THandler

Namespace:  CodeStack.SwEx.MacroFeature
Assembly:  CodeStack.SwEx.MacroFeature (in CodeStack.SwEx.MacroFeature.dll) Version: 0.5.3.0 (0.5.3.0)
Syntax
public abstract class MacroFeatureEx<TParams, THandler> : MacroFeatureEx<TParams>
where TParams : class, new()
where THandler : class, new(), IMacroFeatureHandler

Type Parameters

TParams
Type of class representing parameters data model
THandler
Handler of macro feature

The MacroFeatureExTParams, THandler type exposes the following members.

Properties
  NameDescription
Public propertyLogger (Inherited from MacroFeatureEx.)
Top
Methods
  NameDescription
Protected methodGetParameters
Returns the current instance of parameters data model for the feature
(Inherited from MacroFeatureExTParams.)
Protected methodOnEditDefinition
Called when the Edit feature menu is clicked from the feature manager tree
Protected methodOnRebuild
Called when macro feature is rebuilding
Protected methodOnSetDimensions(ISldWorks, IModelDoc2, IFeature, DimensionDataCollection, TParams)
Override this function to configure the dimensions of macro feature (i.e. position, style, etc.)
(Inherited from MacroFeatureExTParams.)
Protected methodOnSetDimensions(ISldWorks, IModelDoc2, IFeature, MacroFeatureRebuildResult, DimensionDataCollection, TParams)
Override this function to configure the dimensions of macro feature (i.e. position, style, etc.)
(Inherited from MacroFeatureExTParams.)
Protected methodOnUpdateState
Called when state of the feature is changed (i.e. feature is selected, moved, updated etc.) Use this method to provide additional dynamic security options on your feature (i.e. do not allow dragging, editing etc.)
Protected methodSetParameters(IModelDoc2, IFeature, IMacroFeatureData, TParams)
Assigns the instance of data model to the macro feature parameters
(Inherited from MacroFeatureExTParams.)
Protected methodSetParameters(IModelDoc2, IFeature, IMacroFeatureData, TParams, MacroFeatureOutdateState_e)
Assigns the instance of data model to the macro feature parameters
(Inherited from MacroFeatureExTParams.)
Top
Remarks
Mark the class as COM visible with ComVisibleAttribute
See Also