Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dimension display, i.e. Expression, Value etc

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
183 Views, 0 Replies

Dimension display, i.e. Expression, Value etc

Hello,
I have been creating lots of IParts and looking at sketches with dimensions
displayed as expressions can make the sketch unreadable, hence I created the
following to toggle the display status of dimensions between expresssion and
value, however the following code will not change the dimension display
value.

If ThisApplication.ActiveDocumentType = kPartDocumentObject Then
Dim varDocument As PartDocument, varParams As Inventor.Parameters
Set varDocument = ThisApplication.ActiveDocument

If varDocument.ComponentDefinition.Parameters.DimensionDisplayType =
kDimensionDisplayAsExpession Then
varDocument.ComponentDefinition.Parameters.DimensionDisplayType
= kDimensionDisplayAsValue
Else:
varDocument.ComponentDefinition.Parameters.DimensionDisplayType =
kDimensionDisplayAsExpession
End If

varDocument.Update
End If

Any ideas as to why this isn't working?

Thanks

Scott
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report