.NET Framework Class Library
CADSystem.SaveAsByUniqueIdEDrawing Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > CADSystem Class > CADSystem Methods >

.NET Framework Class Library
CADSystem.SaveAsByUniqueIdEDrawing Method

Creates an eDrawing file (*.EPRT, *.EASM or *.EDRW) of the document with unique id equal to UniqueId (part, assembly or drawing) If eDrawingRoot and eDrawingID are specified, the fullpathname of saved file is of type eDrawingRoot+eDrawingID+_eDrawing extension_, otherwise _original file name_._configuration._eDrawing extension_ If okAttach=true then the new document is appended as a child to the original one.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function SaveAsByUniqueIdEDrawing ( _

 docUid As String, _
 Optional eDrawingRoot As String = "", _
 Optional eDrawingID As String = "", _
 Optional okAttach As Boolean = True, _
 Optional ByRef outputFile As String = "" _
As ShellResult

C#

public ShellResult SaveAsByUniqueIdEDrawing(

 string docUid,
 string eDrawingRoot = "",
 string eDrawingID = "",
 bool okAttach = true,
 ref string outputFile = ""
)

Visual C++

public:

ShellResultSaveAsByUniqueIdEDrawing(
 StringdocUid,
 StringeDrawingRoot = L"",
 StringeDrawingID = L"",
 bool okAttach = true,
 String^% outputFile = L""
)

JavaScript

function saveAsByUniqueIdEDrawing(docUideDrawingRooteDrawingIDokAttachoutputFile);

Parameters

docUid

Type: System.String
the unique id of the document to save.

eDrawingRoot (Optional)

Type: System.String
Optional. The root folder of the eDrawing file to save

eDrawingID (Optional)

Type: System.String
Optional. The name of the eDrawing file to save

okAttach (Optional)

Type: System.Boolean
Optional. TRUE the new document is appended as a child to the original one, FALSE otherwise

outputFile (Optional)

Type: System.String
Optional. Output: fullpathname of saved file

Return Value

Shell result object. For SolidWorks, the following items are available: "@SWSAVEAS_SOLIDWORKS_ERROR", "@SWSAVEAS_SOLIDWORKS_ERROR_STRING", "@SWSAVEAS_SOLIDWORKS_WARNING"

Remarks

See Also

CADSystem Class

CADSystem Members

MwPDMApi Namespace