SplitHatch

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.

Pixel

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>

Additional info:

Share this page:

Leave a Reply

Page Tag: 🏷️ AutoLISP

  • SplitHatch

    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…

  • MleaderStraight

    Short description📐 MleaderStraight is an AutoCAD and Civil 3D AutoLISP utility for straightening selected MultiLeader leader lines into clean horizontal or vertical orthogonal segments. 🧭 The tool includes a compact DCL chooser that can process either manually selected MLeader objects or every MultiLeader in the current Model/Paper space layout. Command:🚀 Main command: MleaderStraightTools 📌 Selection…

  • ConvertPolylineAndText2Mleader

    Short description🚀 Converts selected AutoCAD polylines into leader geometry using the P2L command, copies the original polyline properties to the new leader, and removes the source polyline after conversion. Command:P2L Description:📘 ConvertPolylineAndText2Mleader is an AutoLISP drafting utility for AutoCAD users who need to convert selected POLYLINE or LWPOLYLINE geometry into leader-style annotation paths. The implemented…

  • ConvertLeaderAndText2Mleader

    Short description🏷️ AutoCAD AutoLISP tool for converting old LEADER plus MTEXT annotation pairs into modern MLEADER objects while preserving text, style, layer, rotation, formatting options, and annotation workflow. Command:🧰 Main commands: LTM and Leader_To_Multileader. Run LTM for the short command alias or Leader_To_Multileader for the full command name. Description:🚀 ConvertLeaderAndText2Mleader is an AutoCAD and Civil…

  • AddVertex2Mleader

    Short description🧩 AddVertex2Mleader is an AutoCAD AutoLISP utility that adds a new vertex point to a selected MULTILEADER object, helping CAD users adjust leader geometry quickly without rebuilding the annotation. Command:🚀 Main command: AddVertex2Mleader Type AddVertex2Mleader in the AutoCAD command line, select a MULTILEADER object, then pick the point where the new leader vertex should…

  • TrimIn_TrimOut_Boundary

    Short descriptionRectangle-based AutoLISP trim and erase utility for keeping or removing geometry inside or outside a selected boundary. Command:CUT SCB SC SCD Description:TrimIn_TrimOut_Boundary is an AutoLISP boundary-cleanup routine based on the enhanced multi-trim SECTION workflow by Bob Jones with a dialog interface added by Jim Arthur. It prompts the user for two rectangle corners and…

  • NCopyExtra

    Short descriptionAutoCAD AutoLISP / Visual LISP tool for copying geometry from XREF drawings into the host drawing, with dialog-driven XREF selection, rectangle/window filtering, optional debug reporting, XREF layer-name cleanup, layer property transfer, and a classical nested-object copy mode. Command:NCopyExtra NCopyExtraD NCopyExtraW NCopyExtraI ClassicalNCopy Description:NCopyExtra is an AutoCAD AutoLISP utility designed to copy objects from attached…

  • CopyPaste2BasePoint

    Short description📋 CopyPaste2BasePoint is an AutoCAD AutoLISP productivity tool for copying selected drawing objects with a fixed base point at 0,0,0 and pasting clipboard content back at the same origin-based coordinate. Command:🚀 Main commands: – Copy2BasePoint: selects drawing entities and runs AutoCAD COPYBASE using 0,0,0 as the base point. – PasteBasePoint: runs AutoCAD PASTECLIP using…

  • CenterAreaCentroid

    Short description📍 AutoCAD AutoLISP utility for locating an inner center point or centroid from selected geometry, using a DCL dialog to choose between Center Area and Centroid workflows. Command:🚀 Main command: CenterAreaCentroid 📌 Center Area option: MostInnerPoint2 📌 Centroid option: get_centroid Description:📐 CenterAreaCentroid is an AutoCAD AutoLISP geometry utility that helps users create a point…

  • LenCalc

    Short description📊 Dialog-driven AutoCAD AutoLISP length calculator that summarizes geometry length by layer, linetype, or color and exports the result to AutoCAD tables, TXT, or CSV. Command:LenCal Description:📊 LenCalc is a dialog-based AutoCAD AutoLISP length calculator for quantity takeoff and drawing audit workflows. 🚀 The command scans supported curve entities, groups total lengths by Layer,…