Inventor General Discussion

Inventor General Discussion

Reply
Contributor
ZachJa
Posts: 19
Registered: ‎06-18-2012
Message 1 of 3 (127 Views)

Multi parameter, iproperty

127 Views, 2 Replies
06-26-2012 12:59 AM

How to set multi parameter, iproperty using ilogic (or smth else)?

I hav eparameters: d1=50, d2=100, d3=5. I need to set a new multi parameter/iproperty that the final value is:

Angle 50x100x5 (suppousedly code should contain smth like: "Angle", "d1", "x", "d2", "x", "d3") but I do not know exactly... ;(

Please Help!

Contributor
gerard87
Posts: 12
Registered: ‎08-17-2011
Message 2 of 3 (123 Views)

Re: Multi parameter, iproperty

06-26-2012 02:45 AM in reply to: ZachJa

parameters:

 

d1=50

d2=100

d3=5

 

make a parameter called "angle" in de parameter window and just make it equal to the code below. Then you will have a parameter called angle and it is calculated with d1*d2*d3.

 

angle=d1*d2*d3

 

or if you mean you want an string value of angle = 50x100x5

 

you can do it like this, make a string parameter and then add this in a ilogic rule.

 

sParameter= "angle" & "x" & d1 & "x" & d2 & "x" & d3

 

 

Contributor
ZachJa
Posts: 19
Registered: ‎06-18-2012
Message 3 of 3 (118 Views)

Re: Multi parameter, iproperty

06-26-2012 03:23 AM in reply to: gerard87

Thank You!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.