Table of Contents

Class CadRemoteDocuments

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

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.

public sealed class CadRemoteDocuments : IEnumerable<CadRemoteDocument>, IEnumerable
Inheritance
CadRemoteDocuments
Implements
Inherited Members

Properties

Count

Gets the number of drawings open.

Methods

Get(string)

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

GetEnumerator()

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.