Method ForDocument
ForDocument(string)
Connects to the app that has a file open.
public static CadApplication ForDocument(string path)
Parameters
pathstringThe 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.