API:Flag a referenced document dirty

Discussion in 'SolidWorks' started by CS, Dec 14, 2004.

  1. CS

    CS Guest

    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
     
    CS, Dec 14, 2004
    #1
  2. CS

    CS Guest

    Oh yeah Modeldoc2::SetSaveFlag
     
    CS, Dec 14, 2004
    #2
  3. 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
     
    Evan T. Basalik, Dec 17, 2004
    #3
  4. CS

    CS Guest

    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)> wrote in message
     
    CS, Dec 17, 2004
    #4
  5. CS

    CS Guest

    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, Dec 17, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.