.NET

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

Get coordinate

152 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,217
Registered: ‎06-29-2007
Message 2 of 4 (150 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 (142 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,217
Registered: ‎06-29-2007
Message 4 of 4 (138 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
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.