Short description
🟧 SplitHatch is a compact AutoCAD AutoLISP command for separating selected multi-boundary hatches through HATCHEDIT.
✂️ It keeps hatch angle and scale behavior under AutoCAD’s native hatch separation workflow while applying the operation to one or more selected hatches.
Command:
🚀 Split hatch command: SplitHatch – separates selected multi-boundary hatch objects
Description:
✂️ SplitHatch is an SEO-friendly AutoCAD hatch separation routine for CAD cleanup and hatch editing workflows.
🟧 The command selects HATCH entities and applies AutoCAD HATCHEDIT with the Separate option to each selected hatch.
📐 The source comment indicates the routine separates multi-boundary hatches while keeping hatch angle and scale.
🧹 It is useful when one hatch object contains multiple boundaries and those boundaries need to become separate editable hatch objects.
🚀 The implementation is intentionally small and relies on AutoCAD’s native hatch editing command.
Helper function: (if any)
🧩 c:SplitHatch is the single command function that selects hatch objects and loops through them.
🧩 ssget collects the selected HATCH entities.
🧩 HATCHEDIT performs the native AutoCAD separation operation.
🧩 The repeat loop applies the same operation to every selected hatch.
Functionalities:
✅ Select one or more HATCH entities.
✅ Run AutoCAD HATCHEDIT Separate for each selected hatch.
✅ Convert multi-boundary hatch objects into separated hatch objects.
✅ Keep the workflow simple and command-line friendly.
✅ Report completion or indicate when no hatch was selected.
Result:
🎯 The result is a separated hatch structure that is easier to edit, layer-manage, delete, or isolate boundary by boundary.
🧹 The tool reduces repeated manual HATCHEDIT steps when cleaning production drawings.
Images, animations etc.
XAML code:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:Autodesk.Windows;assembly=AdWindows">
<src:RibbonToolTip x:Key="SplitHatch">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: SplitHatch</Bold>
<LineBreak/>
<LineBreak/>
<Bold>Version: 1.0 Date: 25.09.2025 5:19:00PM</Bold>
<LineBreak/>
<Hyperlink>AI</Hyperlink>
<LineBreak/>
<Bold><Run Foreground="DodgerBlue">Description</Run></Bold><LineBreak/><Run Foreground="White">✂️ SplitHatch is a lightweight AutoCAD AutoLISP utility for separating multi-boundary hatch objects.</Run><LineBreak/><Run Foreground="LimeGreen">🟧 It automates the HATCHEDIT Separate option so hatch cleanup can be applied quickly to multiple selected hatch entities.</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="DodgerBlue">Function Syntax</Run></Bold><LineBreak/><Run Foreground="White">Split hatch command: </Run><Bold><Run Foreground="Orange">SplitHatch</Run></Bold><Run Foreground="White">separates selected multi-boundary hatch objects</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="DodgerBlue">SEO Optimized Overview</Run></Bold><LineBreak/><Run Foreground="White">✂️ SplitHatch is an SEO-friendly AutoCAD hatch separation routine for CAD cleanup and hatch editing workflows.</Run><LineBreak/><Run Foreground="White">🟧 The command selects HATCH entities and applies AutoCAD HATCHEDIT with the Separate option to each selected hatch.</Run><LineBreak/><Run Foreground="White">📐 The source comment indicates the routine separates multi-boundary hatches while keeping hatch angle and scale.</Run><LineBreak/><Run Foreground="White">🧹 It is useful when one hatch object contains multiple boundaries and those boundaries need to become separate editable hatch objects.</Run><LineBreak/><Run Foreground="White">🚀 The implementation is intentionally small and relies on AutoCAD’s native hatch editing command.</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="LimeGreen">Primary Workflow</Run></Bold><LineBreak/><Run Foreground="White">1️⃣ Run </Run><Bold><Run Foreground="Orange">SplitHatch</Run></Bold><Run Foreground="White"> at the AutoCAD command line.</Run><LineBreak/><Run Foreground="White">2️⃣ Select the hatch or hatches to separate.</Run><LineBreak/><Run Foreground="White">3️⃣ The routine calls HATCHEDIT, chooses Separate, and confirms Yes.</Run><LineBreak/><Run Foreground="White">4️⃣ Review the newly separated hatch objects in the drawing.</Run><LineBreak/><Run Foreground="White">5️⃣ Use undo if the separation result is not the intended hatch structure.</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="LimeGreen">Functionalities</Run></Bold><LineBreak/><Run Foreground="White">✅ Select one or more HATCH entities.</Run><LineBreak/><Run Foreground="White">✅ Run AutoCAD HATCHEDIT Separate for each selected hatch.</Run><LineBreak/><Run Foreground="White">✅ Convert multi-boundary hatch objects into separated hatch objects.</Run><LineBreak/><Run Foreground="White">✅ Keep the workflow simple and command-line friendly.</Run><LineBreak/><Run Foreground="White">✅ Report completion or indicate when no hatch was selected.</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="DodgerBlue">Important Commands and Functions</Run></Bold><LineBreak/><Run Foreground="White">🧩 </Run><Bold><Run Foreground="Orange">SplitHatch</Run></Bold><Run Foreground="White"> - main AutoCAD command exposed by the LISP routine.</Run><LineBreak/><Run Foreground="White">🧩 </Run><Bold><Run Foreground="Orange">ssget</Run></Bold><Run Foreground="White"> - selects HATCH entities for processing.</Run><LineBreak/><Run Foreground="White">🧩 </Run><Bold><Run Foreground="Orange">HATCHEDIT</Run></Bold><Run Foreground="White"> - native AutoCAD command used for the Separate operation.</Run><LineBreak/><Run Foreground="White">🧩 </Run><Bold><Run Foreground="Orange">repeat</Run></Bold><Run Foreground="White"> - iterates through all selected hatch objects.</Run><LineBreak/><Run Foreground="White">🧩 </Run><Bold><Run Foreground="Orange">ssname</Run></Bold><Run Foreground="White"> - retrieves each hatch entity from the selection set.</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="LimeGreen">Result</Run></Bold><LineBreak/><Run Foreground="White">🎯 The result is a separated hatch structure that is easier to edit, layer-manage, delete, or isolate boundary by boundary.</Run><LineBreak/><Run Foreground="White">🧹 The tool reduces repeated manual HATCHEDIT steps when cleaning production drawings.</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="DarkRed">Important Notes</Run></Bold><LineBreak/><Run Foreground="White">⚠️ The routine depends on AutoCAD’s HATCHEDIT command behavior and prompts, so command-language/localization settings may matter in some environments.</Run><LineBreak/><Run Foreground="White">⚠️ It modifies existing hatch objects by separating them; use undo if the output is not desired.</Run><LineBreak/><Run Foreground="White">⚠️ It only processes HATCH entities.</Run><LineBreak/><LineBreak/>
<Bold><Run Foreground="Yellow">Tags</Run></Bold><LineBreak/><Run Foreground="Yellow">🏷️ AutoCAD, 🏷️ AutoLISP, 🏷️ Civil 3D, 🏷️ Split Hatch, 🏷️ HATCHEDIT, 🏷️ Hatch Cleanup, 🏷️ Separate Hatch, 🏷️ CAD Drafting, 🏷️ SplitHatch</Run><LineBreak/>
</TextBlock>
<Grid>
<Image Source="PNG" Stretch="Uniform"/>
</Grid>
<Grid>
<MediaElement
Source="GIF"
Stretch="Uniform"
Visibility="Visible"/>
</Grid>
</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
</ResourceDictionary>
