TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: velasquez on December 20, 2010, 06:18:03 AM

Title: Conversion of coordinates
Post by: velasquez 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
Title: Re: Conversion of coordinates
Post by: HasanCAD on December 20, 2010, 06:29:14 AM
What is the meaning of Window of Exhibition ?
Title: Re: Conversion of coordinates
Post by: roy_043 on December 20, 2010, 08:01:17 AM
Those coordinates can be calculated using these variables:
SCREENSIZE
VIEWCTR
VIEWDIR
VIEWSIZE
Title: Re: Conversion of coordinates
Post by: velasquez 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.
Title: Re: Conversion of coordinates
Post by: roy_043 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?
Title: Re: Conversion of coordinates
Post by: velasquez 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.
Title: Re: Conversion of coordinates
Post by: CAB on December 20, 2010, 12:46:02 PM
Look here
http://www.theswamp.org/index.php?topic=29231.msg347755#msg347755
Title: Re: Conversion of coordinates
Post by: Daniel Eiszele 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 :)
Title: Re: Conversion of coordinates
Post by: T.Willey 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 ]
Title: Re: Conversion of coordinates
Post by: velasquez 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.