Table of Contents

Method Point

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Point(string, GeoPoint3, CadDocument, Func<GeoPoint3, string>)

Makes the three rows of a point, "<label> X", "<label> Y" and "<label> Z", each a Length(string, double, CadDocument, Func<double, string>); typing one gives the setter the point with that coordinate changed and the others as they were. With a setter, the row being edited shows a pick-point button: it asks "Pick a point in the drawing:" on the command line, with a rubber band from the point, and a point picked gives the setter the whole point, its X and Y the picked ones and its Z as it was, as one change.

public static IReadOnlyList<CadPropertyRow> Point(string label, GeoPoint3 value, CadDocument document, Func<GeoPoint3, string> setter)

Parameters

label string

The label: "Center" gives Center X, Center Y and Center Z.

value GeoPoint3

The point.

document CadDocument

The drawing whose units the rows follow.

setter Func<GeoPoint3, string>

What changes the point; null for rows that are only read.

Returns

IReadOnlyList<CadPropertyRow>

The three rows, X first.

Exceptions

ArgumentNullException

Thrown when the label or the document is null.