SWOpen

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem >

SWOpen

Description

Opens the assigned SolidWorks file

Syntax

call DBWShell("SWOpen SWFileFullPath" )

Parameters

SWFileFullPath

full path of the SolidWorks to open

Remarks

Please note in the SWOpen command the use of the "|" characters (vertical bar), used instead of blanks.

See also

See SWClose command

Example

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.