Unpack

All topics on the Atoms in any Enterprise Dynamics Library.
giovanni
Posts: 97
Joined: Friday 21 September, 2012 - 17:30

Unpack

Post by giovanni »

Hello

I´making my the three d visualization.
When the container with product go in the unpack atom, the product on the container go down or mix with the container.
How can i manage this problem, the product must stay on the container?

Thank

Giovanni
giovanni
Posts: 97
Joined: Friday 21 September, 2012 - 17:30

Re: Unpack

Post by giovanni »

Sorry another thing if there are two products they are set in the same posisiton
Is it possible that the two product stay in two different position ?
User avatar
MatthijsJongboer
Posts: 200
Joined: Thursday 11 November, 2010 - 14:12

Re: Unpack

Post by MatthijsJongboer »

The unpack atom is used to split the atoms; the products go to channel 1 and the container to channel 2 as described in the help.
So when you have a mixer, what functionality do you expect? multiple products go in and 1 comes out? This is more a assembler.

If your interest is in 3D, you can modify the locations (x,y,z) of the contents of the container.
giovanni
Posts: 97
Joined: Friday 21 September, 2012 - 17:30

Re: Unpack

Post by giovanni »

yes 3D how can i manage this : to select the position of the contenet of container. I just need for the 3D simulation.
giovanni
Posts: 97
Joined: Friday 21 September, 2012 - 17:30

Re: Unpack

Post by giovanni »

I found no problem

thank u very much
User avatar
MatthijsJongboer
Posts: 200
Joined: Thursday 11 November, 2010 - 14:12

Re: Unpack

Post by MatthijsJongboer »

You're welcome.
In addition, you can have a look at the On3DDraw eventhandler to fully tweak your 3D visualization.
giovanni
Posts: 97
Joined: Friday 21 September, 2012 - 17:30

Re: Unpack

Post by giovanni »

Hello

For the same problem how can i point the product on the container i try but i don´t find any solution.

I put i label on product and say :
if(Label([Positionontrain],i)=1,
zloc(i):=2,
if(Label([Positionontrain],i)=2,
do(
zLoc(i):=1.5,
xloc(i):=6
),0
)

But doesn´t work.
Can u give me some advace ?

Thank u
User avatar
MatthijsJongboer
Posts: 200
Joined: Thursday 11 November, 2010 - 14:12

Re: Unpack

Post by MatthijsJongboer »

Your code contain syntax errors.
If you were to have multiple position available, you can use the case statement for each position.
Place them with comment and within 'do ()' code to make it readable.
Your code would then look something like:

Code: Select all

Case(
 Label([Positionontrain],i),
 {position 1}
 do(
  zloc(i):=2
 ),
 {position 2}
 do(
  zloc(i):=2.5,
  xloc(i):=6 
 ),
 {position 3}
 do(
  zloc(i):=2
 ),
 {position 4}
 do(
  zloc(i):=2
 )
)
Make sure atom reference i exists (so on the entrytrigger or exittrigger).
giovanni
Posts: 97
Joined: Friday 21 September, 2012 - 17:30

Re: Unpack

Post by giovanni »

I put the code in the trigger on entry, right?

And it still doesn´t work because with (i) it point every time the container and no the proudct on it.
How can i point the product?
User avatar
MatthijsJongboer
Posts: 200
Joined: Thursday 11 November, 2010 - 14:12

Re: Unpack

Post by MatthijsJongboer »

Of course. You're right. The products are inside the container.
Then you need to get the product from the container.
the first product will then be:

Code: Select all

first(i)
or using the rank

Code: Select all

rank(1,i)
Post Reply