Table of Contents

Method WithViewport

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

WithViewport(string)

Gives a copy of the reference snapped through a viewport, as AutoCAD 2021 ties a dimension on a layout to the model space objects a viewport shows (trans-spatial association, DIMASSOC 70 written 1): the handle of the viewport goes before the handle of the object, and of the second object of an intersection, in the DIMASSOC, and the DIMASSOC is among the reactors of the viewport. The point of the reference is kept as no point there, as AutoCAD keeps none (it writes 0, 0, 0 and, for an end, 2E50 for its Z): the object and the parameter say where the point is.

public DxfOsnapPointRef WithViewport(string viewportHandle)

Parameters

viewportHandle string

The handle of the viewport; null for a point snapped in the space of the dimension.

Returns

DxfOsnapPointRef

The copy.