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

Getting Z with getpoint

3 REPLIES 3
Reply
Message 1 of 4
iwtblj
290 Views, 3 Replies

Getting Z with getpoint

I'm trying to get a point. The problem is that if the user goes to View->3d Views->Front, it will show the front but it still shows it as if it's on the XY plane instead of the XZ plane. When the user selects a point on the screen it shows up as xxx,xxx,0. When I did a similar thing in VBA and user selected a point, it would show up as xxx,0,xxx. Is there some way I can get it to detect what view its in so that I can get the Z coordinate or is there a better way to accomplish the same thing?
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: iwtblj

What UCS is active in the view the user picks the point in?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6300426@discussion.autodesk.com...
I'm trying to get a point. The problem is that if the user goes to View->3d
Views->Front, it will show the front but it still shows it as if it's on the
XY plane instead of the XZ plane. When the user selects a point on the
screen it shows up as xxx,xxx,0. When I did a similar thing in VBA and user
selected a point, it would show up as xxx,0,xxx. Is there some way I can
get it to detect what view its in so that I can get the Z coordinate or is
there a better way to accomplish the same thing?
Message 3 of 4
iwtblj
in reply to: iwtblj

Ah, I see. I didn't realized that the .NET version of getpoint gets it in UCS. I assumed that it worked the same as VBA. Once I convert, it works fine, but do I have to convert or is there some way I can get it in WCS?
Message 4 of 4
Anonymous
in reply to: iwtblj

No, you have to convert it.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6300648@discussion.autodesk.com...
Ah, I see. I didn't realized that the .NET version of getpoint gets it in
UCS. I assumed that it worked the same as VBA. Once I convert, it works
fine, but do I have to convert or is there some way I can get it in WCS?

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