This macro will delete any active elements behind the identified cell using a predefined boundary (clip shapes) or the cell range.
If a shape, complex shape or ellipse in construction class exist in the cell, it will be used as a boundary to perform a fence clip delete, otherwise the cell range will be used. The cell range is the square boundary that encases all cell elements.
The cell itself is not affected by the clipping, only the other elements crossing the clip boundary.
The download cellclip.zip has a cell library cellclip.cel included which contains the sample cells shown in Figures 1 to Figure 3.
Figure 1 (before)
Figure 2 (after) : Cells: trian2 & elips2 have no clip shapes defined, the cell range is used
Figure 3 (after) : Cells: trian1 & elips1 have clip shapes defined
Procedure
Once loaded, simply hit a data point on cells to clip behind it, keep the following points in mind when using the macro:
The macro will only allow you to select cells.
It does not work on referenced cells.
The clipping does not work properly when the Unit Lock is turned ON, therefore it is turned OFF when used.
Construction view attribute does not have to be ON for the clipping to work
When creating your own clip shapes, ensure that they are in construction class. For example, for the ellipse in figure 1, simply make a copy of the ellipse on top of itself and change the copy to construction class.