Table of Contents

CadRemoteDocuments

from OpenCAD2D.Remote import CadRemoteDocuments

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

The drawings a running app has open, in the order of their ids (a drawing the app has not listed before gets the next id; drawings listed together get theirs by name, so two runs agree). The list is asked of the app each time it is walked, so that a drawing the user opened a moment ago is in it.

Properties and fields

Count

.NET

@property
def Count(self) -> int

Gets the number of drawings open.

Methods

Get

.NET

def Get(self, pathOrName: str) -> CadRemoteDocument

Finds a drawing by its full path, else by its name with the extension (A-101.dwg), compared without regard to case.

GetEnumerator

.NET

def GetEnumerator(self) -> System.Collections.Generic.IEnumerator[CadRemoteDocument]

Walks the drawings open now. The app is asked when the walk takes its first step, not when the enumerator is made, so that a refusal (the connection disposed, the app gone) is raised from the walk, which pythonnet turns into a Python exception; raised from here it ends the Python process.

Operators and Python protocols

__iter__

def __iter__(self) -> Iterator[CadRemoteDocument]