What does SUBTRACT do?
SUBTRACT removes the volume or area of one set of objects from another. It is one of the main Boolean modelling commands and is commonly used to create holes, recesses, slots and other cut-outs in 3D solids.
The command can also work with coplanar 2D regions. The order of selection is important: first select the objects you want to keep, then select the objects that should be subtracted.
How to use the command
- Position the objects so that the geometry to be removed overlaps the object you want to keep.
- Type
SUBTRACTor its shortcut SU, then press Enter. - Select the solids, surfaces or regions that you want to keep and press Enter.
- Select the objects that should be subtracted.
- Press Enter to complete the Boolean operation.
Command: SU ↵
Select objects: select solid to keep ↵
Select solids, surfaces, and regions to subtract: select cutting solid ↵
Key SUBTRACT options
SUBTRACT has no additional command-line options. The result is determined by the two selection sets and the geometry they contain.
Practical example: create a hole through a solid
Suppose you have a rectangular solid measuring 100 × 60 × 20 mm and need a hole with a diameter of 20 mm. Create a cylinder with a diameter of 20 mm that passes completely through the plate.
Run SUBTRACT, select the rectangular solid first and press Enter. Then select the cylinder and press Enter. GstarCAD removes the cylinder’s overlapping volume and leaves a circular hole through the plate.
Tip
Selection order matters. First select what you want to keep, then select what you want to remove.