.NET Framework Class Library
NeutralFormat.MDOpen Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > NeutralFormat Class > NeutralFormat Methods >

.NET Framework Class Library
NeutralFormat.MDOpen Method

Opens a Master Drawing file for modification and returns its handler (mdid).

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

Syntax

Visual Basic

Public Function MDOpen ( _

 masterDrawingPath As String, _
 Optional layer As Boolean = False _
As Integer

C#

public int MDOpen(

 string masterDrawingPath,
 bool layer = false
)

Visual C++

public:

int MDOpen(
 StringmasterDrawingPath,
 bool layer = false
)

JavaScript

function mdOpen(masterDrawingPathlayer);

Parameters

masterDrawingPath

Type: System.String
full path name of the Master Drawing file to be opened

layer (Optional)

Type: System.Boolean
if TRUE the Master Drawing is opened in layer mode

Return Value

Master Drawing handler (mdid) to use in the subsequent function calls

Remarks

Master drawing files can be PDF or TIF. The path is typically passed by DBWorks through the @MASTER_DRAWING_PATHNAME parameter to the OnApproveMasterDrawing script.

In layer mode all the elements added to the Master Drawing are placed on a separate layer. This allows to hide/show or delete all the elements added to the Master Drawing in a single operation.

See Also

NeutralFormat Class

NeutralFormat Members

MwPDMApi Namespace