View Single Post
  #1  
Old 02-27-2015, 12:08 AM
Bobo82 Bobo82 is offline
Registered User
 
Join Date: May 2007
Location: Bologna, Italy
Posts: 22
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
Attached Files
File Type: lsp viewport_size.lsp (883 Bytes, 363 views)
Reply With Quote