changing 3D icon during run time

All topics on the Atoms in any Enterprise Dynamics Library.
Post Reply
mohamed_88
Posts: 9
Joined: Sunday 26 January, 2014 - 12:11

changing 3D icon during run time

Post by mohamed_88 »

Hi,

I have an assembler assembling two different parts. I would like to change the 3D icon of the assembled part. Is it possible to change it to a customized 3D icon?

Regards,

Mohamed
Nick
Posts: 48
Joined: Saturday 15 February, 2014 - 01:52

Re: changing 3D icon during run time

Post by Nick »

Hi Mohamed,

You can add or edit 3D models in the 3D tab of the atom editor.
The easiest way is to edit (replace) one of the six standard 3D models in your model.
(The six standard 3D models are Box-closed, Box-opened, pallet-wood, pallet-plastic, oildrum, crate)

The 3D icon is an attribute of the product.
Therefore, you can refer to the 3D model on the entry /exit triggers by using the code

Code: Select all

Att([Icon3D],i) := 
Please mind that Enterprise Dynamics has 10 standard 3D models: If you adjust the first 3D model 'box-closed' you have to use the code

Code: Select all

Att([Icon3D],i) := 11 
If you want to add additional 3D models you should have a look at the inherited 3dDraw event code of the product atom.
For example, the 3dDraw event code of the crate (nr. 16) is:

Code: Select all

{** Crate **}
 DrawModel3D(Model3D(6, c), 0, 0, 0, c.DrawXsize, c.DrawYsize, zSize)
Test your changes on the product atom in your model. This way changes only affect your current model.

Regards, Nick
mohamed_88
Posts: 9
Joined: Sunday 26 January, 2014 - 12:11

Re: changing 3D icon during run time

Post by mohamed_88 »

Works.

Thanks Nick
Post Reply