A
A
artshelom2019-03-10 20:15:12
AutoCAD
artshelom, 2019-03-10 20:15:12

How to get all objects and how to determine the shortest distance between objects?

I wrote everything in the question.
I can't figure out how to get all objects in a layer and how to determine the shortest distance between some objects?
How to get objects found here

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mshak, 2019-03-13
@mshak

Let's talk about geometry...

public static float Distance(PointF one, PointF two)
{
    return (float)Math.Sqrt(Math.Pow(Math.Abs(two.X - one.X), 2) + Math.Pow(Math.Abs(two.Y - one.Y), 2));
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question