Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating custom circular hatch pattern

13 REPLIES 13
SOLVED
Reply
Message 1 of 14
tilakpatel531
15389 Views, 13 Replies

Creating custom circular hatch pattern

tilakpatel531
Enthusiast
Enthusiast

Hello guys, need some advice on creating a custom hatch pattern consisting on circles.

Now I know one way of making custom hatch through making a notepad file and saving as .pat file and then importing in Autocad. But all the examples I saw online show pattern for only lines and not circles. Does anybody know how to make such a pattern?

I have also read it could be done using Autolisp but I'm not much familiar with it. Though I'm ready to learn if it is the better option.

Looking forward to your valuable suggestions.

 

Thanks.

Annotation 2020-05-03 002559.png

0 Likes

Creating custom circular hatch pattern

Hello guys, need some advice on creating a custom hatch pattern consisting on circles.

Now I know one way of making custom hatch through making a notepad file and saving as .pat file and then importing in Autocad. But all the examples I saw online show pattern for only lines and not circles. Does anybody know how to make such a pattern?

I have also read it could be done using Autolisp but I'm not much familiar with it. Though I'm ready to learn if it is the better option.

Looking forward to your valuable suggestions.

 

Thanks.

Annotation 2020-05-03 002559.png

13 REPLIES 13
Message 2 of 14
R_Tweed
in reply to: tilakpatel531

R_Tweed
Advisor
Advisor

As an alternative, you might want to consider using the express tools superhatch using a repeating block when your dealing with circles.

As an alternative, you might want to consider using the express tools superhatch using a repeating block when your dealing with circles.

Message 3 of 14
Kent1Cooper
in reply to: tilakpatel531

Kent1Cooper
Consultant
Consultant

It can't be of true circles as a Hatch pattern -- they consist only of lines and line segments.  But if a 24-sided polygon is "circular" enough for your purposes, it's likely that the open-centered pattern in CirclesTriGrid.pat, available >here<, could be re-written with proportions between radius and spacing like what you're after.  Since those proportions are different in your two diagrams, each would need to be its own pattern definition -- if you can work with the same proportion between "circle" radius and spacing, you can just use the same pattern at different scale factors.

Kent Cooper, AIA

It can't be of true circles as a Hatch pattern -- they consist only of lines and line segments.  But if a 24-sided polygon is "circular" enough for your purposes, it's likely that the open-centered pattern in CirclesTriGrid.pat, available >here<, could be re-written with proportions between radius and spacing like what you're after.  Since those proportions are different in your two diagrams, each would need to be its own pattern definition -- if you can work with the same proportion between "circle" radius and spacing, you can just use the same pattern at different scale factors.

Kent Cooper, AIA
Message 4 of 14
tilakpatel531
in reply to: R_Tweed

tilakpatel531
Enthusiast
Enthusiast

Hi, thanks for your input, I appreciate it. But I am going to use these patterns frequently in a lot of different drawings and so I need a pattern file which I can apply just like any other default pattern. Is it possible to use the custom pattern through Superhatch in different files?

0 Likes

Hi, thanks for your input, I appreciate it. But I am going to use these patterns frequently in a lot of different drawings and so I need a pattern file which I can apply just like any other default pattern. Is it possible to use the custom pattern through Superhatch in different files?

Message 5 of 14
Kent1Cooper
in reply to: tilakpatel531

Kent1Cooper
Consultant
Consultant

@tilakpatel531 wrote:

…. I am going to use these patterns frequently in a lot of different drawings and so I need a pattern file which I can apply just like any other default pattern. Is it possible to use the custom pattern through Superhatch in different files?


I don't think [but you can confirm easily enough -- I don't have AutoCAD up at the moment] that SuperHatch remembers options or stores what would be the equivalent of "pattern names" or files that could be used again in different drawings, but you would need to make all the choices again in each.  You would at least be able to make a drawing of a repeatable rectangular portion of the pattern you want, of Circle(s) and Arc(s), and store that as a drawing that you could bring in as a Block in different drawings to use in SuperHatch.  But if "the custom pattern" refers to any of the CirclesTriGrid patterns [or a similar one with different proportions], and that's circular enough for you, then you don't need SuperHatch.

Kent Cooper, AIA
0 Likes


@tilakpatel531 wrote:

…. I am going to use these patterns frequently in a lot of different drawings and so I need a pattern file which I can apply just like any other default pattern. Is it possible to use the custom pattern through Superhatch in different files?


I don't think [but you can confirm easily enough -- I don't have AutoCAD up at the moment] that SuperHatch remembers options or stores what would be the equivalent of "pattern names" or files that could be used again in different drawings, but you would need to make all the choices again in each.  You would at least be able to make a drawing of a repeatable rectangular portion of the pattern you want, of Circle(s) and Arc(s), and store that as a drawing that you could bring in as a Block in different drawings to use in SuperHatch.  But if "the custom pattern" refers to any of the CirclesTriGrid patterns [or a similar one with different proportions], and that's circular enough for you, then you don't need SuperHatch.

Kent Cooper, AIA
Message 6 of 14
R_Tweed
in reply to: tilakpatel531

R_Tweed
Advisor
Advisor

You would need the block definition in the file and you could accomplish this with a macro.

0 Likes

You would need the block definition in the file and you could accomplish this with a macro.

Message 7 of 14
tilakpatel531
in reply to: R_Tweed

tilakpatel531
Enthusiast
Enthusiast

Could you please explain little more? I have made a block of the pattern and tried with Superhatch. But it is only useful in that particular file. No as I  intend to use across different files.

0 Likes

