Reply

Command 'Replace Part with Copy' Command-ID 11027

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?

Best Regards

Matthias

2 REPLIES

Re: Command 'Replace Part with Copy' Command-ID 11027

[ Edited ]

Hi,

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.

regards

JB
VS2015, SE ST10

Re: Command 'Replace Part with Copy' Command-ID 11027

Thanks for the answer. I will try this as soon as possible.