Method SetRegionShape
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetRegionShape(DxfRegionShape)
Gives a REGION another shape in place, its handle, owner, layer and look kept, as AutoCAD's BooleanOperation
leaves the first region of a union: the ACIS data is written anew for the drawing's version, in the SAT groups or in
the record of the data store the region already has.
public void SetRegionShape(DxfRegionShape shape)
Parameters
shapeDxfRegionShapeThe shape: a box 40 by 30 united with a circle of radius 10 on its right edge, area 1 357.08.
Exceptions
- ArgumentNullException
Thrown when the shape is null.
- InvalidOperationException
Thrown when the entity is not a REGION.
- NotSupportedException
Thrown when the region's drawing is of a version before R2000, whose regions are not written.