.NET

Reply
Active Member
7 Posts
0 Kudos
Registered: ‎09-27-2011
Post 1 of 4

Get coordinate

160 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*
9,836 Posts
1,219 Kudos
Registered: ‎06-29-2007
Post 2 of 4

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
7 Posts
0 Kudos
Registered: ‎09-27-2011
Post 3 of 4

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*
9,836 Posts
1,219 Kudos
Registered: ‎06-29-2007
Post 4 of 4

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 interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!