Inventor General

Reply
Valued Contributor
shmartin89
Posts: 62
Registered: ‎04-25-2012
Message 1 of 4 (186 Views)

iRules & Parameters

186 Views, 3 Replies
11-22-2012 05:54 AM

I want to reference parameters in an iRule in such a way that the value of parameter A determines the value of parameter b.

 

In this case i want to reference the dimensional height of a UC beam into a parameter <UC_HEIGHT> and then allow this to determine the value of uc designation size in a parameter <UC_DESIGNATION>

 

This would be useful because instead of typing the uc designation of a beam into the part description or matl. list i can just reference a parameter.

 

Is this possible? Iv tried an iRule along the lines of

 

if parameter (uc height) = xxx.x then parameter (uc designation) = 'custom test'

 

but get error messages

 

Cheers,

 

Sandy

Valued Contributor
shmartin89
Posts: 62
Registered: ‎04-25-2012
Message 2 of 4 (180 Views)

Re: iRules & Parameters

11-22-2012 06:13 AM in reply to: shmartin89

'custom text'****

Valued Contributor
waynehelley
Posts: 99
Registered: ‎09-10-2012
Message 3 of 4 (149 Views)

Re: iRules & Parameters

11-23-2012 01:24 AM in reply to: shmartin89

 

IfParameter("uc_height")=10
Parameter("uc_destination")="custom text"
EndIf

 

 

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2013
Windows 7 Enterprise, 64-bit
Valued Contributor
waynehelley
Posts: 99
Registered: ‎09-10-2012
Message 4 of 4 (137 Views)

Re: iRules & Parameters

11-23-2012 03:51 AM in reply to: waynehelley

* Use "End IF', not "ENDIF"

 

Pasting into IE erased the space.

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2013
Windows 7 Enterprise, 64-bit

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube