How can I mark canvas and change their color by selecting from the list

How can I mark canvas and change their color by selecting from the list

maciej0202g
Contributor Contributor
1,571 Views
21 Replies
Message 1 of 22

How can I mark canvas and change their color by selecting from the list

maciej0202g
Contributor
Contributor

Hello everyone, can anyone 2021-12-09 15_36_58-Autodesk Inventor 2015 - [Część_1].pngtell me how to write code in ilogic that will mark each plane with a color

0 Likes
1,572 Views
21 Replies
Replies (21)
Message 21 of 22

WCrihfield
Mentor
Mentor

Here is a very simplistic iLogic rule you can use to create those two needed custom iProperties, so that you can put them into your Form.  I am using the Expression, to set their value to always be equal to the other standard iProperties, so that they will stay up to date.

iProperties.Expression("Custom", "Density_") = "=<Density>"
iProperties.Expression("Custom", "Mass_") = "=<Mass>"

Results:

WCrihfield_0-1639770308797.png

 

WCrihfield_1-1639770400701.png

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 22 of 22

maciej0202g
Contributor
Contributor

Good morning.

Point A - they work 👍
Point B - I have made only a drop-down list, is it possible to choose the type of material here
Point C - an example element weighs 9.5 kilograms, is it possible to move the comma

 

screen1.pngscreen2.pngscreen3.png

0 Likes