My goal is to open a Drawing and run a macro on that drawing using the windows command prompt (cmd).
In the command prompt, this will open Solidworks:
"C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS (2)\"
This will open Solidworks and then run the macro:
"C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS (2)\" /m "P:\Web Exchange\Ryan F\SW Settings\ExportBOMWorking2.swp"
This will open Solidworks and run the macro upon the program starting but does not open the drawing:
"C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS (2)\" "P:\Web Exchange\Ryan F\BOM Export from SW\PLD100A40F1\PLD100A40F1.SLDDRW" /m "P:\Web Exchange\Ryan F\SW Settings\ExportBOMWorking2.swp"
This will open the Drawing but will not start the macro:
"P:\Web Exchange\Ryan F\BOM Export from SW\PLD100A40F1\PLD100A40F1.SLDDRW" "/m" "P:\Web Exchange\Ryan F\SW Settings\ExportBOMWorking2.swp"
What is the correct cmd syntax to open the drawing and run the macro on that drawing?
Thanks
SolidworksApi/macros