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: 

I need some help writing an equation in Parameters

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
TRYoung71
755 Views, 5 Replies

I need some help writing an equation in Parameters

I need to put the following into equation form to plug into a User Parameter:

 

if d91 falls in the range of 4" to 11"

then d92 = d91 + 2"

else d92 = 7.5"

 

For some reason, I can't seem to wrap my head around this one.

 

Thanks in advance!

Windows 7 Pro, SP1
Inventor 2012 SP1

Due to the nature of our business, I am not permitted to attach any files showing models or .idw environments of any actual work-related components.
5 REPLIES 5
Message 2 of 6
japike
in reply to: TRYoung71

This is the perfect senerio to start leaning iLogic. Check out the help files.

Peace,
Jeff
Inventor 2022
Message 3 of 6
TRYoung71
in reply to: japike

Thanks, Jeff!  I'm still learning Inventor, and had not used iLogic yet.  I appreciate the nudge in that direction!

Windows 7 Pro, SP1
Inventor 2012 SP1

Due to the nature of our business, I am not permitted to attach any files showing models or .idw environments of any actual work-related components.
Message 4 of 6
cwhetten
in reply to: TRYoung71

iLogic is going to be the way to go.  This is a simple rule to create.  On your manage tab, click the "Add Rule" command, and give your rule a name (whatever you would like).

 

Type your rule to look like so, or copy and paste:

 

If d91 >= 4 And d91 <= 11 Then
	d92 = d91 + 2
Else
	d92 = 7.5
	
End If

iLogicVb.UpdateWhenDone = True

 

This will give you what you seek.

 

iLogic is a very powerful tool, and it is definitely worth investing some time to learn.

 

Edit:  It would also be good to get into the habit of naming your critical parameters so that they are easier to find and use in iLogic.

Message 5 of 6
TRYoung71
in reply to: cwhetten

Yep.  That's what I came up with, after Jeff nudged me in the iLogic direction.  I appreciate your time, too.

Windows 7 Pro, SP1
Inventor 2012 SP1

Due to the nature of our business, I am not permitted to attach any files showing models or .idw environments of any actual work-related components.
Message 6 of 6
nmunro
in reply to: TRYoung71

iLogic is a great way to go. A solution for the parameter only approach (Done with just user parameters)

 

 

        


https://c3mcad.com

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

Post to forums  

Autodesk Design & Make Report