📐 AutoCAD: распределение MLeader по периметру за 3 точки | SmartAlign Perimeter

12+
12+

3 дня назад

ПожаловатьсяНарушение авторских прав
12+
12+

3 дня назад

ПожаловатьсяНарушение авторских прав
12+
12+

3 дня назад

📐 What if, instead of aligning MULTILEADER objects along a single line, AutoCAD could automatically distribute them around the entire perimeter of a complex drawing view? That idea became: MLeaderSmartAlign Perimeter v0.1 A new AutoLISP extension of the MLeaderSmartAlign project for AutoCAD. ━━━━━━━━━━━━━━━━━━ ⚙️ HOW IT WORKS Only 3 points are required to define the distribution area: P1 → P2 → P3 The fourth vertex of the parallelogram is calculated automatically. The command then creates: ◇ 4 parallelogram sides ╱╲ 2 diagonals △ 4 triangular regions The algorithm analyzes the original Arrow Points of the selected MULTILEADER objects and determines which region each Leader belongs to. Each group of MLeaders is then assigned to its corresponding perimeter side. ━━━━━━━━━━━━━━━━━━ 🧠 But this is not a simple one-time sort. Each side uses the same iterative geometry-aware algorithm developed for MLeaderSmartAlign: N → select an MLeader → move it N−1 → recalculate all remaining candidates → select the next one N−2 → recalculate again … 1 After every MLeader is placed, the remaining geometry is evaluated again. This helps produce a more natural Leader order and reduce crossing Leader Lines. ━━━━━━━━━━━━━━━━━━ 🖱 WORKFLOW 1st click → start of the first side mouse movement → preview the first side 2nd click → fix the first side mouse movement → immediately start defining the second side 3rd click → fix the second side Then the command automatically: → completes the parallelogram → creates both diagonals → divides the MLeaders into four groups → distributes each group along its own side → places the MLeaders step by step → removes the temporary construction geometry ━━━━━━━━━━━━━━━━━━ 🔧 COMMAND MLeaderSmartAlignPerimeter Short alias: MSAP File: MLeaderSmartAlign_Perimeter_v01_fix1.lsp ━━━━━━━━━━━━━━━━━━ 📦 GITHUB MLeaderSmartAlign project: https://github.com/ivashinpavel07/AutoCAD-AutoLISP-MLeaderSmartAlign MLeaderSmartAlign_Perimeter_v01_fix1.lsp will also be added to this repository. ━━━━━━━━━━━━━━━━━━ 🎬 THE ORIGINAL MLeaderSmartAlign PROJECT In my previous video, I demonstrate the limitations of the standard AutoCAD MLEADERALIGN command and the first version of my own geometry-aware alignment algorithm: AutoCAD MLEADERALIGN — зачем нужна такая команда? | MLeaderSmartAlign без пересечений https://www.youtube.com/watch?v=xIh3vYKc8fs ━━━━━━━━━━━━━━━━━━ An interesting part of this project is how the algorithm has moved between CAD systems. It started as an old VBA project for CATIA V5. Then the idea was transferred to AutoCAD using AutoLISP. Later, the SmartAlign Perimeter concept was developed for CATIA V5. And now that new perimeter logic has been brought back to AutoCAD 🙂 CATIA V5 → AutoCAD → new CATIA algorithm → back to AutoCAD. ━━━━━━━━━━━━━━━━━━ ⚠️ MLeaderSmartAlign Perimeter v0.1 is currently the first working version. The concept is especially useful for: → isometric views → assembly drawings → drawings with many position callouts → dense MULTILEADER layouts → situations where manually arranging dozens of Leaders around a view takes too much time If you test it on your own drawings, I would be very interested to see how the algorithm performs with different geometry. #AutoCAD #AutoLISP #LISP #MLeader #MULTILEADER #MLEADERALIGN #CAD #Automation #Drafting #Engineering

Название:

📐 AutoCAD: распределение MLeader по периметру за 3 точки | SmartAlign Perimeter

Категория:

Разное