Author Topic: Conversion of coordinates  (Read 2654 times)

0 Members and 1 Guest are viewing this topic.

velasquez

  • Newt
  • Posts: 195
Conversion of coordinates
« on: December 20, 2010, 06:18:03 AM »
 Is it possible to convert a coordinate of the Window of Exhibition in drawing coordinates?
Thanks

Velasquez

HasanCAD

  • Swamp Rat
  • Posts: 1421
Re: Conversion of coordinates
« Reply #1 on: December 20, 2010, 06:29:14 AM »
What is the meaning of Window of Exhibition ?

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Conversion of coordinates
« Reply #2 on: December 20, 2010, 08:01:17 AM »
Those coordinates can be calculated using these variables:
SCREENSIZE
VIEWCTR
VIEWDIR
VIEWSIZE

velasquez

  • Newt
  • Posts: 195
Re: Conversion of coordinates
« Reply #3 on: December 20, 2010, 08:18:49 AM »
Those coordinates can be calculated using these variables:
SCREENSIZE
VIEWCTR
VIEWDIR
VIEWSIZE

I have the current mouse coordinates in Windows display coordinates relative to the upper left corner of the virtual display.
I need to convert this for XY in the current viewport.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Conversion of coordinates
« Reply #4 on: December 20, 2010, 11:01:36 AM »
Scrap my previous answer, I have completely misunderstood you.
Please clarify:
Do you want to translate a point in paperspace to a modelspace point?

velasquez

  • Newt
  • Posts: 195
Re: Conversion of coordinates
« Reply #5 on: December 20, 2010, 11:27:02 AM »
Scrap my previous answer, I have completely misunderstood you.
Please clarify:
Do you want to translate a point in paperspace to a modelspace point?


My English is not good but I will try to explain. 
1 - I have a function in ARX that SCREENSIZE comes back -> (1440 870)  pixels.
2 - other function a point comes back in this area -> (491.0 305.0) 
 
I need to translate this point for ModelSpace.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Daniel Eiszele

  • Newt
  • Posts: 85
Re: Conversion of coordinates
« Reply #7 on: December 20, 2010, 04:10:46 PM »
I don't think Velasquez is trying to convert between modelspace and paperspace coordinates.  I think he is trying to convert from screen coordinates to drawing coordinates.  I don't know if it's possible in LISP; just reiterating the question :)

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Conversion of coordinates
« Reply #8 on: December 20, 2010, 05:24:17 PM »
I don't think Velasquez is trying to convert between modelspace and paperspace coordinates.  I think he is trying to convert from screen coordinates to drawing coordinates.  I don't know if it's possible in LISP; just reiterating the question :)

Maybe this post by MP will help.

[ http://www.theswamp.org/index.php?topic=11624.msg145649#msg145649 ]
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

velasquez

  • Newt
  • Posts: 195
Re: Conversion of coordinates
« Reply #9 on: December 21, 2010, 06:07:44 AM »
I don't think Velasquez is trying to convert between modelspace and paperspace coordinates.  I think he is trying to convert from screen coordinates to drawing coordinates.  I don't know if it's possible in LISP; just reiterating the question :)

You got right it is this that I want to do. 
But I also discovered that is not the best road. 
I thank to all that tried help.