SW API creating Stand alone Executable

Discussion in 'SolidWorks' started by Saravana, Apr 13, 2006.

  1. Saravana

    Saravana Guest

    Hi All,

    I am using Solid Works API in VC++ 6.0. I am creating stand alone
    executables(*.EXE). I have initialized the solid works environment.
    When I try to open OpenDoc6 API in silent mode Solid works session also

    starts along with it. I want my stand alone *.exe application
    should run without opening solid works.


    Expecting your feed backs...


    Regards,
    Saravana
     
    Saravana, Apr 13, 2006
    #1
  2. Saravana

    That70sTick Guest

    Not possible. OpenDoc6 is a command that must function within a
    running SW session.

    You could possible open an invisible SW session. I've done it by
    accident. I'm sure it can be done intentionally if you try. Just
    don't forget to close the session when your program is finished.
     
    That70sTick, Apr 13, 2006
    #2
  3. Saravana

    secdef Guest

    May be he can add a routine that start sldworks.exe as a background service
    first, then the programs executes the various operation that it has to do,
    and then another routine stop the service started before.
     
    secdef, Apr 13, 2006
    #3
  4. Saravana

    Tim Markoski Guest

    Silent mode doesn't necessarily mean invisible.

    Initialize and then Open SW first via Code in a HIDDEN Window.
    Avoid any commands that require or set Focus.
    Since you cant set focus to a hidden window, this may be your issue.

    Are you doing this via .Net or straight C++?
     
    Tim Markoski, Apr 16, 2006
    #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.