When i aply the following save code:
If i have a assembly document opened when this code runs, is there any possiblity to answer the save menu questions( please see menu i'm talking about in the attached file). with code?
i mean save the assembly document and all it's dependent's without showing the save menu.
I never heard about this SilentOperation what so you mean by SilentOperation? can you give me a sample code on how to apply this?
I have applyed the save2 in my code, but sometimes this save2 doesn't work, for example when i'm editing a assembly.
The SilentOperation can suppress the dialog with default setting only, the Save2 can let you set the dependent documents to save, and no save dialog will pop up. But what you mean the Save2 won't work if there is an in place editing, I think this is as designed for now, but you can exit the in-place edit document, you can compare the ActiveEditDocument with the top assembly to know if you need to call the ComponentOccurrence.ExitEdit(kExitToTop) before calling Save2.
Hope this helps.
Access a broad range of knowledge to help get the most out of your products and services.