Table of Contents

CadInquiry

from OpenCAD2D import CadInquiry

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

The inquiry commands (LIST) run for a program that wants their words, with no window and no command line of the user's.

Methods

List

.NET

@staticmethod
def List(
    document: CadDocument,
    handles: System.Collections.Generic.IReadOnlyList[str],
) -> System.Collections.Generic.IReadOnlyList[str]

Runs LIST on some entities in a command session of its own and gives the lines it writes, as AutoCAD's LIST writes them: the kind and layer, the space, the handle and the shape of each entity (the length and angle of a line, the centre and radius of a circle, the corners of a polyline). The drawing's own command line, its selection and its undo list are not touched: a line from (0, 0) to (300, 400) lists "Length = 500.0000".