Unpack
Unpack
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
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
Re: Unpack
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 ?
Is it possible that the two product stay in two different position ?
- MatthijsJongboer
- Posts: 200
- Joined: Thursday 11 November, 2010 - 14:12
Re: Unpack
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.
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.
Re: Unpack
yes 3D how can i manage this : to select the position of the contenet of container. I just need for the 3D simulation.
Re: Unpack
I found no problem
thank u very much
thank u very much
- MatthijsJongboer
- Posts: 200
- Joined: Thursday 11 November, 2010 - 14:12
Re: Unpack
You're welcome.
In addition, you can have a look at the On3DDraw eventhandler to fully tweak your 3D visualization.
In addition, you can have a look at the On3DDraw eventhandler to fully tweak your 3D visualization.
Re: Unpack
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
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
- MatthijsJongboer
- Posts: 200
- Joined: Thursday 11 November, 2010 - 14:12
Re: Unpack
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:
Make sure atom reference i exists (so on the entrytrigger or exittrigger).
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
)
)
Re: Unpack
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?
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?
- MatthijsJongboer
- Posts: 200
- Joined: Thursday 11 November, 2010 - 14:12
Re: Unpack
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:
or using the rank
Then you need to get the product from the container.
the first product will then be:
Code: Select all
first(i)
Code: Select all
rank(1,i)