InteriorPolylinesArea

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
interiorpolylinesarea 00

Command:

Command name: BR2P Dialog: Seven radio options select different area-processing workflows Options:rb01 BreakAllrb02 Boundary Offsetrb03 Region2Polylinerb04 Offset + Region2Polylinerb05 BreakAll + Offset + Region2Polylinerb06 Delete open polylines onlyrb07 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 dialogradioBR2PDCL Loads the dialog, restores last selected option, retrieves the chosen radio button, and stores it globallyc:BreakAll Breaks all selected curves at mutual intersections using an adjustable gapc:boffset Creates boundary regions from planar curves and performs offset-edge operations dynamically or at a fixed distancec:Region2Polyline Wrapper selecting regions for conversion:Region2Polyline Recreates closed lightweight polylines from regions by ordering segments and applying bulgesc:DEL_OPEN_PL Deletes LINEs and open polylines inside a window but keeps closed polylines untouchedc: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 operationsIntersection breaking Prepares geometry for clean area creationInside boundary generation Using region + offset-edge logic from robust Lee Mac toolsRegion → Polyline Converts regions into accurate closed polylines with proper bulgesPipeline commands rb04 and rb05 execute chained multi-step workflows automaticallyCleaning tool Deletes all open polylines inside a window selectionArea joining Regions are boolean-united then converted back to closed polylines with maintained propertiesUndo safety Uses undo marks and restores system variables after operationsTemporary 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 optionArea readiness Ensures clean closed shapes perfect for catchment modeling or quantity extractionEfficiency Complex multi-step workflows can be triggered with a single dialog choiceRepeatability Previous user settings persist, speeding repeated processing

Images, animations etc.

Pixel

Additional info:

Region2Polyline: Open Website
JoinAreas: Open Website

Share this page:

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x