Constructor CadApplication
CadApplication()
Connects to the app the user activated last.
public CadApplication()
Exceptions
- CadRemoteException
Thrown when no OpenCAD2D is running or it does not take the connection.
CadApplication(CadRunningApp)
Connects to one of the apps GetRunning() listed.
public CadApplication(CadRunningApp app)
Parameters
appCadRunningAppThe app.
Exceptions
- ArgumentNullException
Thrown when the app is null.
- CadRemoteException
Thrown when the app has closed or does not take the connection.
CadApplication(string, string)
Connects to the private channel an app gives the tools it starts, by the name of its pipe and with the token it gave that tool: the channel is open whether or not "Allow other programs to connect" is on, takes no other client, and is never listed in GetRunning(). A tool joins the run of its command with JoinRun(int).
public CadApplication(string pipe, string token)
Parameters
pipestringThe name of the pipe, as
OpenCAD2D.4120.tools.tokenstringThe token the app gave the tool.
Exceptions
- ArgumentException
Thrown when the pipe or the token is empty.
- CadRemoteException
Thrown when the app is not there, or does not take the token.