API-Stop assy from prompting to rebuild

Discussion in 'SolidWorks' started by TOP, Dec 1, 2006.

  1. TOP

    TOP Guest

    I am processing a bunch of assemblies and need to set preferences so
    that user intervention is not required. SW keeps prompting for rebuilds
    and I have yet to find all the preferences to set to prevent this. Any
    help would be appreciated.
     
    TOP, Dec 1, 2006
    #1
  2. Running 2006? I'm also wondering why I'm asked to rebuild every now and
    then and there's no option to "don't ask me again" available. Is this
    06's feature or are we missing something?

    regards
    Markku
     
    Markku Lehtola, Dec 4, 2006
    #2
  3. TOP

    Tin Man Guest

    I don;t know if this is exactly what you're looking for, but you could
    try these:
    swApp.UserControl = False
    swApp.Visible = False

    Ken
     
    Tin Man, Dec 4, 2006
    #3
  4. TOP

    JJ Guest

    Can't you use OpenDocSilent ?? This will prevent SWX from showing up
    questions to the user.

    Kind regards,

    JJ
    www.studiozwaard.nl
     
    JJ, Dec 4, 2006
    #4
  5. TOP

    TOP Guest

    OpenDocSilent wasn't enought in an assembly. I have it pretty much
    tamed now with a bit from here and a bit from there. Even this will
    complain about internal ID.

    Set swModel = swApp.OpenDoc6(sFullPath, swDocASSEMBLY,
    swOpenDocOptions_Silent Or swOpenDocOptions_AutoMissingConfig, "",
    nError, nWarning)

    I have visible turned on as well as allow user. This way if it hangs I
    can get out of it clean and restart my code.
     
    TOP, Dec 4, 2006
    #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.