I have a process node that processes a partially done assembly (2 out of 3 parts assembled). No assembly operation takes place at this node. I want to change the material of one of two products in the assembly at this point.
Set Material Node statement does not work here and there is no error in the output either. But I think this is also not the right way as there is no possibility to define which product in the assembly to set material to.
Then I added the Material property in ‘Component properties’ of product in Product Type Editor and tried to use Assign Statement. This resulted in an error.
GetAssembly statement with the ReturnAsList option enabled should create variable with a list of Product objects that the SetNodeMaterial statement can operate on.
There are 2 products in the assembly at this stage. I can not get the contents of this list printed and neither can I assign the material using SetNodeMaterial. Here are my statements and output.
Just use AssemblyOrder in the SetNodeMaterialProductVariableName as that is not an expression but a string property in the statement.
The print statement also doesn’t generally provide anything useful when trying to print an object, the expression needs to resolve to a basic type like string or int.