This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/ref/xcad/docs/custom-features/data/index.md
2022-10-15 19:16:08 +02:00

860 B

title caption description order
Storing data (parameters, bodies, selection) in SOLIDWORKS macro feature Data Storing the parameters, metadata, dimensions, selections in the SOLIDWORKS macro feature using xCAD framework 3

Macro feature can store additional metadata and entities. The data includes

  • Parameters
  • Selections
  • Edit bodies
  • Dimensions

Required data can be defined within the macro feature data model. Special parameters (such as selections, edit bodies or dimensions) should be decorated with appropriate attributes, all other properties will be considered as parameters.

Data model is used both as input and output of macro feature. Parameters can be accessed via SwMacroFeature.Parameters property and also passed to OnRebuild handler.

{% code-snippet { file-name: ~CustomFeature\MacroFeatureParameters.* } %}