IntelliCAD 11.1 Object Library
Open Method
See Also 
File
The name of the file to open.
ReadOnly

Boolean value:

True = Document is opened as read-only.

False = Document is not opened as read-only, that is, you can modify it.

Documents Collection : Open Method

Description

Opens an existing document and add it to the collection.

Syntax

Visual Basic
Public Function Open( _
   ByVal File As String, _
   Optional ByVal ReadOnly As Boolean = False _
) As Document

Parameters

File
The name of the file to open.
ReadOnly

Boolean value:

True = Document is opened as read-only.

False = Document is not opened as read-only, that is, you can modify it.

Example

Private Sub OpenMethod()

     ' The following example opens "C:\package.dwg" file.

     ' You may need to change the drawing path and name to reflect a valid

     ' IntelliCAD drawing on your system.

     Documents.Open ("C:\package.dwg")

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.