Hello,
I would like to make a copy of a Product Atom (which is located in a Warehouse Atom).
Unfortunately, I can't make use of the Splitter Atom, so I used the 4D Script function: "CreateAtom".
Indeed a copy was created, including all desired attributes, but this Copy is 'doing nothing', i.e. I sent it to a Queue Atom, but it just stays there, without going to the next Atom, although this is possible (and very much desired ). I think some event should be triggered in order to let the Copy leave its current atom? But I don't know how..
Thanks in advance,
Katinka
CreateAtom (CreateAtomCopy)
Re: CreateAtom (CreateAtomCopy)
Hello Katinka!
If you chose for the first option, please try the second option. When you already implemented the second option and it's still not working, please return to this topic again.
Kind regards,
Marvin
How do you send the product to the queue? I think there are 2 options:Katinka wrote:i.e. I sent it to a Queue Atom, but it just stays there, without going to the next Atom, although this is possible (and very much desired )
- 1) Use CreateAtom where you provide the queue as the second parameter, to define where the new atom is created;
- 2) Use CreateAtom where you provide another atom (for example Model) as a second parameter, and move the new atom into the queue afterwards.
If you chose for the first option, please try the second option. When you already implemented the second option and it's still not working, please return to this topic again.
Kind regards,
Marvin
Re: CreateAtom (CreateAtomCopy)
Hello Marvin,
I indeed went for the first option. In the 4DScript overview concerning CreateAtom, I read the Copy is "moved into atom e2 at the end of its queue". Therefore, I was thinking 'better send it there right away, then first put it somewhere else (the Model) and afterwards move it to the correct place'. However, reading your reply, parameter e2 rather seems the place where the Atom is created (and that maybe changes things a bit).
Anyway, the second option works like a charm
Thanks for your quick reply!
Katinka
I indeed went for the first option. In the 4DScript overview concerning CreateAtom, I read the Copy is "moved into atom e2 at the end of its queue". Therefore, I was thinking 'better send it there right away, then first put it somewhere else (the Model) and afterwards move it to the correct place'. However, reading your reply, parameter e2 rather seems the place where the Atom is created (and that maybe changes things a bit).
Anyway, the second option works like a charm
Thanks for your quick reply!
Katinka