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 set Tolerance Type without using SetTo...

0 REPLIES 0
Reply
Message 1 of 1
engilic
260 Views, 0 Replies

iLogic to set Tolerance Type without using SetTo...

Hi all,

 

I would like to make a code to change the style of dimensions on a drawing but before that to get tolerance type and Upper and Lower limit together with Hole and Shaft tolerance if they are not grayed out (disabled).

 

I can do it by getting the Tolerance Type (5 digit number, ex. 31245,  or description like kBasicTolerance) and then with multiple loops set the specific Type of Tolerance with SetToBasic, SetToDeafult, SetTo....

Is there a way to use Tolerance.ToleranceType.Equals(something) or some other direct way of saying "I want new Tolerance Type to be the same as the old one which I saved as some parameter"?


I tried to put in brackets old dimension type (original) Tolerance.ToleranceType or Tolerance.ToleranceType.ToString, nothing works.

 

Then I guess it is easy to save Upper and Lower limit, Hole and Shaft tolerance, and put them back.

 

Thank you

Labels (2)
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