API:Flag a referenced document dirty

Dec 14, 2004 4 Replies

There is an API call that flags a document dirty so when you close it SW asks if you want to save.



When I noticed this I got all excited and thought that I could apply custom propertys to referenced documents and be asked to save them when I save the main document. Well it isn't so. If no other changes were made SW only saves the drawing or assembly and leaves the others so the changes don't get applied. Does anyone know of another flag that can be set so that it will ask to save all referenced documents also.



Corey


Will saving the file using the referenced options work? You could combine the dirty flag and that option to get both the file and its references.

Evan

I kindof wanted it to be dummy proffed. I wouldn't want to create a new save button. Do you suppose I could catch that through events and force the references to be saved and bypass the origional save command.

Corey

I could do it a dirty way and add a sketch to the document and close the sketch without making anything this would leave the model unchanged but yet it might be enough of a change to set the dirty flag that SW hasn't allowed us to have access to.

Corey

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required