Erase all objects outside/inside area - Draftsight

Is there a command to remove everything that is outside or inside a rectangle or a polyline? Is it possible to ensure that blocks that intersect the polyline are also trimmed close to it? Thank you.

Draftsight Enterprise Plus 2024 x64 SP4