Code Red > .NET

Select Parcels by polyline

(1/1)

sdunn:
I am trying to duplicate the functionality that is used by the built in commands using the polyline option for selection.

EDITPARCELNUMBERS  Specify start point or [Polylines/Site]:

I am trying to select parcels by first selecting a polyline and using ed.SelectFence.  This only works as long as the parcel hatch is visible or the polyline passes through the area selection label.    The built in option doesn't seem to have the same issue that SelectFence does.

I have also tried getting each parcelsegment that is found crossing the polyline, but I can find how to get a parcel from its segment entity in .net.

Any help would be appreciated.

Thank you,
Stacy

Jeff_M:
Stacy, I hadn't looked into this before so this is how I think I would go about it. Create a Class ParcelPolys to hold the Parcel Number and Polyline. Have the user select the Site, then create a list of the ParcelPolys by looping through the parcels in the Site and creating a Polyline from the ParcelLoops[0] loop. You can then use those Polylines with the Fence to find which get intersected. I don't have time to write any code right now, but if this makes no sense to you I can work on it over the weekend.

sdunn:
Jeff,

Thank you for the help with accomplishing the task.  No need for you to work on it.

Thank you again.

Stacy

d2010:
You must share a demo as Drawing.dwg
How to upload
You make a video , manually on youtube.com, and the program make exactly same
steps as this video/mp4.

Navigation

[0] Message Index

Go to full version