Table of Contents

Method SetFromGeCurve

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetFromGeCurve(object)

Gives the polyline the vertices of a chain or loop, as AutoCAD's SetFromGeCurve, written as DxfWriter writes one as a 3D POLYLINE, its VERTEX records written anew and its SEQEND kept: a GeoPolyline3 open and a GeoPolygon3 closed, in world coordinates; a GeoPolyline2 or a GeoPolygon2 at z = 0, read back by ToGeoPolyline2() or ToGeoPolygon2() to the bit. Its handle, layer, look and extended data are kept. Where the shape is written anew its fitting is not kept, the polyline coming back straight; 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, or not one of finite numbers.

InvalidOperationException

Thrown when the polyline is erased.