Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
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: 

iLogic to determin whether a dimension on drawing is angular?

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
engilic
712 Views, 5 Replies

iLogic to determin whether a dimension on drawing is angular?

Hi,

 

Is it possible by iLogic to determin whether a dimension is angular or not?

I know it is possible to add angular dimension by AddAngular but is it possible to check the existing one?

 

I could not find any difference between Linear and Angular dimension except that the Precision parameter in the Edit Dimension window is called Primary Unit or Angular Unit and also Tolerance Precision called Primary Tolerance and Angular Tolerance but actually, they belong to the same parameters Precision and TolerancePrecision so I cannot use Try-Catch to determine whether the dimension is Angular or Linear, maybe there is some other way, something else that make difference between Linear and Sngular dimensions.

 

Thank you

 

Have a lovely day.

Labels (3)
5 REPLIES 5
Message 2 of 6
Ralf_Krieg
in reply to: engilic

Hello

 

Check the Dimension.Type if it is ObjectTypeEnum.kLinearGeneralDimensionObject or ObjectTypeEnum.kAngularGeneralDimensionObject


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 3 of 6
engilic
in reply to: engilic

Thank you @Ralf_Krieg ,

 

so simple.

 

Thank you very much

Message 4 of 6
m.joudivand
in reply to: Ralf_Krieg

Could you also write the Enum Object Type for the diametric/radial dimensions for iLogic, please?

Message 5 of 6
Ralf_Krieg
in reply to: engilic

Hello

 

kDiameterGeneralDimensionObject and kRadiusGeneralDimensionObject


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 6 of 6
m.joudivand
in reply to: Ralf_Krieg

Thank you very much @Ralf_Krieg 

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

Post to forums  

Autodesk Design & Make Report