Hei,
I have a simple Assembly consisting of 2 parts. A TransportPallet and a Module. The Transport Pallet does what it says, it transport the module. But how can i Assign a property to the Pallet, E.g a Integer property called PalletID. That i will use for routing the pallet at a crossing later downstream?
Where do i add the property? And what expression is used to link and use it as a Integrer property? When it’s an Assembly and not a single product.
Have you tried the Get Assembly Step Property together with the Assign statement?
I have this example with a Boolean property. It would be the same method with an Integer.
Property of Products on Pallet.vcmx (9.9 MB)
Hei, I tried to assign it to the assembly component property. But i guess it will be a step. i’ve tried assigning it to all properties. Get the Error message that the Property does not exitst. Here is the layout. I try to assign it at an own Assign process. But that shouldnt matter?
Assign PalletID.vcmx (40.5 MB)
There is currently a bug that the Create statement does not add the Component properties to assemblies. Let’s hope this gets fixed in the next version.
For now, there needs to be some other way of creating that property. I made a quick script that creates the property when the palletAssy is created in Process Node #3.
Updated file:
Assign PalletID_fix.vcmx (40.5 MB)
Try this expression, ProductIn.Assembly.Slots[0].AssignedProduct.Component.PalletID
The assembly is a special component. To access the pallet, you need to first access the assembly, then the first slot, followed by the product, then the component, and finally the PalletID.
Thanks! That worked!
Thank you for the script!