DELETE_ENCLOSURE
Delete entities in the active drawing file that have any selected code and lie inside enclosures of loaded topologies whose centroids have a specified code. Lines crossing an enclosure boundary can be clipped to it.
Parameters
Does not accept parameters.
Notes
This command is similar to DELETE_W and has the same clipping types. It differs in three ways: its windows are topology enclosures whose centroids have the specified code, rather than a closed line; it only deletes entities with any code in the list; and it cannot delete the exterior.
The command works with topologies loaded using BINTOP. If none are loaded, it sounds an error tone, displays There is no topology file loaded, and ends.
Dialog box

Running the command displays the Select codes to delete dialog box:
| Field | Description | Default value |
|---|---|---|
| Code list | Codes of entities to delete. Supports wildcards (*, ?) |
Empty |
| Centroid code | Only enclosures whose centroids have this code are processed. Supports wildcards | Empty |
| Clipping type | Which entities are considered inside the enclosure. See Clipping types | Interior |
OK is only enabled when the list contains at least one code and Centroid code is not empty. Clicking OK saves the centroid code and clipping type in the Codigo and TipoRecorte values under the registry key HKEY_CURRENT_USER\Software\Digi21\Digi3D.NET\DigiNG\Extensiones\DigiNG.OrdenesTopologia\BorraR. The next time you run the command, the dialog box displays these values. Click Cancel to end the command without changes.
Entities processed
The command only processes entities in the active drawing file that:
- Have any code in the list.
- Are visible and within the area of interest.
- Are neither arcs nor centroids of any loaded topology. You can therefore use
*or arc codes without deleting the enclosure boundary or its neighbors' boundaries.
An entity with multiple codes is deleted whole if any code is in the list. Lines with the topology's code that do not belong to any enclosure, such as a dangling line, are not topology arcs and are processed.
Enclosures and holes
The command iterates over enclosures in all loaded topologies and processes those with a centroid having the specified code. An enclosure is clipped using its exterior boundary and its hole boundaries: what lies inside an island is outside the enclosure. If the island is itself an enclosure whose centroid has the specified code, the command processes it as another enclosure. An entity lying exactly on the boundary is considered inside.
Clipping types
| Type | Lines | Polygons and complex entities | Points and texts |
|---|---|---|---|
| Interior | Delete lines with all vertices inside. Lines crossing the boundary are unchanged | Delete those completely inside | Delete if the insertion point is inside |
| Cut | Clip lines crossing the boundary: delete inside portions and retain outside portions. Delete lines completely inside | Unchanged | Delete if the insertion point is inside |
| Overlap | Delete the entire line if at least one vertex is inside | Delete any with at least one vertex inside | Delete if the insertion point is inside |
Interior and Overlap decide by vertices: a line with all vertices inside the enclosure counts as interior even if one of its segments crosses an island.
In Cut mode, outside portions retain the original line's codes and attributes and are used for subsequent enclosures: a line crossing two processed enclosures loses the portions in both.
End of the command
When finished, the command refreshes the view, sounds the end-of-command tone, and displays a message with the number of processed enclosures, deleted entities, and clipped lines. If no enclosure has a centroid with the specified code, it sounds an error tone, displays No enclosure of the loaded topologies has a centroid with the code followed by the code, and changes nothing.
The command does not unload the topology: arcs and centroids are unchanged.
UNDO undoes all deletions and added portions at once.
If Digi3D.AI rejects any new portions of lines clipped by an enclosure, those lines are preserved without clipping, and no portions are added. Other enclosures are processed normally.
Command characteristics
| Command type | Immediate command |
|---|---|
| Repeats automatically | No |
| Menu option | This command has no associated menu option |
| Toolbar | This command has no associated toolbar button |
| Extension | DigiNG.OrdenesTopologia.dll |
| Implementation | Native |
| Related variables | No related variables |
| Related commands | BINTOP DELETE_COD_E DELETE_W CHNG_COD_E RENAMCOD_E UNDO |
| Internal name |