I'm trying to develop a program where I can use a base view based on the current view of a single part.
The idea is basically export the contour of the part to the DXL format and save it to be used on cutting machines.
I've found something similar here, but in the context, it was necessary to use the path of the part to work, and I need it to recognize the part that is already opened.
Frankly, I did not understand your requirement. But for "recognize the part that is already opened", what I can think of is to check the Documents colllection.
If this is not useful, could you elaborate your scenario?
Developer Technical Services
Autodesk Developer Network