AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

using expression builder to list the distance between points

4 REPLIES 4
Reply
Message 1 of 5
COLINBIBLE4464
498 Views, 4 Replies

using expression builder to list the distance between points

Hello. I have a data table showing points surrounding a central source.

I would like to create a calculation that adds a column in my data table of the points; that shows the distance between each respective point, and the central point.

My knowledge in expression building is limited, and Im hoping someone here could help me.

I assume I would be using some form of calculation using the geom, and the X and Y locations, however Im coming up with nada.

Can anyone help?

 

Thanking you in advance

 

Colin

4 REPLIES 4
Message 2 of 5
tjmapper
in reply to: COLINBIBLE4464

I don't believe you can connect 2 features in a calculation. Therefore you want be able to calculate the distance between. That's what lines are for Smiley Wink

 

How many points are we talking?

Message 3 of 5
parkr4st
in reply to: tjmapper

sqrt (x^2 + y^2) = the dist on a 2d plane

 

if origin is 0,0

 

then

 Sqrt ( Power (  X1 , 2 )  +  Power (  (Y1, 2 ))

 

so subract x & y of your central point from x1 and y1 of each point

 

ie origin at 1,1

 

 Sqrt ( Power ( ( X1-1) , 2 )  +  Power (  (Y1-1) , 2 ))

 

dave

 

Message 4 of 5
parkr4st
in reply to: parkr4st

example i used  UTM83-19 coord sys.  look at the data table. I think this is what you are looking for.

 

Dave

 

 

Message 5 of 5
COLINBIBLE4464
in reply to: parkr4st

Thank you guys.

That was the type of solution that I was looking to implement.

I have 20 points (residences) surrounding a potential site.

I was just measuring the distance from the centre of the proposed site ( a coordinate), to each residence (nodes surrounding the proposed site)

I was writing the distances down and adding them to a spreadsheet. I wanted to shortcut that by having the distances automatically update in the data table if I moved a node (residence). Then I would export the data table into the spreadsheet.

 

Colin

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost