CadPurge
Vecad CadPurge — deletes entities / named objects by Mode (vecad CHM Funcs/CadPurge.htm).
void CadPurge (
YuHandle hDwg,
std::int32_t Mode
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - Mode (std::int32_t)
- Mode selector — see the constants referenced in the description.
Return Value
None.
Remarks
saper drives floor changes with CAD_CLEAR_PAGE, expecting the page's entities gone before the new floor is redrawn. 0 ALL — all entities + named objects (recreate defaults) 1 ENTITIES — all entities (except in-block) 2 LAYER — entities (except in-block) on the current layer 3 DELETED — purge orphaned named objects (unused block defs) 4 SELECTED — all selected entities 5 PAGE — all entities (except in-block) on the current page "except in-block" is automatic: block-definition children live in blocks_, not entities_, so traversing top-level entities skips them.