Problems with Hatch

Problems with Hatch

Anonymous
Not applicable
2,260 Views
9 Replies
Message 1 of 10

Problems with Hatch

Anonymous
Not applicable

When i go to use hatch i select the area and it highlights the boundaries but doesnt give me the pattern i select, some patterns work but they dont look normal, others just dont show up at all.

 

Im using AutoCAD 2019 in school

 

Thank you ahead of time for any help!

0 Likes
2,261 Views
9 Replies
Replies (9)
Message 2 of 10

user181
Mentor
Mentor

Check the variable HPMAXLINES  and set it to a high number like 1000000

EESignature


Message 3 of 10

neaton
Advisor
Advisor

Try changing the scale of the hatch. Some are meant for larger are smaller areas than you are hatching. One way to tell is to create 2 different sized rectangles and hatch both to see if the hatch comes into one better than the other. Select the hatches and change the scale to 0.1, 0.5, 2, 5, etc. until the hatch shows as you expect.

As for looking incorrect set the HPORIGIN close the your hatch element. If the origin is very far away some hatches break. Look into HPORIGIN and HPORIGINMODE to set the origin.

Check the HPLAYER system variable and make sure the layer the hatch is created on is on.

If none of these tips work, post your drawing and we can look at it.

Nancy

0 Likes
Message 4 of 10

rkmcswain
Mentor
Mentor

Keep in mind, AutoCAD is not very smart on its own.  What I mean is hatch patterns are defined to be a certain size. Let's say that you have a pattern that is parallel lines that are 10 units apart.

 

Now you draw a rectangle of some unknown size, and you apply this hatch. Nothing happens. Perhaps the rectangle you drew is only 0.0001 unit wide. Of course nothing shows up, your rectangle is miniature compared to the hatch pattern design, and  AutoCAD is not going to auto-shrink the hatch pattern to fit your rectangle.

 

In the same way, say the rectangle you drew was 45 million units wide. The 10 unit spacing of the hatch pattern would result in a solid pattern because the lines would be so close together.

 

Now if you are using annotative hatching, it should be a "little smarter". The hatching in this case will adapt to the geometry based on the scale assigned to the viewport.

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 5 of 10

GrantsPirate
Mentor
Mentor

Since you mentioned they don't look normal it can also be because the drawing is too far from 0,0,0 origin.  Check to see if that is the case, only solution to that one is to move everything closer to 0,0,0.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 6 of 10

rkmcswain
Mentor
Mentor
@GrantsPirate wrote:

... only solution to that one is to move everything closer to 0,0,0.

That was true prior to AutoCAD 2006, but Hatches have an "origin" property that allows you to set the origin near the hatch object, without moving the geometry.


See HPORIGIN and HPORIGINMODE

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 7 of 10

GrantsPirate
Mentor
Mentor

OP, the two settings posted by RK McSwain will work if you set them prior to using hatch.  If the hatch already exists then edit the hatch by selecting it and use the set origin function in the ribbon contextual tabs or HATCHEDIT and adjust the origin in the dialog box that appears.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 8 of 10

Kent1Cooper
Consultant
Consultant

@GrantsPirate wrote:

Since you mentioned they don't look normal it can also be because the drawing is too far from 0,0,0 origin.  Check to see if that is the case, only solution to that one is to move everything closer to 0,0,0.


 

If "don't look normal" means there are elements showing but their geometric relationships are off, and if the pattern involves line sets at other-than-orthogonal angles with pen-down-pen-up patterns, being far from the origin can be the cause, because of decimal values that must be rounded and can't precisely represent the distances involved -- the tiny bit that they're off near the origin gets multiplied by distance.

 

But designating an origin for an individual Hatch object  that is within it or nearby should also solve it, if there's reason not to Move everything.

HatchOrigin.png

Kent Cooper, AIA
0 Likes
Message 9 of 10

s.borello
Advisor
Advisor

You probably need to adjust your hatch pattern scale... se attached. 

0 Likes
Message 10 of 10

S.Faris
Advisor
Advisor

Try turning off Hardware Acceleration : How to enable or disable hardware acceleration in AutoCAD

SALMANUL FARIS

0 Likes