Jump to content

Lisp to measure two sides of a closed polyline that is connected to another layer


Recommended Posts

Posted

Hello
I want a lisp to measure two sides of a closed polyline that is connected to another specific layer and the size of the other parts is not required. If possible, give the area of each parcel.
Can someone please help?

Capture.JPG

Posted (edited)

If the objects are a pline and they touch the orange line then you can find them, if they are on a layer then you can get all of them  and check do they touch the orange line. Re get 2 sides easier to just get all sides. 

 

Post a dwg with a before and after showing exactly what you want.

Edited by BIGAL
Posted
On 10/3/2022 at 1:17 AM, BIGAL said:

If the objects are a pline and they touch the orange line then you can find them, if they are on a layer then you can get all of them  and check do they touch the orange line. Re get 2 sides easier to just get all sides. 

 

Post a dwg with a before and after showing exactly what you want.

Thank you for your explanation.Drawing3.dwg
I sent the AutoCAD file and gave the description inside the file. I am waiting for your answer.

Thankful.

Posted

Worked out a 1st step pick inside the intersecting plines use bpoly to make a inside pline, ok hatch the white pline. Use trim to remove the hatch from inside the white pline. 

 

image.png.3bbf7cca77e6625361374035d3a8f187.png

 

Automating this maybe. Not a 5 minute job.

 

The big problem I see is doing those labels you want.

 

No code at this stage, some else may jump in.

 

Posted (edited)
16 hours ago, BIGAL said:

The big problem I see is doing those labels you want.

No code at this stage, some else may jump in.

 

Take the longest segment of the bpoly and calculate its angle? geo center wouldn't work for some areas.

 

--edit

maybe use the point when clicking for bpoly.

image.png

Edited by mhupp

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