Do you want the processing to have USER INTERACTION -- where they can select all the sheet bodies -- and then the GRIP delete them?
If not and this is all interactive, WHATpart of the processing do you need help with? The aspects of the processing as I can determine it are :
- find all SHEET bodies (vs SOLID bodies since "mask" or object type 70/0 is sheet or solid) in the work part
- check that object is VISIBLE in the current display
- check that object is not blanked
- delete the object
I thought that might have been the issues since the OBJECT TYPE does not seem to indicate it.
The documentation under SHEET CREATION has:
A solid body is a collection of faces and edges that "close up" to enclose a volume.
A sheet is a body with a zero thickness, similar to a surface, made up of a collection of faces and edges that do not "close up" to enclose a volume. Each sheet has an underlying surface type, such as a surface of revolution, cylinder, B-surface, etc., that defines its shape.
When I scanned for VOLUME i say two calls:
ANLSIS/SOLID - Used to "Returns the mass properties of a list of solid bodies."
ANLSIS/VOLBND - Used to "Analyzes a solid volume bounded by sheet bodies. "
You could call the ANLSIS/SOLID -- using GENEROUS tolerances. Hopefully SHEET bodies will have a ZERO volume returned.
In GRIP you can use the OBTAIN/ statement to determine whether a body is a solid (1) or a sheet (2).
You can find the OBTAIN command in the Major Word list in the GRIP docs.