.NET

Reply
Active Member
stcw
Posts: 7
Registered: ‎09-27-2011
Message 1 of 4 (153 Views)

Get coordinate

153 Views, 3 Replies
07-03-2012 10:48 PM

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!

*Expert Elite*
Alfred.NESWADBA
Posts: 9,366
Registered: ‎06-29-2007
Message 2 of 4 (151 Views)

Re: Get coordinate

07-03-2012 11:41 PM 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
-------------------------------------------------------------------------
Active Member
stcw
Posts: 7
Registered: ‎09-27-2011
Message 3 of 4 (143 Views)

Re: Get coordinate

07-04-2012 01:52 AM 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!

 

*Expert Elite*
Alfred.NESWADBA
Posts: 9,366
Registered: ‎06-29-2007
Message 4 of 4 (139 Views)

Re: Get coordinate

07-04-2012 02:28 AM 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
-------------------------------------------------------------------------
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!