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.
How can I uniquely identify copied parts when performing a "copy workspace" through the API?
Say I have a PS in my original document named "A". Now I want to copy my workspace and point to PS "A" within the new document. Is my only option to sort through the names and find the matching name? How can I positively know that new PS "A" is referring to the same PS as old PS "A"... essentially I want a map that relates all the old document PS element ids to the new PS element ids. Is there a simple way to generate this without using the user-settable names? (That would be a bad choice because the element name namespace allows duplicate names.)