Using iLogic to change model tolerance

Using iLogic to change model tolerance

Groentje
Explorer Explorer
757 Views
1 Reply
Message 1 of 2

Using iLogic to change model tolerance

Groentje
Explorer
Explorer

Hello, i'am trying to change a tolerance in the model (ipt) by using Ilogic.

When i use:

 

 

rule tolerance.png

 

then the value in the tolerance is multiplied by 10

 

tolerance d0.png

 

When i use retrieve dimension in the drawing (idw) the values from the tolerance show +20 / -20 (also multiplied by 10)

 

tolerance idw.png

 

Is this a bug in inventor or is my knowledge poor?

0 Likes
Accepted solutions (1)
758 Views
1 Reply
Reply (1)
Message 2 of 2

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi Groentje,

 

Inventor's internal unit is centimeters, so it's reading 2 as 2 cm's (when your document settings > units is set to millimeters).

 

You can do this to ensure that it reads it as mm:

 

Parameter.Param("d0").Tolerance.SetToDeviation(tol1 & "mm" ,tol2 & "mm")

 

 

Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum too:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature