I have a script which allows a user to change the fonts of all Dimensions and Spot Dimensions Types in a model by editing the values of four inputs (Font, Size, Italic, and Width Factor). The image below is the portion of the script for Dimension Types. When I run the script, it modifies the fonts for both Dimensions and Spot Dimension Types. It also finds four additional Dimension Types which do not contain the parameters I’m trying to edit. I have a total of 33 Dimension and Spot Dimension Types defined within my model, but it’s finding a total of 37. I have the same script for Spot Dimensions, which only finds and modifies the 22 Spot Dimension types I have defined.
My questions:
What could those four additional Dimension Types be? The script does what it’s supposed to do, but throws an error.
I think I’m okay with the script modifying both Dimension and Spot Dimension Types because they will most likely use the same font properties. Is there a way to filter out Spot Dimensions if I did want to apply different properties?
I’ve attached the portion of the script dealing with Dimension Types.
Change Project Fonts_Error.dyn (12.4 KB)