Page 1 of 1

Switch 3D models during run time

Posted: Thursday 07 February, 2013 - 17:12
by Ryan1990
Hi

Please can someone advise me how to change the 3D model during run time, such as at the server atom where a 3D box comes in and a 3D oil barrol come out! Looking for the script and where to enter it.

Many Thanks
Ryan

Re: Switch 3D models during run time

Posted: Friday 08 February, 2013 - 10:41
by SimonvdW
Hello Ryan,

The products have an attribute called "Icon3D". The value of it is defined by selecting the desired 3D icon in the Visualization tab of the product.

The default value is 1 (the representation of the Cube). The value corresponds with the order in the selection list of 3D icon in the Visualization tab: 6 is a cone, 10 a person, 15 an oildrum, and so on.

If you want to change it at the end of the process in a server, just write the script at the 'Trigger on Exit' of this server. There you can change all characteristics like 3Dicon, size, color, ......

An example of some code with 3 modifications:

do(
att([icon3d], i) := 8, {changes the 3D icon of he product to 8, a vertical barrel }
color(i) := colorgreen, {changes the color of the product to green }
SetSize(1, 1, 2, i) {changes the dimensions x, y, z of the product}
)

Good luck.
Simon