Jump to content

Hatching adjacent regions as separate hatches?


Hickoz_bro

Recommended Posts

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.

 

20-05-20119-29-19AM.png

Link to comment
Share on other sites

I can't see any attachment. Is it my problem? Again FILTERING in my country?

 

:lol: 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.:lol:

 

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.

Link to comment
Share on other sites

:lol: 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.:lol:

 

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.:lol: Micky Mantle "Hey, Yogi. What time is it?" Yogi Berra "What? You mean now?"

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...