In the assembly environment we have the command 'replace part with copy'. I like this command, but i need to reset some custom properties in the new file. I figure out the command id 11027. Is there a way to get the new document by the API?
The only way to find out is to remember the occurrences when the command starts (event beforeCommandRun) and compare this with the occuureneces when the command ends (afterCommandRun).
Then you can change properties in the occurrences the documents.