sekarr24 Posted May 21, 2010 Share Posted May 21, 2010 Hi Friends., I need some one who guide me in creating a customization The details. I regularly use some input values like 800, 750, etc... during execution of commands like move, copy..., I need a customization, whenever the distance value is required, a button or dialog box has to be displayed with predefined values (800,750). when i click the button those value has to be transferred to the command prompt. Hope some one will answer and thanks. regards sekar Quote Link to comment Share on other sites More sharing options...
MSasu Posted May 21, 2010 Share Posted May 21, 2010 Can create a new button and on Macro field input "870" - this will send to command prompt that value; unfortunately will be quite tricky to control the mouse position related to current location (and therefore displacement direction) when use that button. Regards, Quote Link to comment Share on other sites More sharing options...
sekarr24 Posted May 21, 2010 Author Share Posted May 21, 2010 Hi Thanks for the help. We can handle the direction movement by entering the @800 Quote Link to comment Share on other sites More sharing options...
MSasu Posted May 21, 2010 Share Posted May 21, 2010 You are right – but this way will have to make a button for each displacement multiplied with desired directions: 2 displacements (750, 800) x 4 directions (0, 90, 180, 270) = 8 buttons Regards, Quote Link to comment Share on other sites More sharing options...
alanjt Posted May 21, 2010 Share Posted May 21, 2010 Create a right-click menu with all your options, then under Mouse Options in the CUI editor, add the newly created menu to the Shift+Click or Ctrl+Click (whichever one you don't use to access the OSnap menu). This will also give you the option to use it within a LISP routine. Quote Link to comment Share on other sites More sharing options...
alanjt Posted May 21, 2010 Share Posted May 21, 2010 Just for fun, here's an option. Set your point values where I have it marked in red (I just put a few random examples). The popup will display at the cursor position. (defun c:PV (/ valLst val) ;; Point Values From List ;; DosLib Required ;; Alan J. Thompson, 05.21.10 (vl-load-com) (setq valLst '((800 750) (0 0) (10 10))) (if (zerop (logand 1 (getvar 'cmdactive))) (alert "Must be called transparently!") (if (or dos_popupmenu (alert "DosLib required. Please download and install.") (progn (command) (command "_.browser" "http://www.en.na.mcneel.com/doslib.htm")) ) (if (setq val (dos_popupmenu (mapcar (function vl-princ-to-string) valLst))) (nth val valLst) ) ) ) ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.