The resource for software developers working with Design, Lifecycle and Simulation technologies from Autodesk.

03/22/2013

Replace Dimension Style

When you right-click on a Dimension style in the Style and Standard Editor dialog, then you can select Replace Style. This will go through all the local Object Defaults and check if the given Dimension style is used by any of its dimension related settings (Angle Dimension, Baseline Dimension Set, Bend Note, etc) which have the dimension icon next to them. The ones that are using the selected Dimension style will be adjusted to use the other Dimension style you provided in the Replace Style dialog.

You can do the same programmatically. You can go through all the local ObjectDefaultsStyle objects and check their Dimension related properties, either by hard-coding them in your program or doing it using COM Type Information. This sample shows both.

Comments

When you right-click on a Dimension style in the Style and Standard Editor dialog, then you can select Replace Style. This will go through all the local Object Defaults and check if the given Dimension style is used by any of its dimension related settings (Angle Dimension, Baseline Dimension Set, Bend Note, etc) which have the dimension icon next to them. The ones that are using the selected Dimension style will be adjusted to use the other Dimension style you provided in the Replace Style dialog.

You can do the same programmatically. You can go through all the local ObjectDefaultsStyle objects and check their Dimension related properties, either by hard-coding them in your program or doing it using COM Type Information. This sample shows both.