CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #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, 357 views)
Reply With Quote
  #2  
Old 03-09-2015, 03:07 AM
Bobo82 Bobo82 is offline
Registered User
 
Join Date: May 2007
Location: Bologna, Italy
Posts: 22
Re: sd-inq-vp-corners: help plese!!!

Hi,
I finally found a solution .
Attached the new version if some one else will need it in future.

Thank's any way.

Andrea
Attached Files
File Type: lsp viewport_size.lsp (1.2 KB, 381 views)
Reply With Quote
  #3  
Old 03-30-2015, 01:20 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
Re: sd-inq-vp-corners: help plese!!!

Nice Lisp!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:37 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

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