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: 

iRules & Parameters

3 REPLIES 3
Reply
Message 1 of 4
shmartin89
599 Views, 3 Replies

iRules & Parameters

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

3 REPLIES 3
Message 2 of 4
shmartin89
in reply to: shmartin89

'custom text'****

Message 3 of 4
waynehelley
in reply to: shmartin89

 

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

 

 

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
Message 4 of 4
waynehelley
in reply to: waynehelley

* Use "End IF', not "ENDIF"

 

Pasting into IE erased the space.

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit

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

Post to forums  

Autodesk Design & Make Report