Set hatch to ignore certain (anything)???

Set hatch to ignore certain (anything)???

peterjwinberg
Advocate Advocate
6,899 Views
10 Replies
Message 1 of 11

Set hatch to ignore certain (anything)???

peterjwinberg
Advocate
Advocate

Wondering if hatch can be set to ignore predetermined properties or objects, like a certain layer (Defpoints for example) or certain colors, linetypes, etc., or even an xref.

 

When drawing 2D elevations of a house I like to have my section/structural linework in the background, so when I hatch an area I need to temporarily move, turn off or freeze the background content. Honestly not that big of a problem, but if there's a way to setup hatch to ignore a layer then it would save me a little time.

 

Thanks!

0 Likes
Accepted solutions (1)
6,900 Views
10 Replies
Replies (10)
Message 2 of 11

imadHabash
Mentor
Mentor

Hi,

 

if i understand you right, you can specify a default layer for new hatches and fills by HPLAYER  system variable.

Imad Habash

EESignature

0 Likes
Message 3 of 11

peterjwinberg
Advocate
Advocate
I believe HPLAYER controls which layer the hatch ends up being on. That is not what I asked about.

I want the hatch field/boundary to ignore objects based on a predetermination.

For example, let's say you have a roof truss profile that shows all the chords running this way and that. You want to draw a new exterior elevation based on this profile. You put the profile on Defpoints so it won't print, and draw your elevation around the profile. You want to keep the profile "in the background" for future reference. You run hatch so you can fill the elevation with siding. You need to select all the areas within the truss profile components (dozens?). I want hatch to be programmed to ignore Defpoints layer so I can pick one field.

Moving, turning off, or freezing Defpoints (in this example) would also work, and that's fine. But I would save lots of time in the long run if I could setup hatch to ignore certain things. Just an idea!
0 Likes
Message 4 of 11

WarrenGeissler
Advisor
Advisor

In the hatch command you can type "DE" to go into boundary object selection mode. There might be a command syntax or programmatic way to perform a non-inclusive selection.

 

Hatch selection.png


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

0 Likes
Message 5 of 11

Kent1Cooper
Consultant
Consultant
Accepted solution

If selecting boundary objects, rather than picking inside areas, is workable as @WarrenGeissler suggests, you don't have to type anything to get into that mode -- just go for this:

HatchSelectObjects.png

 

But I don't know of a way to have it ignore things in picking-in-areas mode, except for one cockamamie work-around.  I think it's bad practice to use the Defpoints Layer for things that are not Dimension Definition Points [that's what it's for] but that you simply don't want to plot -- make yourself a non-plotting Layer named for whatever the purpose is.  But if you're going to use Defpoints in that way even if it's a bad idea, then if you turn off or freeze Layer 0, things on Defpoints will still be visible, but they cannot be selected, nor Osnapped to [quirks that I've known about for years], and also, Hatch pick-in-areas mode ignores them  [which I didn't know, but found to be the case in experimenting].

 

EDIT:  No, wait!  In limited circumstances you can do it.  Set the cumbersomely-named HPISLANDDETECTIONMODE System Variable to 0, and when you pick in an area, it will find the outermost perimeter bounding it, and ignore any other stuff inside that area.  For instance, pick within the width of an outer chord member in your roof truss profile, and all the web-member internal stuff will be ignored.  This used to be easier, by a setting in the Hatch dialog box, but that seems to have disappeared.  But in the command-line -HATCH command, there's an Island detection option.  And in the ribbon-based Hatch command, if you pull down the Options thingie, Island detection is in there [use the "No" or "Ignore" item below -- I'm not sure what the difference is]:

HatchIslands.png

 

EDIT:EEEEEEEE

Kent Cooper, AIA
Message 6 of 11

peterjwinberg
Advocate
Advocate

Well, that is the result I'm looking for, thanks Kent!

 

Selecting a boundary object would work in some cases, but most often there's a window or some other feature (in the case of exterior elevations) that would have to be trimmed out, so I wouldn't accept this as any easier than what I'm already doing.

 

I should take your suggestion in creating a no-plot layer, but you know what they say about old habits 🙂 Ha.

 

Obviously AutoCAD already has the ability to do what I want (even if it's by accident), so I wonder how much of a jump it is to add this sort of feature to the hatch settings.

 

Thanks guys!

0 Likes
Message 7 of 11

Kent1Cooper
Consultant
Consultant

[I suspect Post 6 went up while I was doing the "No, wait!" Edit of Post 5, which may suit you even better.]

Kent Cooper, AIA
0 Likes
Message 8 of 11

peterjwinberg
Advocate
Advocate

Thanks again!

0 Likes
Message 9 of 11

nrz13
Advisor
Advisor

Here's the method I use, which is not what you're asking for but may still achieve your desired outcome (it usually works well for me):

1) Select the layer(s) you want to hatch (Elevation layer, for instance)
2) Select or enter the LAYISO command to isolate just that layer or layers (Structural, Xref, etc. layers are then turned off temporarily)
3) Place your hatch in the desired elevation area
4) Select or enter the LAYUNISO command to restore the layers you just isolated

Note that you can select multiple layers to retain, so if you had Elevation and Windows, let's say, and you wanted to hatch around the windows within the wall areas, then you could select both of those layers before initiating the LAYISO command.

If you do this a lot like I do, make a custom alias (keyboard shortcut) for both LAYISO and LAYUNISO so you can fire it off quickly while you draft.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
Message 10 of 11

peterjwinberg
Advocate
Advocate

Very useful info, thank you!

0 Likes
Message 11 of 11

DSJcabinets
Observer
Observer

You can just use leaders as a guidelines not a multileader just type in leader / and you can put it on depoints layer if you want to so it won't print the hatch will ignore it but you can snap to it 

0 Likes