sd-inq-vp-corners: help plese!!!
Hello,
i really need some help with a problem i'm facing.
I need to write a dialog that will create a worplane on the "origin" of the current viewport, and draw a rectangle that fit the viewport size.
I'm using this metod to inquire the center for the workplane cration:
(sd-vp-camera-struct-to-pt (sd-inq-vp-camera (sd-inq-current-vp))
My problem is that the function sd-inq-vp-corners return me the screen coordinate of the viewport. How i can convert/project those 2 gpnt_2D on my workplane?
I have tryed with sd-vec-xform but doesn't work...
I'm really going crazy about this... so i will really appreciate every help!
Attached you can find a simple example.
Thanks again for any help.
Andrea
|