OpenDocument

 Calling Sequence OpenDocument(f)

Parameters

 f - string; name of a SolidWorks document

Description

 • The OpenDocument command opens a SolidWorks document and returns a handle.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{SolidWorks}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{doc}≔\mathrm{OpenDocument}\left("c:/mypart.sldprt"\right)$
 ${\mathrm{doc}}{:=}{0}$ (1)
 > $\mathrm{CloseDocument}\left(\mathrm{doc}\right)$
 > $\mathrm{CloseConnection}\left(\right):$