Closed jmwright closed 1 year ago
AFAICT your code should not pass static analysis - there is no add
overload with a metadata
argument.
So far metadata is a placeholder for future use. Do you have a nice use case?
So far metadata is a placeholder for future use. Do you have a nice use case?
I'm working on exploded assembly views, and I am storing a relative translation for each part in the metadata. I don't want automatic explode translations, I want to be able to control the resulting view.
workaround:
# Sub-assembly
sub_assy = cq.Assembly(metadata={"mykey_2": 20}) # add metadata here
+1 for support in add method too.
In this section of code, metadata is not copied to a sub-assembly when it is added to a main assembly, is this intentional?
Sample code to reproduce:
Output (CQ-editor console):
Expected Output: