API issue with manual prompt to save children
API issue with manual prompt to save children
(OP)
Hello again,
I am in the process of running a macro that I created to open up all the files in a directory, dig around, add some custom properties etc. It works great. Largely due to the help I received from numerous individuals on this forum.
The issue I am having is that about 5% of the files, upon saving and closing will require manual input to continue the operation. SW will essentially prompt me to save some child component of the assembly it was performing the operation on.
Is there a command I can add to the code to always "say yes" to the prompt of "do you want save..." Or is there some other way to get around the problem.
Thanks for everyone's help,
-Shaggy
I am in the process of running a macro that I created to open up all the files in a directory, dig around, add some custom properties etc. It works great. Largely due to the help I received from numerous individuals on this forum.
The issue I am having is that about 5% of the files, upon saving and closing will require manual input to continue the operation. SW will essentially prompt me to save some child component of the assembly it was performing the operation on.
Is there a command I can add to the code to always "say yes" to the prompt of "do you want save..." Or is there some other way to get around the problem.
Thanks for everyone's help,
-Shaggy






RE: API issue with manual prompt to save children
CODE
RE: API issue with manual prompt to save children
Thanks for the reply.
I have added the option to save referenced as well as tinkered with the option of avoid rebuild. Unfortunately, neither of these had the effect I was hoping for. I am still being prompted to save the occasional part.
Is there a way that I can do an if statement that essentially says: If we receive a prompt, then click yes?
-Shaggy
RE: API issue with manual prompt to save children