having problems applying hatch to an area
having problems applying hatch to an area
I am trying to apply a hatch to the region in the .SLDDRW shown below but am getting the error shown.
What am I doing wrong?
Thanks.
What am I doing wrong?
Thanks.
- Attachments
-
- hatch_test.SLDPRT
- (29.38 KiB) Downloaded 228 times
-
- hatch_test.SLDDRW
- (47.57 KiB) Downloaded 255 times
Adding hatching in Drawings has been flaky for the entire 14 years I've been using SW.
Go to full postSW 2024 SP 5.0
Windows 11
Windows 11
Re: having problems applying hatch to an area
I have not downloaded the files as I still use SW2019.
I think it may not like the longer vertical line extending beyond the horizontal lines for boundary selection.
Have you tried selecting region as below and clicking inside the region?
I think it may not like the longer vertical line extending beyond the horizontal lines for boundary selection.
Have you tried selecting region as below and clicking inside the region?
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: having problems applying hatch to an area
Don't select the lines. Click inside the square rather.
Re: having problems applying hatch to an area
When I do that, nothing happens. Set to "Region".AlexLachance wrote: ↑Thu Aug 10, 2023 7:53 am Don't select the lines. Click inside the square rather.
image.png
SW 2024 SP 5.0
Windows 11
Windows 11
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: having problems applying hatch to an area
From your screenshot in the first post, it seems there is a viewport where your jointed lines are and the long line may be outside of the viewport. Select all, cut it, double click on view port, paste it and retry, see if it works.
- DanPihlaja
- Posts: 862
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 815
- x 993
Re: having problems applying hatch to an area
The line on the left is part of the view (hence the border) The rest of the lines are NOT in that view.
Activate the view, then redraw your lines and it should work.
Activate the view, then redraw your lines and it should work.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
Re: having problems applying hatch to an area
I redrew the sketch, making sure that all 4 lines are inside the view. Files attached. I still can't get "region" (or "boundary) to work.
- Attachments
-
- hatch_test_01.SLDPRT
- (29.38 KiB) Downloaded 292 times
-
- hatch_test_01.SLDDRW
- (45.36 KiB) Downloaded 203 times
SW 2024 SP 5.0
Windows 11
Windows 11
Re: having problems applying hatch to an area
Alex, what program did you use to create that .gif?AlexLachance wrote: ↑Thu Aug 10, 2023 8:26 am That's odd, it works for me in SolidWorks 2019.
This is a GIF. Click on it to see it
hatch.gif
Thanks.
SW 2024 SP 5.0
Windows 11
Windows 11
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
- DanPihlaja
- Posts: 862
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 815
- x 993
Re: having problems applying hatch to an area
OK, I was wrong. I see now that this is a sketch from the part level. Looking at it now.DanPihlaja wrote: ↑Thu Aug 10, 2023 9:06 am The line on the left is part of the view (hence the border) The rest of the lines are NOT in that view.
Activate the view, then redraw your lines and it should work.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
- DanPihlaja
- Posts: 862
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 815
- x 993
Re: having problems applying hatch to an area
OK, i see what you did now.
You used sketch entities at the part level and then used "Convert entities" at the drawing level to create those lines.
This is weird.
I can draw a rectangle (at the drawing level), and hatch it just fine. But your lines, I can't do anything with.
If I delete and redrawing your lines (using "convert entities" to to pull from your part sketch, then trim the right hand line back to be limited by your to horizontal lines, then I can get it to work. But I cannot get it to work with your original lines.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
Re: having problems applying hatch to an area
Ah, this seems like a bug (or an oversight).DanPihlaja wrote: ↑Thu Aug 10, 2023 9:58 am OK, i see what you did now.
You used sketch entities at the part level and then used "Convert entities" at the drawing level to create those lines.
This is weird.
I can draw a rectangle (at the drawing level), and hatch it just fine. But your lines, I can't do anything with.
If I delete and redrawing your lines (using "convert entities" to to pull from your part sketch, then trim the right hand line back to be limited by your to horizontal lines, then I can get it to work. But I cannot get it to work with your original lines.
image.png
How do I resize the viewport box?
Thanks.
SW 2024 SP 5.0
Windows 11
Windows 11
- DanPihlaja
- Posts: 862
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 815
- x 993
Re: having problems applying hatch to an area
I hit CTRL Q to run a rebuild and it auto resized.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
- DanPihlaja
- Posts: 862
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 815
- x 993
Re: having problems applying hatch to an area
OK, as far as I know, hatch needs to use the entire line. So your line on the right needs to be ONLY the length between the 2 horizontal lines.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
- jcapriotti
- Posts: 1897
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1236
- x 2029
Re: having problems applying hatch to an area
Double click the view to activate it, then try the region option,
Jason
Re: having problems applying hatch to an area
Mine does not for some reason.
SW 2024 SP 5.0
Windows 11
Windows 11
Re: having problems applying hatch to an area
Still does not work.jcapriotti wrote: ↑Thu Aug 10, 2023 1:07 pm Double click the view to activate it, then try the region option,
But, I did just learn that views can be activated via double-clicking!
SW 2024 SP 5.0
Windows 11
Windows 11
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: having problems applying hatch to an area
Thanks for the heads-up.AlexLachance wrote: ↑Thu Aug 10, 2023 1:35 pm Careful though, you can draw/add annotations thinking you're attaching them to another view and they actually get added to the view you double clicked on.
I've done that more than once (as in hundreds of times), even before knowing how to lock the view selection.
SW 2024 SP 5.0
Windows 11
Windows 11
- jcapriotti
- Posts: 1897
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1236
- x 2029
Re: having problems applying hatch to an area
Odd behavior, if I convert entities like you did in that file you attached, it doesn't hatch by region. Deleting all of the "on edge" relations allows it to work.
Jason
Re: having problems applying hatch to an area
Yes, I'm now able to get it to work by deleting the on-edge relations. This must be a bug. Does someone want to report it?jcapriotti wrote: ↑Thu Aug 10, 2023 1:50 pm Odd behavior, if I convert entities like you did in that file you attached, it doesn't hatch by region. Deleting all of the "on edge" relations allows it to work.
SW 2024 SP 5.0
Windows 11
Windows 11
Re: having problems applying hatch to an area
Definitely some sort of quirk. If you drag the end points of the two horizontal lines to move them off the vertical line:
You can then hatch the region:
and drag the endpoints back:
Or, hatch it in the model and avoid the convert entities mess altogether:
You can then hatch the region:
and drag the endpoints back:
Or, hatch it in the model and avoid the convert entities mess altogether:
- jcapriotti
- Posts: 1897
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1236
- x 2029
Re: having problems applying hatch to an area
Makes me think there is some tolerance issue with convert entities....like the ends aren't touching to create a closed region. Removing the "on edge" maybe recalculates the position more accurately....I don't know. Who knows what programming tricks are going on in the background to get around other issues we aren't aware of. Our own internal programs have some code that would leave people scratching their head at first glance.....until we explain why.
Jason
- Glenn Schroeder
- Posts: 1527
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1777
- x 2142
Re: having problems applying hatch to an area
Adding hatching in Drawings has been flaky for the entire 14 years I've been using SW.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."
Ray Wylie Hubbard in his song "Mother Blues"
Ray Wylie Hubbard in his song "Mother Blues"
Re: having problems applying hatch to an area
I discovered that if I break up "complex" regions, hatch works. Sort of. It still requires multiple clicks and some luck.
See attached example.
Try deleting the hatch and the break lines, then applying hatch to the entire region.
Note that hatch and break lines are on their own layers.
See attached example.
Try deleting the hatch and the break lines, then applying hatch to the entire region.
Note that hatch and break lines are on their own layers.
- Attachments
-
- hatch_test_02.SLDPRT
- (33.6 KiB) Downloaded 200 times
-
- hatch_test_02.SLDDRW
- (76.72 KiB) Downloaded 256 times
SW 2024 SP 5.0
Windows 11
Windows 11