AddRegion Method |
Creates a region from a set of entities. The given entities must form a closed coplanar region.
Signature
RetVal = object.AddRegion(ObjectList)
Object
ModelSpace Collection,
PaperSpace
Collection, Block
The object or objects this method applies to.
ObjectList
Array of Objects
The array of objects forming the closed coplanar face to be made
into a region. This array may contain the following object types:
Line, Arc, Circle, Elliptical Arc, LightweightPolyline,
Spline.
RetVal
Variant
This method outputs an array of the newly created Region objects.
Remarks
This method will create a region out of every closed loop formed by the input array of curves. AutoCAD converts closed 2D and planar 3D polylines to separate regions, and then converts polylines, lines, and curves that form closed planar loops. If more than two curves share an endpoint, the resultant region might be arbitrary.
You can explode a region into the individual loops by using the Explode method. The Boolean method allows you to create composite 3D solids or regions from the intersection, union, or subtraction of a solid or region from another solid or region.
The total number of Region objects created is Ubound(objRegions) - Lbound(objRegions) + 1.
Comments? |