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

Hatch as hidden lines?

12 REPLIES 12
SOLVED
Reply
Message 1 of 13
jerome
8611 Views, 12 Replies

Hatch as hidden lines?

Another hatch question please...

 

I need to hatch an object that is hidden but it seems I can only use solid lines for hatches - is this correct? (eg. hatch pattern ANS131)

12 REPLIES 12
Message 2 of 13
john.vellek
in reply to: jerome

Hi @jerome,

 

I see that you are visiting as a new member to the AutoCAD forum. Welcome to the Autodesk Community!

 

You can certainly hatch boundaries that are not continuous lines.  What version of AutoCAD are you using? When I do a hatch it works fine but it might be that I have LTGAPSELECTION turned on (available from 2017) although it seems to work fine in 2016 too.

 

Capture.PNG

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 3 of 13
Kent1Cooper
in reply to: jerome

Try:

 

A)  The DASH pattern.

 

B)  Assigning the Hidden [or whatever] linetype to an ANSI31 [or other] Hatch Pattern in the Properties palette or with CHPROP.

 

C)  Hatching with ANSI31 [or other] on a Layer that has a Hidden [or whatever] linetype assigned.

 

The advantage of A), if that patterns looks right to you, is that with B) or C), you get irregularities in alignment of the dashes with irregular boundary shapes:

HiddenHatch.PNG

 

A pattern similar to DASH with different ratio between dash and gap sizes, and/or with the dashes aligned in both directions rather than staggered halfway from one line to the next, could easily be defined.

Kent Cooper, AIA
Message 4 of 13
jerome
in reply to: john.vellek

Thanks for your reply, John, and for your welcome.  I didn't explain myself well I think - I understand that a dashed boundary won't cause issues but I was hoping there was some way that the hatch pattern itself could be changed to a dashed line

Message 5 of 13
jerome
in reply to: Kent1Cooper

Thanks, Kent.

 

having [ANS131] on a hidden layer doesn't seem to work

 hidden hatch.jpg

  (sorry for the huge .jpg)

 

I didn't think to use 'dash' at 45deg and this will work well for my purposes so, thanks again for another solution.

Message 6 of 13
Kent1Cooper
in reply to: jerome


@Anonymous wrote:

.... 

having [ANS131] on a hidden layer doesn't seem to work

....


That may be a version-dependent difference.

Kent Cooper, AIA
Message 7 of 13
john.vellek
in reply to: jerome

Hi @jerome,

 

I can confirm your findings with ANSI131 in core AutoCAD.  @Kent1Cooper, which flavor of AutoCAD did you test in? I am curious why the hatch render is different in that vertical. 

 

I like the suggestion of using a dash pattern which achieves the desired results.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 8 of 13
jerome
in reply to: john.vellek

if it helps (either of you) I'm using full AutoCAD 2017

Message 9 of 13
Kent1Cooper
in reply to: john.vellek


@john.vellek wrote:

....  @Kent1Cooper, which flavor of AutoCAD did you test in? I am curious why the hatch render is different in that vertical.  ....


No vertical -- vanilla AutoCAD 2016.  EDIT:  But since I'm currently at a different location also with vanilla Acad2016, I tried it again, and it didn't  work.  I don't know what could be different about the setups that would explain that.  Could the difference between Windows 7 [in which it worked] and Windows 10 [didn't] possibly be the reason?

Kent Cooper, AIA
Message 10 of 13
jerome
in reply to: Kent1Cooper

I couldn't get this to work on my laptop, running windows 7 & ACAD2016

Message 11 of 13
Kent1Cooper
in reply to: Kent1Cooper


@Kent1Cooper wrote:
....  I don't know what could be different about the setups that would explain that.  ....

FOUND IT!  There's a System Variable, called [obviously enough] HPLINETYPE, which if set to 1 or ON, will use non-continuous linetypes in Hatch Patterns.  That's described as "legacy behavior" in Help, so I assume it just works that way all the time in older versions, but I don't know in which version the option was introduced.

 

In a Hatch Pattern that is not  of continuous lines, the linetype appears to be applied onto each pen-down segment within the Hatch, separately, provided the scale of the Hatch relates to the linetype scale in such a way as to allow that.

 

Also, it works even with text- or shape-embedded non-continuous linetypes, not just those made of dashes/dots/gaps.

Kent Cooper, AIA
Message 12 of 13
jerome
in reply to: Kent1Cooper

Excellent! Thanks very much Kent!

Message 13 of 13
Anonymous
in reply to: Kent1Cooper

Thank you very much of ur solution. I had been searching for it quite some time. 😊👍

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