Hickoz_bro Posted May 19, 2011 Share Posted May 19, 2011 Hi all, Does anyone know if it's possible to hatch adjacent regions as several smaller hatches (see image for example). BUT... It needs to be done in such a way that it can be replicated by code. I've played with island detecion, and there's no luck there. Separate hatches is on and that works, but unless I manually select each region separately, I can't figure out a way to do it in a single operation. The end result will be a macro that can complete the task. Quote Link to comment Share on other sites More sharing options...
Ahankhah Posted May 21, 2011 Share Posted May 21, 2011 I can't see any attachment. Is it my problem? Again FILTERING in my country? Quote Link to comment Share on other sites More sharing options...
Dana W Posted May 21, 2011 Share Posted May 21, 2011 I can't see any attachment. Is it my problem? Again FILTERING in my country? Filtering? I am glad you can have a sense of humor over there. I suppose, if you saw a three dimensional cube in wire frame, your government might get upset. More likely your browser just didn't load the picture. As far as the OP's question about separate hatches go, the code would have to loop through a series of hatch commands to get them in there, just like you hand and brain would have to. Quote Link to comment Share on other sites More sharing options...
Ahankhah Posted May 21, 2011 Share Posted May 21, 2011 Filtering? I am glad you can have a sense of humor over there. I suppose, if you saw a three dimensional cube in wire frame, your government might get upset. More likely your browser just didn't load the picture. As far as the OP's question about separate hatches go, the code would have to loop through a series of hatch commands to get them in there, just like you hand and brain would have to. I am right. Photobucket is filtered!!! Using UltraSurf, I can see it now. Quote Link to comment Share on other sites More sharing options...
Ahankhah Posted May 21, 2011 Share Posted May 21, 2011 You can write a macro-like Autolisp code to: 1- Change the UCS to the one of each face. 2- Issue Hatch command, then select that face as boundary, by clicking inside it (specifying a point inside the face). 3- Repeat steps 1 and 2, 6 times for a 3d solid. But as I understand from the picture, there is no 3d solid there. Quote Link to comment Share on other sites More sharing options...
Dana W Posted May 21, 2011 Share Posted May 21, 2011 But as I understand from the picture, there is no 3d solid there. No, it's a 2D figure. The OP just wants to be able to automate hatching several areas, and each hatch being separate. Quote Link to comment Share on other sites More sharing options...
Hickoz_bro Posted May 22, 2011 Author Share Posted May 22, 2011 Yep... Correct... To add to the trouble, each line segment in the original image is a single line segment, not part of a closed polyline loop. I suspect if it was 6 closed polylines, it might work... Unfortunately, I don't have AutoCAD on this machine to test it... P.S. Dana... I Love the Sig quote... I'm gonna use that... Quote Link to comment Share on other sites More sharing options...
Dana W Posted May 22, 2011 Share Posted May 22, 2011 Yep... Correct... To add to the trouble, each line segment in the original image is a single line segment, not part of a closed polyline loop. I suspect if it was 6 closed polylines, it might work... Unfortunately, I don't have AutoCAD on this machine to test it... P.S. Dana... I Love the Sig quote... I'm gonna use that... Google Yogi Berra quotes. You'll laugh beer outa your nose. Micky Mantle "Hey, Yogi. What time is it?" Yogi Berra "What? You mean now?" Quote Link to comment Share on other sites More sharing options...
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.