Click or drag to resize

IParameterConverterConvertDisplayDimensions Method

Converts display dimensions from previous version

Namespace:  CodeStack.SwEx.MacroFeature.Base
Assembly:  CodeStack.SwEx.MacroFeature (in CodeStack.SwEx.MacroFeature.dll) Version: 0.5.3.0 (0.5.3.0)
Syntax
IDisplayDimension[] ConvertDisplayDimensions(
	IModelDoc2 model,
	IFeature feat,
	IDisplayDimension[] dispDims
)

Parameters

model
Type: IModelDoc2
Pointer to current model
feat
Type: IFeature
Pointer to current feature
dispDims
Type: IDisplayDimension
Array of display dimensions from the previous version

Return Value

Type: IDisplayDimension
Array of display dimensions in the new version of macro feature
Remarks
If number of dimensions have changed in the new version - automatic upgrade is not possible as currently SOLIDWORKS API doesn't allow to change the existing display dimensions of macro feature. If this is the case return the DisplayDimensionPlaceholder as a placeholder of the updated dimension. In this case dimension will not be create but feature will be operational and Dimensions will be returned as the state of the feature parameters
See Also