Land Auto

OpenProjectBased Method

OpenProjectBased Method

Opens an existing AutoCAD Land Desktop drawing file (DWG).

See Also | Example

Signature

RetVal = object.OpenProjectBased(DrawingName[, ProjectName])

object

Document The object or objects this property applies to.

DrawingName

String; input-only
The file name for the drawing.

ProjectName

String; input-only; optional
The name of the project

RetVal

Document
The newly opened Document object.

Remarks

It is recommended that you save the current drawing before calling this method.

It is not necessary to add .dwg to the end of the name; the drawing file extension will be added automatically if not specified. If a path is not specified, the path used will be the current DrawingPath for the ActiveProject.

If a path for the Project is not specified, the Path of the ActiveProject object is used.