Inventor General Discussion

Inventor General Discussion

Reply
Active Member
TRYoung71
Posts: 10
Registered: ‎02-15-2012
Message 1 of 6 (341 Views)
Accepted Solution

I need some help writing an equation in Parameters

341 Views, 5 Replies
03-07-2012 10:47 AM

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.
Valued Mentor
japike
Posts: 322
Registered: ‎02-06-2004
Message 2 of 6 (336 Views)

Re: I need some help writing an equation in Parameters

03-07-2012 10:59 AM in reply to: TRYoung71

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

Peace,
Jeff
Inventor 2013
Active Member
TRYoung71
Posts: 10
Registered: ‎02-15-2012
Message 3 of 6 (324 Views)

Re: I need some help writing an equation in Parameters

03-07-2012 12:15 PM 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.
*Expert Elite*
cwhetten
Posts: 1,072
Registered: ‎09-03-2008
Message 4 of 6 (321 Views)

Re: I need some help writing an equation in Parameters

03-07-2012 12:17 PM 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.

Active Member
TRYoung71
Posts: 10
Registered: ‎02-15-2012
Message 5 of 6 (318 Views)

Re: I need some help writing an equation in Parameters

03-07-2012 12:19 PM 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.
Distinguished Contributor
nmunro
Posts: 144
Registered: ‎10-20-2001
Message 6 of 6 (301 Views)

Re: I need some help writing an equation in Parameters

03-07-2012 01:00 PM in reply to: TRYoung71

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

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.