API:Flag a referenced document dirty

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

Reply to
CS
Loading thread data ...

Oh yeah Modeldoc2::SetSaveFlag

Reply to
CS

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

Reply to
Evan T. Basalik

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

Reply to
CS

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

Reply to
CS

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.