.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get coordinate

3 REPLIES 3
Reply
Message 1 of 4
stcw
333 Views, 3 Replies

Get coordinate

Hi,

 

I'd like to get the coordinate of X, Y, Z by selecting a line using C#, is there any sample code or references, thanks!

3 REPLIES 3
Message 2 of 4
Alfred.NESWADBA
in reply to: stcw

Hi,

 

lineobj.StartPoint   ...and

lineobj.EndPoint

....are two built-in-method for lineobjects, or is there any other question I don't see?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 4
stcw
in reply to: Alfred.NESWADBA

Hi

 

Thanks for the reply.

 

I created a method to draw line using C#,

 

public void Test()
        {
            Point3d ptSt = new Point3d(0, 0, 0);
            Point3d ptEnd = new Point3d(1000, 2000, 5400);
            Class1.AddLine(ptSt, ptEnd);
        }

 

now I want to create another method to get the coordination of the line,

which method should or where can I get the further references,

thanks!

 

Message 4 of 4
Alfred.NESWADBA
in reply to: stcw

Hi,

 

what is Class1 or what is the function "Class1.Addline" doing?

How should anyone else give any tips on how to access a line without knowing where you store it?

 

Sorry for the direct words, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost