|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem > SWOpen |
Opens the assigned SolidWorks file
call DBWShell("SWOpen SWFileFullPath" )
SWFileFullPath |
full path of the SolidWorks to open |
Please note in the SWOpen command the use of the "|" characters (vertical bar), used instead of blanks.
See SWClose command
Sub main()
call DBWShell( "TrackEvents 0" )
call DBWShell( "SWOpen C:\Program|Files\dbworks\regressionTest\handlebar\Brake|Handle|Pivot|Nut.SLDPRT" )
if (okDBW ) then
call DBWShell( "SWSave" )
call DBWShell( "SWSaveAs F:\temp\test.sldprt" )
call DBWShell( "SWClose" )
end if
call DBWShell( "TrackEvents 1" )
end sub
Please note in this example the TrackEvents parameter. If set to 1 it does not allow the program to take sign of occurred events (Save/Close/Open). It is useful to not record certain data in the database.