Short description
Purpose: Provide a unified dialog interface for running multiple area-processing operations inside closed polylines Use cases: Creating inside boundaries, breaking curves, converting regions to polylines, filtering out open polylines, or joining areas Memory: Stores last chosen option in *BR2P-last-option* and auto-selects it next run

Command:
Command name: BR2P Dialog: Seven radio options select different area-processing workflows Options: • rb01 BreakAll • rb02 Boundary Offset • rb03 Region2Polyline • rb04 Offset + Region2Polyline • rb05 BreakAll + Offset + Region2Polyline • rb06 Delete open polylines only • rb07 JoinAreas Cancel: Leaves the drawing untouched and prints “Command canceled.”
Description:
This routine centralizes several processing tools into a single dialog window, allowing the user to pick one workflow for generating, cleaning, or merging interior closed areas. Each radio selection triggers one or a chain of advanced geometric operations such as breaking curves at intersections, creating offset-based inside boundaries, converting regions to polylines, removing open shapes, or unifying closed polylines into single areas. The chosen method is remembered for the user’s next session, making repeated usage faster and more consistent.
Helper function: (if any)
• writeBR2PDCL Builds a temporary DCL file containing the 7-option radio dialog • radioBR2PDCL Loads the dialog, restores last selected option, retrieves the chosen radio button, and stores it globally • c:BreakAll Breaks all selected curves at mutual intersections using an adjustable gap • c:boffset Creates boundary regions from planar curves and performs offset-edge operations dynamically or at a fixed distance • c:Region2Polyline Wrapper selecting regions for conversion • :Region2Polyline Recreates closed lightweight polylines from regions by ordering segments and applying bulges • c:DEL_OPEN_PL Deletes LINEs and open polylines inside a window but keeps closed polylines untouched • c:JoinAreas Converts closed polylines to regions, unions them, explodes back to curves, and rejoins them into unified polylines
Functionalities:
• Unified workflow One command controls multiple area-processing operations • Intersection breaking Prepares geometry for clean area creation • Inside boundary generation Using region + offset-edge logic from robust Lee Mac tools • Region → Polyline Converts regions into accurate closed polylines with proper bulges • Pipeline commands rb04 and rb05 execute chained multi-step workflows automatically • Cleaning tool Deletes all open polylines inside a window selection • Area joining Regions are boolean-united then converted back to closed polylines with maintained properties • Undo safety Uses undo marks and restores system variables after operations • Temporary file cleanup Removes DCL file after use and deletes interim geometry during processing
Result:
• Final geometry Produces broken, offset, converted, cleaned, or unified polylines depending on the chosen option • Area readiness Ensures clean closed shapes perfect for catchment modeling or quantity extraction • Efficiency Complex multi-step workflows can be triggered with a single dialog choice • Repeatability Previous user settings persist, speeding repeated processing
Images, animations etc.
Log in to download.
Log in
Log in
