Inventor General

Reply
Valued Mentor
Logos_Atum
Posts: 464
Registered: ‎07-10-2012
Message 1 of 3 (165 Views)
Accepted Solution

Simple Ilogic question

165 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 -
- Xeon 1230V2 @ stock Ghz- 32GB - Quadro 2000 -
- 2x Xeon 2670V2 - 64GB - W7000 -

- Factory Design Suite Premium Subscription-
Distinguished Contributor
Posts: 110
Registered: ‎02-28-2008
Message 2 of 3 (144 Views)

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
Logos_Atum
Posts: 464
Registered: ‎07-10-2012
Message 3 of 3 (125 Views)

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 -
- Xeon 1230V2 @ stock Ghz- 32GB - Quadro 2000 -
- 2x Xeon 2670V2 - 64GB - W7000 -

- Factory Design Suite Premium Subscription-

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 interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

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