Switch 3D models during run time

All topics on the Atoms in any Enterprise Dynamics Library.
Post Reply
Ryan1990
Posts: 2
Joined: Thursday 07 February, 2013 - 17:06

Switch 3D models during run time

Post 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
SimonvdW
Posts: 47
Joined: Thursday 06 January, 2011 - 09:52

Re: Switch 3D models during run time

Post 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
Post Reply