Similar this is useful for other kinds of diagrams type drawings and for callout
ballons etc.
2d assembly drawings can be implemented with manipulating the draw order
of the blocks. For example a shaft with bearings and components where the
shaft is below all other blocks.
In AutoCAD there is an option to use a “wipeout” element for this.
Other software implement this with a invisible hatch.
I did not find any possibility to implement this with the current toolset in Rhinoceros,
but I might be wrong here.
We have that feature request on the heap as RH-73639 - Polyline Mask for objects (WIPOUT)
This item is not visible to the public.
In the case of your valve on the hydraulic line, when you include a white hatch in the valve block, you can use the SendToBack command on the line to make that not show up through the block.