Method ConvertFrom
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ConvertFrom(DxfEntity, bool)
Gives the polyline the vertices, look and data of a DxfPolyline2d, as AutoCAD's ConvertFrom: its
vertices with their bulges and widths in the same system, its normal, elevation, thickness, closure, linetype
generation and constant width; with transferId this polyline takes the other's place in its
drawing, its handle, owner, extension dictionary and reactors, as AutoCAD hands the object id over, and the other is
erased. A curve-fitted polyline gives its vertices as drawn, the extra ones the fitting made among them; one fitted
with a spline is refused, as AutoCAD refuses it.
public void ConvertFrom(DxfEntity entity, bool transferId)
Parameters
entityDxfEntityThe polyline, a DxfPolyline2d.
transferIdboolWhether this polyline takes the other's place in its drawing; it is then to be in no file itself.
Exceptions
- ArgumentNullException
Thrown when the entity is null.
- ArgumentException
Thrown when the entity is not a DxfPolyline2d, or is fitted with a spline, or its drawing is of R12, which has no LWPOLYLINE.
- InvalidOperationException
Thrown when the place is to be taken and this polyline is in a file, or the other is in none; or either is erased.