Table of Contents

Method ForDocument

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

ForDocument(string)

Connects to the app that has a file open.

public static CadApplication ForDocument(string path)

Parameters

path string

The path of the drawing's file.

Returns

CadApplication

The connection to the first app, the one activated last first, that has the file open.

Exceptions

ArgumentNullException

Thrown when the path is null.

CadRemoteException

Thrown when no running app has the file open.