Table of Contents

Class CadSheetSetPlacement

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

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.

public static class CadSheetSetPlacement
Inheritance
CadSheetSetPlacement
Inherited Members

Fields

DefaultScale

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

Methods

Command(CadPlaceOnSheetPlan, string, Action<CadPlaceOnSheetResult>)

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 Place(CadDocument, CadSpace, CadPlaceOnSheetPlan, GeoPoint2, string) does. Run it with Start(CadCommand).

Place(CadDocument, CadSpace, CadPlaceOnSheetPlan, GeoPoint2, string)

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(string, string)

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(CadDocument)

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(DxfDatabase, string)

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.