Table of Contents

CadRunningApp

from OpenCAD2D.Remote import CadRunningApp

class CadRunningApp(System.Object) ยท CadRunningApp in the .NET reference

One OpenCAD2D that is running, as CadApplication.GetRunning lists it: which process, what its window says, when the user last worked in it and which drawings it has open.

Properties and fields

Drawings

.NET

@property
def Drawings(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the drawings the app has open: the full path of each saved one, the name of one with no file yet. Empty when the app did not answer in time to be asked, a long command running in it.

LastActivated

.NET

@property
def LastActivated(self) -> System.DateTime

Gets the time the user last activated the app, in UTC; the app that was activated last is the one new CadApplication() connects to.

ProcessId

.NET

@property
def ProcessId(self) -> int

Gets the id of the app's process.

Title

.NET

@property
def Title(self) -> str

Gets the title of the app's window when it last said, as A-101.dwg - OpenCAD2D.

Methods

ToString

.NET

def ToString(self) -> str