.NET Framework Class Library
CADSystem.SaveAsByUniqueId Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > CADSystem Class > CADSystem Methods >

.NET Framework Class Library
CADSystem.SaveAsByUniqueId Method

Creates a duplicate of type extension of the CAD document with unique id equal to UniqueId. 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 SaveAsByUniqueId ( _

docUid As String, _
extension As String, _
Optional okAttach As Boolean = True, _
Optional ByRef outputFile As String = "" _
) As ShellResult

C#

public ShellResult SaveAsByUniqueId(

string docUid,
string extension,
bool okAttach = true,
ref string outputFile = ""
)

Visual C++

public:

ShellResult^ SaveAsByUniqueId(
String^ docUid,
String^ extension,
bool okAttach = true,
String^% outputFile = L""
)

JavaScript

function saveAsByUniqueId(docUid, extension, okAttach, outputFile);

Parameters

docUid

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

extension

Type: System.String
the extension that will be applied to the saved document

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. Input: if not "", fullpathname (with extension) of new file to save. 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