CoCreate User Forum

CoCreate User Forum (https://www.cocreateusers.org/forum/index.php)
-   Customization (https://www.cocreateusers.org/forum/forumdisplay.php?f=12)
-   -   sd-inq-vp-corners: help plese!!! (https://www.cocreateusers.org/forum/showthread.php?t=8200)

Bobo82 02-27-2015 12:08 AM

sd-inq-vp-corners: help plese!!!
 
1 Attachment(s)
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

Bobo82 03-09-2015 03:07 AM

Re: sd-inq-vp-corners: help plese!!!
 
1 Attachment(s)
Hi,
I finally found a solution :D.
Attached the new version if some one else will need it in future.

Thank's any way.

Andrea

jkramer 03-30-2015 01:20 AM

Re: sd-inq-vp-corners: help plese!!!
 
Nice Lisp!!


All times are GMT -8. The time now is 11:52 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.