JWhelp Posted July 21, 2011 Share Posted July 21, 2011 I’m sure this is a basic one - I would like customise my startup settings in CAD. How do I reference a parameter of a command with lisp, e.g. revcloud’s Arc length, and pass it a value? Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 21, 2011 Share Posted July 21, 2011 (edited) Welcome to CADTutor! The revcloud's "Default Minimum Arc Length" and "Default Maximum Arc Length" are stored in the registry under the "Revision Cloud" Key. However, only after the user changes from the default 0.5 values will these registry keys be added. Hope this helps! Edited July 21, 2011 by BlackBox I always find the typo AFTER I hit the button! Quote Link to comment Share on other sites More sharing options...
JWhelp Posted July 21, 2011 Author Share Posted July 21, 2011 Cheers! Ok - So are you saying i can't change them from their default value, initially, because they don't exist? i could access the register and replace the values but only after manually invoking the command: "revcloud", "a", then "values" ? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 21, 2011 Share Posted July 21, 2011 This will write to the correct keys: (defun RevMinMax ( _min _max / path ) (setq path (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Revision Cloud")) (vl-registry-write path "Default Maximum Arc Length" (rtos _min 2)) (vl-registry-write path "Default Mininum Arc Length" (rtos _max 2)) (princ) ) E.g. (RevMinMax 3.0 4.0) I can't believe that whoever programmed this area of AutoCAD included a typo in the RegKey... 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.