Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hatch and Polyline

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
ynapeu
5061 Views, 8 Replies

Hatch and Polyline

ynapeu
Advocate
Advocate

Hello

 

i have a polyline and i can hatch them when i select the object.

If i select a point inside the polyline i get an error.

 

If i use extruse i get a selfintersecting error message.

 

How can i find the selfintersecting objects?

 

ANd why object select works and inside point not? 

0 Likes

Hatch and Polyline

Hello

 

i have a polyline and i can hatch them when i select the object.

If i select a point inside the polyline i get an error.

 

If i use extruse i get a selfintersecting error message.

 

How can i find the selfintersecting objects?

 

ANd why object select works and inside point not? 

8 REPLIES 8
Message 2 of 9
dbroad
in reply to: ynapeu

dbroad
Mentor
Mentor

The polyline has some errors.  Selecting it allows the hpgaptol to overlook the gaps and overlaps.

 

To fix it, explode the polyline.  Then use overkill.  Then use pedit to rebuild the polyline segment by segment by using the join option. Where the polyline will not join, you have gaps or overlaps.  Fix them one by one to complete the correct polyline.  When rebuilding this polyline, try to avoid using the window or crossing selections as you may overlook some gaps.  If the result still does not extrude, convert to a region first.  Hatch may operate on the complete, closed polyline but the extrude may still have problems with it.  It would be nice if AutoCAD had some self correcting features available.

Architect, Registered NC, VA, SC, & GA.

The polyline has some errors.  Selecting it allows the hpgaptol to overlook the gaps and overlaps.

 

To fix it, explode the polyline.  Then use overkill.  Then use pedit to rebuild the polyline segment by segment by using the join option. Where the polyline will not join, you have gaps or overlaps.  Fix them one by one to complete the correct polyline.  When rebuilding this polyline, try to avoid using the window or crossing selections as you may overlook some gaps.  If the result still does not extrude, convert to a region first.  Hatch may operate on the complete, closed polyline but the extrude may still have problems with it.  It would be nice if AutoCAD had some self correcting features available.

Architect, Registered NC, VA, SC, & GA.
Message 3 of 9
Anonymous
in reply to: ynapeu

Anonymous
Not applicable

Dear Mr. ynapeu

 

Please try the command "Region" and the execute the hatch command with pick point option.

 

Hope this could help you

 

Regards

 

Di****h.MC

0 Likes

Dear Mr. ynapeu

 

Please try the command "Region" and the execute the hatch command with pick point option.

 

Hope this could help you

 

Regards

 

Di****h.MC

Message 4 of 9
ynapeu
in reply to: Anonymous

ynapeu
Advocate
Advocate

Hello

i have create a region, AutoCAD will do this.

If i create the hatch with select object, it works fine.

If i create the hatch with internal Point, i get an error

and get a crazy Picture on Screen.

see Picture.

0 Likes

Hello

i have create a region, AutoCAD will do this.

If i create the hatch with select object, it works fine.

If i create the hatch with internal Point, i get an error

and get a crazy Picture on Screen.

see Picture.

Message 5 of 9
ynapeu
in reply to: dbroad

ynapeu
Advocate
Advocate

Hi thanks.

 

Explode the Polyline, make Overkill and add each Segment with pedit.

as result i get a polyline but i can't hatch them.

 

0 Likes

Hi thanks.

 

Explode the Polyline, make Overkill and add each Segment with pedit.

as result i get a polyline but i can't hatch them.

 

Message 6 of 9
Michiel.Valcke
in reply to: ynapeu

Michiel.Valcke
Advisor
Advisor

What is the exact error message that Autocad gives you when you try this.

From the top of my head there are a few things I can think off that might or might not be the cause of this behaviour.

- Is you Polyline closed?
- Is the elevation set to 0?

- Is the shape of your polyline very complicated (with a lot of vertexes) or does it consist of basic shapes?

...

0 Likes

What is the exact error message that Autocad gives you when you try this.

From the top of my head there are a few things I can think off that might or might not be the cause of this behaviour.

- Is you Polyline closed?
- Is the elevation set to 0?

- Is the shape of your polyline very complicated (with a lot of vertexes) or does it consist of basic shapes?

...

Message 7 of 9
dbroad
in reply to: ynapeu

dbroad
Mentor
Mentor

