"Please pick a region object." If objDrawingObject Is Nothing Or _
objDrawingObject, varEntityPickedPoint, _ It then explodes the object and displays a message box that lists the types of the objects into which it was exploded.ĭim objDrawingObject As AcadEntity Dim varEntityPickedPoint As Variant This code example asks the user to choose a Region object. The 3DPoly, BlockRef, LightweightPolyline, MInsertBlock, PolygonMesh, Polyline, Xref, and Region objects expose this method. To produce behavior similar to the AutoCAD EXPLODE command, also delete the original Block Insertion entity. Block Insertions leave the original block object behind, and the resulting exploded set of entities is actually a copy of each original nested entity in the Block Insertion.
This might mean breaking a block reference into its constituent drawing objects or a polyline into its individual straight-line polylines. It returns an array of objects that hold references to these subentities. Use the Explode method to break a compound object into its subentities.