Calculating areas of not closed Plines of different linetypes

Calculating areas of not closed Plines of different linetypes

alexandre_benekowski
Advocate Advocate
955 Views
7 Replies
Message 1 of 8

Calculating areas of not closed Plines of different linetypes

alexandre_benekowski
Advocate
Advocate

Hi people,

 

Is possible to calculator area os not closede plines of different linetypes by crossing window?

 

If it is possible, someone could help me to creat it?

 

See photo...

01.png

 

Thank you!!!!

0 Likes
956 Views
7 Replies
Replies (7)
Message 2 of 8

Kent1Cooper
Consultant
Consultant

[The linetype is irrelevant.]

 

You can get their areas with the LIST command, but that will give the area of each out to its ends, the same as if a closed triangle.  A routine could be made to get them and add them together for you, if that's what you're looking for.

 

If you mean the area enclosed between them, I think you would need to use a BOUNDARY command to make a Polyline of that shape, and get its area.

 

I can imagine away to get a routine to figure out what the enclosed area is just from selection of them, if  they lie in the same plane and never include arc segments, but even then, it could be complicated -- the intersections could be found, but determining the order to use them in an AREA command could be difficult.

Kent Cooper, AIA
0 Likes
Message 3 of 8

alexandre_benekowski
Advocate
Advocate

Is possible to crossing windows and creat a boundery between two diferrent linetype Kent1Cooper ? (not pick point)

 

because with the boundery is possible to calculate the area.

0 Likes
Message 4 of 8

devitg
Advisor
Advisor

I found a way , at theory. 

Get the 2 intersections

 

For each poly get both param for such intersections = first-param last-param

 

get the param between  each param@intersections= Nparam

 

build a  2 param-list firstParam + N param + last param

 

 

Build a point-list for each param-list

 

append both point-list

 

add the poly 

 

get the area 

 

delete poly 

 

add area text 

 

 

 

 

    

0 Likes
Message 5 of 8

alexandre_benekowski
Advocate
Advocate

Hi devitg,

 

I´m not so goog yet in auto lisp.

 

Could you give me an idea to start it?

0 Likes
Message 6 of 8

Kent1Cooper
Consultant
Consultant

@alexandre_benekowski wrote:

Is possible to crossing windows and creat a boundery between two diferrent linetype Kent1Cooper ? (not pick point)

 

because with the boundery is possible to calculate the area.


[Read help about the meaning of "linetype" in AutoCAD -- I think you mean two different Polylines.]

 

The find-the-intersections approach suggested by @devitg may well work if the Polylines are made up of only line segments.  Might they ever include any arc segments?

 

If the location in the center of the combined extents of the two [or more] Polylines can always be counted on to be inside the boundary area, I can imagine a way to do it, even if arc segments are involved, and even if objects might not always be Polylines [e.g. one of them an Arc, or something].  Is it likely to always be the case that the center of everything will be inside?

Kent Cooper, AIA
0 Likes
Message 7 of 8

alexandre_benekowski
Advocate
Advocate

Hi Kent1Cooper there is no arc.

0 Likes
Message 8 of 8

devitg
Advisor
Advisor

Please Upload a real true DWG .

 

I sent  you a private message .

 

0 Likes