Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using iLogic to change model tolerance

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
brian
1186 Views, 2 Replies

Using iLogic to change model tolerance

Hello Group-

 

I need to change one dimension using iLogic.  It changes due to the path taken to manufacture the part.  In a nutshell majority of the time the "OD" has a +.004 / .000 tolerance and the model is drawn at the minimum size.  There are cases when the "OD" has a  +.005/-.005 tolerance and is modeled at the nominal size.   I've learned some of the iLogic to make the change I'm after but not all.  I'm having trouble setting ModelValueType to change the model size.

 

See the code below, for setting +/-.005" 

 

IV2012

 

Thanks for your help

Brian Brisbin

National K Works Inc.

 

Parameter.Param("OD").Tolerance.SetToDeviation(".005 in" , "-.005 in")  'will set tolerace
Parameter.Param("OD").Comment = "Tolerance Set by a Rule +/-.005"""
Parameter.Param("OD").ModelValueType = kNominalValue 'received: parameter is incorrect
2 REPLIES 2
Message 2 of 3
cwhetten
in reply to: brian

Hi and welcome to the forum!

 

You've almost got it.  Just add one thing to your line as follows:

 

Parameter.Param("OD").ModelValueType = ModelValueTypeEnum.kNominalValue

Cameron Whetten
Inventor 2012

Please click "Accept as Solution" if this response answers your question.

Message 3 of 3
jddickson
in reply to: brian

I don’t know if it’s the best way but I think you can use an if statement saying if the OD is greater then ??? then use whatever tolerance you want.

 

I hope this helps.

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

Post to forums  

Autodesk Design & Make Report