How to detect if a rebuild is needed?

Discussion in 'SolidWorks' started by Stefan Olofsson, Oct 3, 2008.

  1. Hi all

    I'm writing an addin for SW2007 SP5.0. Is there a way to detect if a file
    needs to be rebuilt?

    Thanks
    Stefan Olofsson
     
    Stefan Olofsson, Oct 3, 2008
    #1
  2. Stefan Olofsson

    That70sTick Guest

    "ModifyNotify" event in PartDoc/AssemblyDoc/DrawingDoc objects marks
    when a file is altered. This does not necessarily mean a rebuild is
    required, though.
     
    That70sTick, Oct 3, 2008
    #2
  3. Thanks,

    But if I have the structrure Drawing->Part or Drawing->Ass->Part and only
    the part is changed will this event still fire when I open the drawing?

    /Stefan
     
    Stefan Olofsson, Oct 6, 2008
    #3
  4. Stefan Olofsson

    That70sTick Guest

    ModelDocExtension::NeedsRebuild

    This is a property, not an event. You will need to find a way to
    trigger checking this property.
     
    That70sTick, Oct 6, 2008
    #4
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.