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: 

Simple Ilogic question

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Logos_Atum
263 Views, 2 Replies

Simple Ilogic question

Hello there,

 

I´d like to ask a very simple question about Ilogic.

I need to change the length of geometry by a text parameter.

How to do this?

 

I tried this:

 

Also I searched Youtube but I have not found anything yet

 

Any help would be greatly appreciated

If widthselection="420" Then

Parameter(d11)=725mm
Parameter(width)=420mm

ElseIf widthselection="620" Then

Parameter(d11)=1075mm
Parameter(width)=620mm

ElseIf widthselection="820" Then

Parameter(d11)=1425mm
Parameter(width)=820mm

EndIf

 

Dogs aren´t flammable.
2 REPLIES 2
Message 2 of 3
danvang
in reply to: Logos_Atum

remove the "mm" after your numeric values. The parameter should already have a unit defined. So your code should be.
If widthselection="420" Then

d11=725
width=420

ElseIf widthselection="620" Then

d11=1075
width=620

ElseIf widthselection="820" Then

d11=1425
width=820

End If

** If my reply resolves this issue, please choose "Accept as Solution" **
Dan Vang
Message 3 of 3
Logos_Atum
in reply to: Logos_Atum

Thank you very much...

 

I will change it on monday 🙂

 

 

Kind regards

 

Daniel

Dogs aren´t flammable.

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

Post to forums  

Autodesk Design & Make Report