Could you please explain little more? I have made a block of the pattern and tried with Superhatch. But it is only useful in that particular file. No as I  intend to use across different files.

Message 8 of 14
pendean
in reply to: tilakpatel531

pendean
Community Legend
Community Legend
Superhatch is a per-drawing tool, nothing else.
And stock hatch creation method in AutoCAD does not allow for circles.

Show us your intended hatch pattern, lets see what you are trying to create.
0 Likes

Superhatch is a per-drawing tool, nothing else.
And stock hatch creation method in AutoCAD does not allow for circles.

Show us your intended hatch pattern, lets see what you are trying to create.
Message 9 of 14
tilakpatel531
in reply to: pendean

tilakpatel531
Enthusiast
Enthusiast

Hi, I have attached the image of what I'm after. I also found this awesome Autolisp tool which lets you create any custom hatches. Though it doesn't support perfect circles, it can generate quite detailed cirlces with many lines.

Here is the link to the tool- https://www.mladengradev.com/en/create-custom-hatches-in-autocad/

 

I'm still learning how to use this tool as there are neither many tutorials avaiable nor any instructions included. Does anyone know how to use it? I'm particularly looking to edit the size of the square window inside which we draw the pattern.

0 Likes

Hi, I have attached the image of what I'm after. I also found this awesome Autolisp tool which lets you create any custom hatches. Though it doesn't support perfect circles, it can generate quite detailed cirlces with many lines.

Here is the link to the tool- https://www.mladengradev.com/en/create-custom-hatches-in-autocad/

 

I'm still learning how to use this tool as there are neither many tutorials avaiable nor any instructions included. Does anyone know how to use it? I'm particularly looking to edit the size of the square window inside which we draw the pattern.

Message 10 of 14
R_Tweed
in reply to: tilakpatel531

R_Tweed
Advisor
Advisor
Accepted solution

You would need to insert your patterns into each dwg. Make a pattern library file "dwg" and use a macro to insert the pattern blocks. You can add additional patterns to the pattern library file. I've made a screencast  <here> to show the steps.

You would need to insert your patterns into each dwg. Make a pattern library file "dwg" and use a macro to insert the pattern blocks. You can add additional patterns to the pattern library file. I've made a screencast  <here> to show the steps.

Message 11 of 14
Kent1Cooper
in reply to: tilakpatel531

Kent1Cooper
Consultant
Consultant
Accepted solution

@tilakpatel531 wrote:

.... I also found this awesome Autolisp tool .... Does anyone know how to use it? I'm particularly looking to edit the size of the square window inside which we draw the pattern.


There are pretty detailed instructions right on the page in your link.

 

If that requires a square  piece to work with, it will never work with your triangular pattern -- no distance is going to meet a horizontal circle spacing and a vertical row spacing, because of the non-orthogonal angle.

 

But a Block of a rectangular portion between circle centers, like just the yellow parts in this:

HatchBlock.JPG

works pretty well in SuperHatch.

Kent Cooper, AIA


@tilakpatel531 wrote:

.... I also found this awesome Autolisp tool .... Does anyone know how to use it? I'm particularly looking to edit the size of the square window inside which we draw the pattern.


There are pretty detailed instructions right on the page in your link.

 

If that requires a square  piece to work with, it will never work with your triangular pattern -- no distance is going to meet a horizontal circle spacing and a vertical row spacing, because of the non-orthogonal angle.

 

But a Block of a rectangular portion between circle centers, like just the yellow parts in this:

HatchBlock.JPG

works pretty well in SuperHatch.

Kent Cooper, AIA
Message 12 of 14
tilakpatel531
in reply to: Kent1Cooper

tilakpatel531
Enthusiast
Enthusiast

@Kent1Cooper @R_Tweed thanks to both of you. i combined both of your tricks and the end result is perfect.

since it is a repetitive pattern, instead of making one single instance, we can make something more than "one" to fill the square. thanks to everyone for your inputs and time. gotta love this community!

Screenshot (295)_LI.jpgAnnotation 2020-05-06 113322.pngAnnotation 2020-05-06 113819.png

0 Likes

@Kent1Cooper @R_Tweed thanks to both of you. i combined both of your tricks and the end result is perfect.

since it is a repetitive pattern, instead of making one single instance, we can make something more than "one" to fill the square. thanks to everyone for your inputs and time. gotta love this community!

Screenshot (295)_LI.jpgAnnotation 2020-05-06 113322.pngAnnotation 2020-05-06 113819.png

Message 13 of 14
Kent1Cooper
in reply to: tilakpatel531

Kent1Cooper
Consultant
Consultant

I do notice, however, that in order to make an actually square  piece, you have had to change the spacing between the circles in the diagonal directions compared to the spacing in the horizontal direction, which also means that it's not an equilateral-triangle arrangement [the diagonal angle between centers is not 60 degrees].  Obviously if that works for you, go for it, but it is  different from your original images.

Kent Cooper, AIA
0 Likes

I do notice, however, that in order to make an actually square  piece, you have had to change the spacing between the circles in the diagonal directions compared to the spacing in the horizontal direction, which also means that it's not an equilateral-triangle arrangement [the diagonal angle between centers is not 60 degrees].  Obviously if that works for you, go for it, but it is  different from your original images.

Kent Cooper, AIA
Message 14 of 14
tilakpatel531
in reply to: Kent1Cooper

tilakpatel531
Enthusiast
Enthusiast

yes. actually the angle turns out to be 63° instead of 60°. it should work fine though. you've got an eye of an eagle for noticing such minute difference😃 

0 Likes

yes. actually the angle turns out to be 63° instead of 60°. it should work fine though. you've got an eye of an eagle for noticing such minute difference😃 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report