Hello, I have a new idea. For non-standard equipment, I want to use a python script to directly pick products from the assembled slots or place products into the slots. The subsequent process nodes can correctly identify them .
I don’t know if there are any related API methods.
I don’t know if you’ve noticed, but the TransportIn in the process node has an option Soure, which means, the setting of the place where the inflowed component comes from, and one of the choices in there is From Component Container, which allows to get the component from the ComponentContainer of the TransportNode it corresponds to (provided of course that this component is a Product).
I understand what you mean. What I can do now is to use a Python script to retrieve an assembly named AssemblyBaseComponent (<type’vcComponent '>) from the container, and then use an index to find the product I want in this subset of assemblies and retrieve it; I don’t know if there is any other better way to obtain the products inside the assembly;
Also, if I haven’t figured out how to place the product into the designated slot in this assembly and ensure that subsequent process nodes can be correctly identified
Unfortunately as of VC 4.9.2 there still isn’t API for accessing the “runtime assembly” from a product instance, so you can’t e.g. figure out which assembly steps and slots exist and assign products into them correctly.
Are there any plans to develop this API in the future? Especially convenient for non-standard equipment and overall factory planning