@edushka228
Hello and welcome to the forum.
Are you able to select the hexagons as additional boundaries for defining your Hatch area?
Chris Benner
Industry Community Manager – Design & Manufacturing
If a response answers your question, please use ACCEPT SOLUTION to assist other users later.
Also be generous with Likes! Thank you and enjoy!
I'm not quite sure what you're talking about. Both of these objects are hatchings. I can make the hexagons islands if I apply the EXPLODE command to them and then paint the area with another hatch. But solving the problem manually is not something I need to do. I would like to know if this can be done at the programming level or using the Autocad Object Model
@edushka228
Ok, thank you. I understand now. I did not catch that the hexagons were also a Hatch patterns.
Chris Benner
Industry Community Manager – Design & Manufacturing
If a response answers your question, please use ACCEPT SOLUTION to assist other users later.
Also be generous with Likes! Thank you and enjoy!
You could create a hatch pattern with all the lines you want but you cannot use existing hatch lines to define the boundary of another hatch and it would be a very time consuming task.
You could also or search for a similar pattern online as there are hundreds out there.
There are a few aftermarket software options for creating them as well as the SUPERHATCH (Express Tool) that comes installed with AutoCAD Express Tools.
https://www.google.com/search?q=download+hatch+patterns
https://www.google.com/search?q=hatch+pattern+maker+autocad
How to implement such functionality? What language is needed for this? AutoLISP or just LISP?
Do you use that very same combination repeatedly, with the line elements always at the same angle and spacing relative to the size of the hexagons? If so, it's conceivable that a single Hatch pattern definition could produce the hexagons and the parallel lines. But it might need the line spacing to be something specific that might be slightly different from the image, in order for the line elements to meet the hexagons in a regular way that would be possible in a Hatch pattern definition.
I'd like to combine different hatches, and it doesn't matter what any of them look like.
There are four shadings here. I would like to define their overlapping by the order in which these hatchings are added
Create a copy of the Hexagon hatch pattern and give it a new name.
In order to make repeating lines that fit that pattern of hexagons you need to start with adding a line on the same angle as the hexagons are and adjusting the start point to be the midpoint coming out of the hexagon and ending at the midpoint entering the next hexagon.
Adding four more lines on the same angle afterward equally spaced two of which would be easy as they should miss the hexagons completely.
About Custom Hatch Patterns and Hatch Pattern Definitions https://help.autodesk.com/view/ACD/2025/ENU/?guid=GUID-A6F2E6FF-1717-44B6-A476-0CA817ADD77E
I know about how to create custom hatches. I thought I could find a lisp script that allows you to overlay islands of hatches on top of each other
@edushka228 wrote:
.... I can make the hexagons islands if I apply the EXPLODE command to them and then paint the area with another hatch. ....
I think you may be stuck with that approach. But to a degree, that could be automated for you. A routine could make a copy of the Hatch pattern, Explode it, save the pieces to a selection set, start the other Hatch operation for you, and when you're done with that, get rid of the pieces of the Exploded one. Does that sound worth pursuing?
Yes, that can be done using autolisp or .net (c# typically used).
A script is a different thing, just so you know the terms.
What the tools would do is gather the geometry involved from hatches, lines, whatever you pick, and construct the hatch with islands. But it would just be rewriting the hatch command so why bother?
The input would be about the same.
You need to explain that more as you might be better off using a solid hatch, then wipeouts to mask the blank areas.
You can xclip the blocks to the edge of the hatch all at once. That keeps things separate as hatch islands are kind of a pain to deal with IMO.
internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties
@edushka228 wrote:
Who can I ask for help in developing such a lisp program?
The three customization forums are listed here if you wish to repost with more details
https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1
Can't find what you're looking for? Ask the community or share your knowledge.