.NET

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

Get coordinate

143 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: 8,890
Registered: ‎06-29-2007
Message 2 of 4 (141 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 (133 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: 8,890
Registered: ‎06-29-2007
Message 4 of 4 (129 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
-------------------------------------------------------------------------

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community