Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
Duplicate a document through API
There should be a simple API call to do this but surprisingly isn't.
We have a series of part studios in various documents which are created by multiple people in our organization. We're developing an application that exports these part studios to a different format, but before it does that it needs to do some operations including updating metadata, evaluating featurescript etc. I can do this in the original document and roll back once done but it would create unnecessary history.
I'm aware of the concept of derived parts, but I'm not sure how to achieve that through the API.
But even that is just limited to geometry within the source partstudio. I'd like to bring everything, including custom features into the newly created document.
Does anyone have any workflow for this?