Function Syntax: DynamicDivide Version: 1 Date: July 21, 2022, 11:26:39 AM Version: 1.0 Date: 20.06.2026 6:38:59PM https://www.theswamp.org/index.php?topic=57716.0 Description 🧩 DynamicDivide is an AutoCAD AutoLISP utility that dynamically divides a LINE ARC or LWPOLYLINE into equal segments using POINT entities. 👁️ Moving the cursor over a supported object displays temporary division points before the user commits the operation. ⌨️ The number of divisions can be changed interactively with plus and minus keys or entered directly from the keyboard. Function Syntax Main command: DynamicDivide SEO Optimized Overview 📐 The routine calculates the total curve length and divides it by the selected segment count. 👁️ Mouse movement uses temporary grpoint graphics so the user can preview the division points before clicking. 📍 A mouse click on a supported curve creates permanent AutoCAD POINT entities at the calculated intermediate distances. ➕ The plus key increases the segment count while the minus key decreases it with a minimum practical value of two. 🔢 A new segment count can also be typed and accepted with Enter or Space. 💾 The last segment count is stored through setenv under dexus:DynamicDivide and reused on the next run. 🎨 Temporary point graphics follow the current PDMODE PDSIZE and current layer color behavior. Primary Workflow • Run DynamicDivide. • Move the cursor over a LINE ARC or LWPOLYLINE to preview equal division points. • Use plus or minus to adjust the number of segments or type a new value. • Click the required curve to create permanent POINT entities at the division locations. • Continue previewing and dividing additional supported curves or exit the command. Functionalities Dynamic preview - shows temporary point markers while the cursor moves over supported geometry. Equal segment division - calculates equally spaced locations from total curve length. LINE support - divides straight line entities. ARC support - divides arc entities by curve distance. LWPOLYLINE support - divides lightweight polylines by accumulated curve length. Keyboard count control - supports plus minus and direct numeric entry. Persistent count - remembers the last segment count between command runs. Point style integration - temporary markers respect AutoCAD point display settings. Undo grouping - wraps generated point creation in an AutoCAD undo group. Important Commands and Aspects 🧩 vlax-curve-getDistAtParam calculates total curve length. 🧩 vlax-curve-getPointAtDist calculates every division location. 🧩 grpoint draws temporary markers using the current AutoCAD point display style. 🧩 setenv stores the last selected DynamicDivide segment count. Result 🎯 The result is a set of AutoCAD POINT entities positioned at equal intervals along the selected curve. 📏 The source curve remains unchanged. Important Notes ⚠️ Only LINE ARC and LWPOLYLINE are accepted by the current object type check. ⚠️ The command creates intermediate division points and does not create a point at every curve endpoint. ⚠️ The last division count is stored in the AutoCAD environment. SEO Keywords 🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ DynamicDivide, 🏷️ DIVIDE, 🏷️ Equal segments, 🏷️ POINT entities, 🏷️ Dynamic preview, 🏷️ LWPOLYLINE, 🏷️ ARC, 🏷️ LINE, 🏷️ CAD automation