Table of Contents

CadRemoteException

from OpenCAD2D.Remote import CadRemoteException

class CadRemoteException(System.Exception) ยท CadRemoteException in the .NET reference

What the remote channel throws when the app cannot be reached or refuses a request: no OpenCAD2D is running, the connection was lost, a drawing was closed meanwhile, the owner of an object refused an edit, a block is not in the drawing. The message says why, in the words the app's own command line would.

Constructors

__init__

.NET

def __init__(self, message: str) -> None

Makes the exception.

def __init__(self, message: str, isCancelled: bool) -> None

Makes the exception for a pick the user cancelled.

def __init__(self, message: str, inner: System.Exception) -> None

Makes the exception.

Properties and fields

IsCancelled

.NET

@property
def IsCancelled(self) -> bool

Gets whether the user ended a pick (CadRemoteDocument.PickPoint, CadRemoteDocument.PickObject or CadRemoteDocument.PickObjects) with Esc, or with Enter where nothing was picked, rather than something having gone wrong; false for every other failure, a pick that ran out of time included.