Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hatch - Island detect doesn't work correctly when used with object select.

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
4846 Views, 5 Replies

Hatch - Island detect doesn't work correctly when used with object select.

Anonymous
Not applicable

Hi,

 

I am trying to write a script that will automatically hatch several drawings. The drawings contain an area in which there are several objects that need to be hatched. For each drawing the objects vary in location within the one area.

 

I figured I would set up my script to encompass the area with the object select hatch technique. This works fine if the objects in the area have no Islands. However when an object within the "object select hatch area" contains Islands it shades the whole object ignoring the Island or if it does recognize an island it will create an individual hatch for it. 

 

However when I use the pick internal point method the hatch comes out as expected for the object with the Islands in it.

 

Very stumped any help would be appreciated! 

0 Likes

Hatch - Island detect doesn't work correctly when used with object select.

Hi,

 

I am trying to write a script that will automatically hatch several drawings. The drawings contain an area in which there are several objects that need to be hatched. For each drawing the objects vary in location within the one area.

 

I figured I would set up my script to encompass the area with the object select hatch technique. This works fine if the objects in the area have no Islands. However when an object within the "object select hatch area" contains Islands it shades the whole object ignoring the Island or if it does recognize an island it will create an individual hatch for it. 

 

However when I use the pick internal point method the hatch comes out as expected for the object with the Islands in it.

 

Very stumped any help would be appreciated! 

5 REPLIES 5
Message 2 of 6
pendean
in reply to: Anonymous

pendean
Community Legend
Community Legend
Post the content of your script file, let's have a look.
0 Likes

Post the content of your script file, let's have a look.
Message 3 of 6
Anonymous
in reply to: Anonymous

Anonymous
Not applicable

Here is the script I was trying to work with;

 

-Layer COlor 1 DIPS1
COlor 110 Dips110
COlor 120 Dips120
Color 140 Dips140
Color 150 Dips150
COlor 2 DIPS2
COlor 3 DIPS3
COlor 4 DIPS4
COlor 40 Dips40
COlor 5 DIPS5
COlor 6 DIPS6
COlor 60 Dips60
COlor 7 DIPS7
COlor 70 Dips70
SET DIPS5

"Please extend all contours to blue outer circle & Make a Few breaks in outer blue Circle outside of contours"
_circle 3.43,4.34 3.6
Zoom E
-Layer OFF "*" y
ON DIPS1
SET DIPS1
ON DIPS5

_-boundary A B E I Y O P

5.3,6.9

#
-Layer OFF DIPS5

Erase 6.0,7.7 0,7.3

-Hatch P S A H Y I Y

S 7,8 0,0


#
-Layer OFF "*" y
ON DIPS1
SET DIPS1
ON DIPS5

-BO A B E I Y O P
5.3,6.9

-Layer OFF DIPS5

Erase 6.0,7.7 0,7.3

-Hatch P S A H Y I Y

S 7,8 0,0


#
-Layer OFF "*" y
ON Dips110
SET Dips110
ON DIPS5

-BO A B E I Y O P
5.3,6.9

-Layer OFF DIPS5

Erase 6.0,7.7 0,7.3

-Hatch P S A H Y I Y

S 7,8 0,0

 

"END OF SCRIPT!"

-----------------------

 

Since then I have created a work around where I basically create 2 fake outer boundaries, hatche the outer area with Island detect wich hatches the areas I want, and use the trim option to slim the hatch down since it wont create separate hatch objects for some reason. Works most of the time.

 

0 Likes

Here is the script I was trying to work with;

 

-Layer COlor 1 DIPS1
COlor 110 Dips110
COlor 120 Dips120
Color 140 Dips140
Color 150 Dips150
COlor 2 DIPS2
COlor 3 DIPS3
COlor 4 DIPS4
COlor 40 Dips40
COlor 5 DIPS5
COlor 6 DIPS6
COlor 60 Dips60
COlor 7 DIPS7
COlor 70 Dips70
SET DIPS5

"Please extend all contours to blue outer circle & Make a Few breaks in outer blue Circle outside of contours"
_circle 3.43,4.34 3.6
Zoom E
-Layer OFF "*" y
ON DIPS1
SET DIPS1
ON DIPS5

_-boundary A B E I Y O P

5.3,6.9

#
-Layer OFF DIPS5

Erase 6.0,7.7 0,7.3

-Hatch P S A H Y I Y

S 7,8 0,0


#
-Layer OFF "*" y
ON DIPS1
SET DIPS1
ON DIPS5

-BO A B E I Y O P
5.3,6.9

-Layer OFF DIPS5

Erase 6.0,7.7 0,7.3

-Hatch P S A H Y I Y

S 7,8 0,0


#
-Layer OFF "*" y
ON Dips110
SET Dips110
ON DIPS5

-BO A B E I Y O P
5.3,6.9

-Layer OFF DIPS5

Erase 6.0,7.7 0,7.3

-Hatch P S A H Y I Y

S 7,8 0,0

 

"END OF SCRIPT!"

-----------------------

 

Since then I have created a work around where I basically create 2 fake outer boundaries, hatche the outer area with Island detect wich hatches the areas I want, and use the trim option to slim the hatch down since it wont create separate hatch objects for some reason. Works most of the time.

 

Message 4 of 6
Charles_Shade
in reply to: Anonymous

Charles_Shade
Mentor
Mentor

HPSEPARATE need to be 1 in the drawing perhaps?

 

Please mark any response as "Accept as Solution" if it answers your question.
_____________________________________________________________

0 Likes

HPSEPARATE need to be 1 in the drawing perhaps?

 

Please mark any response as "Accept as Solution" if it answers your question.
_____________________________________________________________

Message 5 of 6
pendean
in reply to: Anonymous

pendean
Community Legend
Community Legend

-HATCH command > Advanced > Island Detection, you don't seem to address it in your script: would that cure the problem?

0 Likes

-HATCH command > Advanced > Island Detection, you don't seem to address it in your script: would that cure the problem?

Message 6 of 6
Anonymous
in reply to: pendean

Anonymous
Not applicable

Actually in the script the hatch command options are as fallows;

 

-Hatch P S A H Y I Y

 

Properties > Solid

Advanced > separate Hatches > Yes

                  > Island detection > Yes

 

Thank you both for your ideas but unfortunately that isn't the problem. I believe it is a bug in the hatch software. A better solution is maybe to drop down my number of lines that create the Island boundaries but I'm not sure if that will even work.

 

I have also attached the dxf file I start with and the final drawing file I'm after to give you a better idea. I basically need to fill the dxf file contours Automatically then insert it into a drawing. I have no control over how the dxf comes out by the way. I wish they had closed or at least intersected their lines.

0 Likes

Actually in the script the hatch command options are as fallows;

 

-Hatch P S A H Y I Y

 

Properties > Solid

Advanced > separate Hatches > Yes

                  > Island detection > Yes

 

Thank you both for your ideas but unfortunately that isn't the problem. I believe it is a bug in the hatch software. A better solution is maybe to drop down my number of lines that create the Island boundaries but I'm not sure if that will even work.

 

I have also attached the dxf file I start with and the final drawing file I'm after to give you a better idea. I basically need to fill the dxf file contours Automatically then insert it into a drawing. I have no control over how the dxf comes out by the way. I wish they had closed or at least intersected their lines.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report