Table of Contents

CadSheetSetPlacement

from OpenCAD2D.SheetSets import CadSheetSetPlacement

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

What the Model Views tab does for Place on Sheet, as AutoCAD 2021's Sheet Set Manager does it: the resource drawing is attached as an attached external reference in model space of the sheet's drawing (once, whatever the number of its views placed), a viewport is made in the sheet's layout at a scale of the drawing's list, showing the view, and a named view is saved in the layout around the viewport, which the sheet view of the set points at (AutoCAD's sheet views name a view of the sheet's own drawing). The whole is one undo step.

Properties and fields

DefaultScale

.NET

DefaultScale: ClassVar[str]

The scale Place on Sheet offers when the view has not been placed before.

Methods

Command

.NET

@staticmethod
def Command(plan: CadPlaceOnSheetPlan, scale: str, placed: System.Action[CadPlaceOnSheetResult]) -> CadCommand

The command Place on Sheet runs on the command line: "Specify insertion point or [Scale]:" with the outline of the view at the scale following the cursor, the Scale option listing the drawing's scales, the click placing the view as CadSheetSetPlacement.Place does. Run it with CadCommandSession.Start.

Place

.NET

@staticmethod
def Place(
    document: CadDocument,
    layout: CadSpace,
    plan: CadPlaceOnSheetPlan,
    at: GeoPoint2,
    scale: str,
) -> CadPlaceOnSheetResult

Places a view on a layout of the sheet's drawing, as one undo step: the resource drawing attached as an external reference in model space at the origin (reused where this drawing has it already), a viewport made on the layout with its middle at a point, showing the view at the scale, and a named view saved in the layout around the viewport.

Plan

.NET

@staticmethod
def Plan(drawingFile: str, viewName: str) -> CadPlaceOnSheetPlan

Works out what to place: the named view of a resource drawing, or where no view is named the box of everything in the drawing's model space.

ScaleNames

.NET

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

The scales of a drawing's list (SCALELISTEDIT), in the order of the list: the names Place on Sheet offers, as 1:100; the metric defaults for a drawing that keeps no list.

ScaleOf

.NET

@staticmethod
def ScaleOf(database: DxfDatabase, namedViewName: str) -> str

Reads the scale a view was placed at on a sheet: the scale of the viewport that the named view saved in the layout surrounds.