Launching SW Viewer From Command Line

Discussion in 'SolidWorks' started by Guy Edkins, Oct 24, 2003.

  1. Guy Edkins

    Guy Edkins Guest

    Hi Folks,

    I know there are some command line switches for running SW (/m for invoking
    a macro) but here is what I need to do. Since the SW Viewer has no type
    library for VBA (maybe I am wrong) instantiating the viewer form Excel is a
    little different than starting SW. My guess that one way to do it is to use
    a command line in shell command. I want to launch a file of a known name
    into SW Viewer. If I use this line in Excel VBA => Shell "C:\Program
    Files\SolidWorksViewer\swviewer.exe", vbNormalFocus i get a SW viewer icon
    on task bar but it won't open?

    What I need to get is Excel to launch SW Viewer with a file handed in from
    VBA. Ideas?

    Thanks,
    --

    Guy Edkins
    Delta Group Ltd
    Managing Partner

    Where Efficiency and Effectiveness are Fundamental
     
    Guy Edkins, Oct 24, 2003
    #1
  2. Guy Edkins

    Guy Edkins Guest

    Folks,

    Got it!!!!

    Lots of correctly placed quotes does the trick using the Shell command.
     
    Guy Edkins, Oct 24, 2003
    #2
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.