Table of Contents

Method SetFromGeCurve

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetFromGeCurve(object)

Gives the polyline the vertices and bulges of a chain or loop, as AutoCAD's SetFromGeCurve, written as DxfWriter writes one as a POLYLINE of the plane for a file older than R14, with its VERTEX records, its SEQEND kept: a GeoPolyline2, GeoPolylineArc2, GeoPolygon2 or GeoPolygonArc2 on the normal (0, 0, 1) at no elevation, closed for a loop, read back by the matching method of the plane to the bit; a GeoPolyline3, GeoPolylineArc3, GeoPolygon3 or GeoPolygonArc3 whose every vertex is within the default point tolerance of the plane through its first vertex square to the polyline's own Normal, no point of its arcs further off it than the planar tolerance, in the system of that normal, at the elevation of its first vertex, as SetFromGeCurve(object) writes one; any other of those in the system of the plane it lies in within the default tolerance, its normal turned up in its largest component. Its handle, layer, look, thickness and extended data are kept. Where the shape is written anew, its widths, its linetype generation and its fitting are not kept, the polyline coming back straight (PolyType simple); a shape written as the shape it has now is written leaves it as it is, widths and fitting and all.

public override void SetFromGeCurve(object geCurve)

Parameters

geCurve object

The chain or loop.

Exceptions

ArgumentException

Thrown when the shape is not one of those, is a chain of space that lies neither in the plane of the polyline's normal nor in one plane of its own within the default tolerance (one on a line off the polyline's plane among them), or is not one of finite numbers.

InvalidOperationException

Thrown when the polyline is erased.