TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started 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
-
What is the meaning of Window of Exhibition ?
-
Those coordinates can be calculated using these variables:
SCREENSIZE
VIEWCTR
VIEWDIR
VIEWSIZE
-
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.
-
Scrap my previous answer, I have completely misunderstood you.
Please clarify:
Do you want to translate a point in paperspace to a modelspace point?
-
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.
-
Look here
http://www.theswamp.org/index.php?topic=29231.msg347755#msg347755
-
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 :)
-
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 ]
-
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.