Table of Contents

Method Place

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

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.

public static CadPlaceOnSheetResult Place(CadDocument document, CadSpace layout, CadPlaceOnSheetPlan plan, GeoPoint2 at, string scale)

Parameters

document CadDocument

The sheet's drawing.

layout CadSpace

The layout of the sheet; not Model.

plan CadPlaceOnSheetPlan

What is placed.

at GeoPoint2

The middle of the viewport, on the layout's paper.

scale string

The scale, as 1:100 or 2:1.

Returns

CadPlaceOnSheetResult

What was made.

Exceptions

ArgumentNullException

Thrown when the document, the layout, the plan or the scale is null.

ArgumentException

Thrown when the scale is not a ratio above nought.

InvalidOperationException

Thrown when the layout is Model, the resource drawing cannot be attached, or the edit is refused.