Method Place
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
documentCadDocumentThe sheet's drawing.
layoutCadSpaceThe layout of the sheet; not Model.
planCadPlaceOnSheetPlanWhat is placed.
atGeoPoint2The middle of the viewport, on the layout's paper.
scalestringThe 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.