Inventor General Discussion

Inventor General Discussion

Reply
Active Member
10 Posts
0 Kudos
Registered: ‎02-15-2012
Post 1 of 6
Accepted Solution

I need some help writing an equation in Parameters

435 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.

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.

Valued Mentor
322 Posts
95 Kudos
Registered: ‎02-06-2004
Post 2 of 6

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
10 Posts
0 Kudos
Registered: ‎02-15-2012
Post 3 of 6

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*
1,106 Posts
269 Kudos
Registered: ‎09-03-2008
Post 4 of 6

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
10 Posts
0 Kudos
Registered: ‎02-15-2012
Post 5 of 6

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
149 Posts
27 Kudos
Registered: ‎10-20-2001
Post 6 of 6

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)

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!