After explode and overkill, rebuild the polyline segment by segment using pedit's join option.  You might be able to window select or crossing select but do not use the close option.  Afterwards, you should see that you do not have a single polyline.  You might have 2 or 3 polylines.  At the end of each polyline endpoint zoom in very very closely to the endpoint of the polyline.  Microscopically, you can see either gaps or overlaps.  Grip select the endpoint of the segment to change and stretch it to coincide with the endpoint you want to keep.  Repeat the process of joining via pedit until you have a correctly constructed, closed polyline.  Then it will be hatchable.  If you draw it correctly, via this process, you will be able to pick the point in the center and it will hatch.

Architect, Registered NC, VA, SC, & GA.
0 Likes

After explode and overkill, rebuild the polyline segment by segment using pedit's join option.  You might be able to window select or crossing select but do not use the close option.  Afterwards, you should see that you do not have a single polyline.  You might have 2 or 3 polylines.  At the end of each polyline endpoint zoom in very very closely to the endpoint of the polyline.  Microscopically, you can see either gaps or overlaps.  Grip select the endpoint of the segment to change and stretch it to coincide with the endpoint you want to keep.  Repeat the process of joining via pedit until you have a correctly constructed, closed polyline.  Then it will be hatchable.  If you draw it correctly, via this process, you will be able to pick the point in the center and it will hatch.

Architect, Registered NC, VA, SC, & GA.
Message 8 of 9
ynapeu
in reply to: dbroad

ynapeu
Advocate
Advocate

Hello

you are right in a lot off Points.

i have explode the polyline, i have used overkill.

Than i use pedit, i only get 2 Polylines.

Now i modified the endpoint.

create a new polyline all objects are added.

if i will hatch i get the same error.

 

i have written some objectarx code.

but there are some Problems.

if i use the internal

getLineSegAt and getArcSegAt

then i compared start and endpoints.a get small gaps.(see file polylinedata_original.txt)

if i use explode and compared the data every distance ist 0.(see file polylinedata_explode.txt)

 

i also added the new drawing.

you can explode them and use pedit the will add objects.

 

 

 

0 Likes

Hello

you are right in a lot off Points.

i have explode the polyline, i have used overkill.

Than i use pedit, i only get 2 Polylines.

Now i modified the endpoint.

create a new polyline all objects are added.

if i will hatch i get the same error.

 

i have written some objectarx code.

but there are some Problems.

if i use the internal

getLineSegAt and getArcSegAt

then i compared start and endpoints.a get small gaps.(see file polylinedata_original.txt)

if i use explode and compared the data every distance ist 0.(see file polylinedata_explode.txt)

 

i also added the new drawing.

you can explode them and use pedit the will add objects.

 

 

 

Message 9 of 9
dbroad
in reply to: ynapeu

dbroad
Mentor
Mentor
Accepted solution

Whenever lines and arcs are connected, they should be connected will the fillet command to ensure tangency.  Many of your arcs have odd or inaccurate radii.  If lines and arcs are joined without fixing the underlying overlap problem, you get confusion by hatch, boundary and extrude.  I recommend that you change your visual style to 2d, flatten, explode, and overkill.  Make sure you are in the top view.  Increase your viewres and units accuracy.  Then replace all of the arcs with correctly filleted geometry.  The alternative, which may or may not work is to delete all the lines and using the osnap end option redraw all of the lines connecting arcs.  Unfortunately, there are still arc to reverse arc pairs that may overlap or be non-tangential.

 

See screencast.  Bottom line:  Draft accurately and AutoCAD will work properly. Draft poorly and everything will be difficult.

 

Architect, Registered NC, VA, SC, & GA.
0 Likes

Whenever lines and arcs are connected, they should be connected will the fillet command to ensure tangency.  Many of your arcs have odd or inaccurate radii.  If lines and arcs are joined without fixing the underlying overlap problem, you get confusion by hatch, boundary and extrude.  I recommend that you change your visual style to 2d, flatten, explode, and overkill.  Make sure you are in the top view.  Increase your viewres and units accuracy.  Then replace all of the arcs with correctly filleted geometry.  The alternative, which may or may not work is to delete all the lines and using the osnap end option redraw all of the lines connecting arcs.  Unfortunately, there are still arc to reverse arc pairs that may overlap or be non-tangential.

 

See screencast.  Bottom line:  Draft accurately and AutoCAD will work properly. Draft poorly and everything will be difficult.

 

Architect, Registered NC, VA, SC, & GA.

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report