Area for all Hatches & Polylines and divide it

Area for all Hatches & Polylines and divide it

Anonymous
Not applicable
498 Views
5 Replies
Message 1 of 6

Area for all Hatches & Polylines and divide it

Anonymous
Not applicable

Dears 

 

I have got by helping from mr @ВeekeeCZ  lisp to calculate area for polylines one time and divided all result by 9.1 or other no. (Lisp attached), this lisp working with polylines only (all polylines one select), I need it to work with Hatches also from same matter in same lisp if we can.

0 Likes
499 Views
5 Replies
Replies (5)
Message 2 of 6

john.uhden
Mentor
Mentor

Be careful.

I do a lot of area analyses.  Just in the last two years I found hatches to be handier because you can hatch around islands and the hatch area excludes the "holes."  And hatches are easy to select.  But I have run into a number of hatches that have no area.  I think it's when they touch themselves.  So, please be sure each one has an Area property before you blindly add them up and divide.

Perhaps @Z9E3zK5E (mr is a ms) could add a check and warn you if there is one or more of those in your selection set.

I need to remember to add that to my own ADDAREAS program.  Whole square feet is good enough for my analyses, so just grip-stretching the troublesome vertex a fraction doesn't change the area very much.

John F. Uhden

0 Likes
Message 3 of 6

Anonymous
Not applicable

Thank you, any time I use lisp I make check and check to be sure everything working properly, anyway thanks for your note. 

0 Likes
Message 4 of 6

ВeekeeCZ
Consultant
Consultant

Try this one. I did not add any no-area hatches... The best approach would be to pre-select hatches, check whether is Cumulated area calculated, run the routine, fill up the prompts, then type "p" to apply the previous selection.

 
0 Likes
Message 5 of 6

Anonymous
Not applicable

Grate 🌻 It's working, but ...

 

1-not all hatches one time, by any selection method.

2-for hatches with arcs and polylines give me result very far that will make confuse.

3- If you can make same lisp working for polyline and hatch in same time it will be great. 

 

Sample attached.

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

`Being a civil designer and the dwg is obviously a road is the hatch meant to be kerbs and concrete infill or is the narrower section a concrete kerb edge ? If its not a road just disregard.

0 Likes