Data Extraction Coordinates of One End of Polyline

Data Extraction Coordinates of One End of Polyline

codyhornyak
Advocate Advocate
2,477 Views
11 Replies
Message 1 of 12

Data Extraction Coordinates of One End of Polyline

codyhornyak
Advocate
Advocate

I draw a lot of poly lines that start from one common point but have unique end points. I know how I could extract both the start and end points of a polyline, but I don’t know how to differentiate between the start and end easily. Also, I don’t trust that every line would be drawn in the same direction. 

My only idea so far is to use a block instead of a polyline. Make the block have a fixed point as my extraction point, and I can make the polyline in the block editable. 

Is there an easier way to do this? Thanks

 

Attached is an example dwg.

0 Likes
2,478 Views
11 Replies
Replies (11)
Message 2 of 12

parkr4st
Advisor
Advisor

post an example .dwg of the problem lines.  obviously, if the lines all start at the same point, the other end xyz is the sought after data.  and explain "drawn in the same direction"  as in parallel or left to right or right to left, etc

0 Likes
Message 3 of 12

Kent1Cooper
Consultant
Consultant

@parkr4st wrote:

...  and explain "drawn in the same direction"  as in parallel or left to right or right to left, etc


I assume [ @codyhornyak confirm? ] that by "direction" they mean whether the drawn direction is toward or away from their shared/common point.  If that's the case, the first sentence in Message 1 would be more correct if "start from one common point but have unique end points" were replaced with something like "share a common point at one end but have unique other ends."

Kent Cooper, AIA
0 Likes
Message 4 of 12

codyhornyak
Advocate
Advocate

By drawn in the same direction I mean the common point they all share would be vertex 1 for each polyline. 

 

I have attached a sample dwg.

0 Likes
Message 5 of 12

parkr4st
Advisor
Advisor

There is no dwg attached.

0 Likes
Message 6 of 12

Kent1Cooper
Consultant
Consultant

@codyhornyak wrote:

By drawn in the same direction I mean the common point they all share would be vertex 1 for each polyline. 

....


And though the sample drawing has them drawn in the same direction by that definition, that's what you can't necessarily rely on being true in all cases.  So the common point could be the endpoint of some Polylines and the startpoint of others.

 

That should be surmountable, but:

 

What form are you looking for as an "extraction" of the non-shared far-end vertex locations?  Do you want a list of point-coordinate lists, or something else?

 

What would be the procedure?  The User selects the Polylines, or the routine finds all Polylines [possibly all on a specific Layer]?  The result is put into a variable for use by further code, or reported at the command line, or fed to an external text or spreadsheet file, or something like Points or Blocks or Text are placed at the resulting points, or ....?

Kent Cooper, AIA
0 Likes
Message 7 of 12

codyhornyak
Advocate
Advocate

The sample drawing is attached to the original post.

0 Likes
Message 8 of 12

codyhornyak
Advocate
Advocate

I would like to extract a list of coordinates and the hyperlinks of those lines. I would like to extract only the "non-shared far-end vertex location coordinates".

 

The procedure would be to draw all the polylines on the same layer and hyperlink them all so they have a name. Isolate the layer and use data extraction to extract the hyperlinks, lengths, and "non-shared far-end vertex location coordinates". 

 

The issue is when you are using data extraction for polylines, there is no option for coordinates. If you have a circle for example, you can extract the center X/Y/Z. If you have a block, you can extract the position X/Y/Z.

 

I don't know how to best extract all of these items at once. 

0 Likes
Message 9 of 12

parkr4st
Advisor
Advisor

such as this?

 

http://www.lee-mac.com/polyinfo.html

 

 

0 Likes
Message 10 of 12

Patchy
Mentor
Mentor
0 Likes
Message 11 of 12

codyhornyak
Advocate
Advocate

@Patchy , this might be what I am looking for. I am off work next week but will test it when I get back and let you know. Thanks

0 Likes
Message 12 of 12

codyhornyak
Advocate
Advocate

I don't think any of these ideas are going to work for what I am doing. I am going to have to use 2 separate blocks, use data extraction to export the coordinates, then use excel to calculate the distance in between the 2 points.

0 Likes