How to edit the value of a specific dimension
October 28, 2009
In most cases if you want to modify geometry of any feature, it is more convenient to edit the value of a specific dimension directly using Dimension::SetSystemValue3 method instead of editing the definition of the feature with Feature::ModifyDefinition method.
The easiest way to retrieve a pointer to the corresponding dimension is via ModelDoc2::Parameter method that identifies them by name.
Similarly to options available in User Interface, the Dimension::SetSystemValue3 method allows you to modify dimensions in a specific configuration or in all configurations.
For example:
...
swModel.Parameter("D1@Extrude1").SetSystemValue3 0.1, swSetValueInConfiguration_e.swAllConfiguration, ""
...
You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.
| Attachment | Size |
|---|---|
| amcb_api_tip_05.flv | 5.25 MB |