CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-26-2010, 08:21 AM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
Need a little Lisp help.

Hello All,

I am trying to resurrect some old lisp code in Modeling 16.50 and for all intended purposes the code works accept when I try to change the type of entity I would like to pick.

The code is to do a Measure 2 Points in a certain Direction or Axis. If I invoke the command from another dialog let's say the Extrude command and then pick two points either 3D or 2D it puts the results in the Distance box just fine, but if I try to do a Crtl+Shift Left Mouse to grab a Center point of change the selection in the Catch Menu the command errors out and ends.

Could someone else take a look at the code and tell me what I missed.

Code:
(defun ges-measure-u ()
  (put-buffer (sd-num-to-string
     (sd-sys-to-user-units :length
         (getres (progn
          (set_pers_context :none)
                (measure_dist :between_points :interactive :interactive
                   :direction :u)))))))

Thanks.
Thom
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 09:28 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.