- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have existing code that copies the Mass property from the ModelDocument in a drawing.
It gets rounded according to some cases set up in the rule, then assigned to a custom property in the drawing.
The custom property is then used to populate a value in a sketch symbol.
The code we use to copy the value is the following:
model = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
mass = iProperties.Mass(model) * 2.20462262
We're running into a situation where this does not work well. It turns out this doesn't play nicely with Model States. Instead of the value of the Model State actually used in the drawing, we seem to get the mass of the Model State that the model was last saved in.
How can we change this code to either pull the property from a specified Model State name, or from the one actually used in the drawing view?
Solved! Go to Solution.