matt4 Posted April 23, 2009 Posted April 23, 2009 Hi, How can I find the area that's causing this problem when trying to hatch? Is there a quick way to check which two entites are not joined? Thanks Btw: The error I get is below.. Quote
Lee Mac Posted April 23, 2009 Posted April 23, 2009 Perhaps use this to Close all Polylines? [b][color=RED]([/color][/b][b][color=BLUE]defun[/color][/b] c:cls [b][color=RED]([/color][/b][b][color=BLUE]/[/color][/b] ss[b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]vl-load-com[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]if[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]setq[/color][/b] ss [b][color=RED]([/color][/b][b][color=BLUE]ssget[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]list[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]cons[/color][/b] [b][color=#009900]0[/color][/b] [b][color=#ff00ff]"*POLYLINE"[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]if[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]getvar[/color][/b] [b][color=#ff00ff]"CTAB"[/color][/b][b][color=RED])[/color][/b][b][color=RED]([/color][/b][b][color=BLUE]cons[/color][/b] [b][color=#009900]410[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]getvar[/color][/b] [b][color=#ff00ff]"CTAB"[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]cons[/color][/b] [b][color=#009900]67[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]-[/color][/b] [b][color=#009900]1[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]getvar[/color][/b] [b][color=#ff00ff]"TILEMODE"[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]mapcar[/color][/b] [b][color=DARKRED]'[/color][/b][b][color=RED]([/color][/b][b][color=BLUE]lambda[/color][/b] [b][color=RED]([/color][/b]x[b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]vla-put-Closed[/color][/b] x [b][color=Blue]:vlax-true[/color][color=RED])[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]mapcar[/color][/b] [b][color=DARKRED]'[/color][/b][b][color=BLUE]vlax-ename->vla-object[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]vl-remove-if[/color][/b] [b][color=DARKRED]'[/color][/b][b][color=BLUE]listp[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]mapcar[/color][/b] [b][color=DARKRED]'[/color][/b][b][color=BLUE]cadr[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]ssnamex[/color][/b] ss[b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]princ[/color][/b] [b][color=#ff00ff]"\n<!> Nothing Selected <!>"[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b] [b][color=RED]([/color][/b][b][color=BLUE]princ[/color][/b][b][color=RED])[/color][/b][b][color=RED])[/color][/b] Quote
AlinOz Posted April 24, 2009 Posted April 24, 2009 I know this doesn't help you, but 2010 has a function which shows you where it is open by showing a red circle around the opening/s. If you are trying to hatch inside a polyline, if you doubleclick the Polyline you will automatically be thrown into the PEDIT command. If the first option offered is Close, then the Pline is open... Choose to close it. That should solve it if that's the case. Can you see all of the objects that would form the boundary in your current view? AutoCAD appears to only want to work with visible objects and tends to ignore those beyond the 'screen'. If it isn't a Polyline and you can see all of the Objects, I'd recommend that you play with the HPGAPTOL variable as it suggests. Depending on how big the gap is, it can deal with it by adjusting that Variable... Hope that's a starting point for you... Quote
GCarr78 Posted April 24, 2009 Posted April 24, 2009 Hi, How can I find the area that's causing this problem when trying to hatch? Is there a quick way to check which two entites are not joined? Thanks Btw: The error I get is below.. I find it easier when I'm drawing the any polyline I intend to close, when the last segmant comes up instead of snapping to the inital point of my polyline, I use the "Close" command... it automatically closes your polyline so that problem does not happen in the first place. Try clicking on your polyline, look at the properties flyout and it should tell you somewhere whether it is closed or not, you can toggle between those settings and AutoCAD should be able to close it automatically for you. Quote
SuperCAD Posted April 24, 2009 Posted April 24, 2009 What's really going to tick you off is when you KNOW darn well that your boundary is closed, and you get that same error message. Quote
Lee Mac Posted April 24, 2009 Posted April 24, 2009 What's really going to tick you off is when you KNOW darn well that your boundary is closed, and you get that same error message. So true... Quote
BIGAL Posted April 26, 2009 Posted April 26, 2009 Another problem is if its 3D points joined together then its not a planar answer hence no hatch. We often have to use flatten once we realise the problem. It would be nice if the error message gave you more clues. Will check the 2010 option. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.