Inventor General Discussion

Inventor General Discussion

Reply
Valued Mentor
593 Posts
36 Kudos
Registered: ‎07-10-2012
Post 1 of 3
Accepted Solution

Simple Ilogic question

181 Views, 2 Replies
03-15-2013 08:18 AM

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

 

- 2500K @ 4.2Ghz- 8GB - Radeon7970 -
- 2x Xeon 2670V2 - 64GB - W7000 - 4x Quadro 2000 -

- Factory Design Suite Premium Subscription-

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

Distinguished Contributor
110 Posts
27 Kudos
Registered: ‎02-28-2008
Post 2 of 3

Re: Simple Ilogic question

03-15-2013 09:04 AM 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

Valued Mentor
593 Posts
36 Kudos
Registered: ‎07-10-2012
Post 3 of 3

Betreff: Simple Ilogic question

03-15-2013 03:04 PM in reply to: Logos_Atum

Thank you very much...

 

I will change it on monday :smileyhappy:

 

 

Kind regards

 

Daniel

- 2500K @ 4.2Ghz- 8GB - Radeon7970 -
- 2x Xeon 2670V2 - 64GB - W7000 - 4x Quadro 2000 -

- Factory Design Suite Premium Subscription-

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!