DBWSWSaveAs

<< Click to Display Table of Contents >>

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

DBWSWSaveAs

Description

Creates a duplicate of type extension of the SolidWorks document with unique id equal to UniqueId. If okAttach=true then the new document is appended as a child to the original one.

Syntax

Function DBWSWSaveAs(UniqueId, Extension, okAttach)

Paramenters

UniqueId

It is the unique id of the document to save.

Extension

It is the extension that will be applied to the saved document

okAttach

Boolean. If set to TRUE, the new document is appended as a child to the original one.

Remarks

from SolidWorks 2004, you can save in PDF format too, but only if you have the Save As PDF addin enabled in SolidWorks.

Example

Sub main()
 DBWInit(true)
 Ok = DBWSWSaveAs( 111, "DXF", true )
 Ok = DBWSWSaveAs( 111, "TIF", true )
 Ok = DBWSWSaveAs( 111, "EDRW", true )
end sub