copy component/occurrence + paste new via the API?

copy component/occurrence + paste new via the API?

JesusFreke
Advocate Advocate
737 Views
0 Replies
Message 1 of 1

copy component/occurrence + paste new via the API?

JesusFreke
Advocate
Advocate

Is the "paste new" functionality (as mentioned at https://youtu.be/yvCHb3DRNrw?t=719) exposed via the API? I can't seem to find it.

 

As a work around, I'm manually duplicating the occurrence tree, and using, e.g. bRepBody.copyToComponent to copy the bodies over. I've got this working, but it's turning out to be slower than I would like.

 

I'm familiar with Component.occurrences.addExistingComponent, but I want an independent copy of the occurrence.

738 Views
0 Replies
Replies (0)