API:Flag a referenced document dirty
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
API:Flag a referenced document dirty

 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks
Author Message
CS
Guest





Posted: Wed Dec 15, 2004 3:02 am    Post subject: API:Flag a referenced document dirty Reply with quote

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

Back to top
CS
Guest





Posted: Wed Dec 15, 2004 3:07 am    Post subject: Re: API:Flag a referenced document dirty Reply with quote

Oh yeah Modeldoc2::SetSaveFlag

"CS" <C@S.COM> wrote in message news:3295ntF3ivfhdU1@individual.net...
Quote:
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

Back to top
Evan T. Basalik
Guest





Posted: Fri Dec 17, 2004 5:20 pm    Post subject: Re: API:Flag a referenced document dirty Reply with quote

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

"CS" <C@S.COM> wrote in message news:32960eF3iaob9U1@individual.net...
Quote:
Oh yeah Modeldoc2::SetSaveFlag

"CS" <C@S.COM> wrote in message news:3295ntF3ivfhdU1@individual.net...
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





Back to top
CS
Guest





Posted: Fri Dec 17, 2004 7:19 pm    Post subject: Re: API:Flag a referenced document dirty Reply with quote

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

"Evan T. Basalik" <Evan(do not dare spam me -
remove)Basalik@alumni.clemson.edu> wrote in message
news:R7Awd.2$3X5.1@bignews3.bellsouth.net...
Quote:
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

"CS" <C@S.COM> wrote in message news:32960eF3iaob9U1@individual.net...
Oh yeah Modeldoc2::SetSaveFlag

"CS" <C@S.COM> wrote in message news:3295ntF3ivfhdU1@individual.net...
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





Back to top
CS
Guest





Posted: Fri Dec 17, 2004 7:43 pm    Post subject: Re: API:Flag a referenced document dirty Reply with quote

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

"CS" <C@S.COM> wrote in message news:32g7n0F3n0sbeU1@individual.net...
Quote:
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

"Evan T. Basalik" <Evan(do not dare spam me -
remove)Basalik@alumni.clemson.edu> wrote in message
news:R7Awd.2$3X5.1@bignews3.bellsouth.net...
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

"CS" <C@S.COM> wrote in message news:32960eF3iaob9U1@individual.net...
Oh yeah Modeldoc2::SetSaveFlag

"CS" <C@S.COM> wrote in message news:3295ntF3ivfhdU1@individual.net...
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







Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB