Guest looseLISPSsinkSHIPS Posted September 10, 2009 Posted September 10, 2009 Hi, we have this old lisp that seams to bug me quite a bit as I cant think of a way around it. The lisp posted bellow is suppose to be continuing as similar to the dimcontinue command. However adding this “dimcontinue” feature to the lisp invalidates/ halts/ skips the pause command. We have tried extensively to better this however to no avail. Perhaps someone out there knows the solution to our brainteaser? ;;;=== START OF CODE=== (defun c:Peilmaatvoering () (setq curDimSty (getvar 'dimstyle)) (command ".Layer" "Make" "Maatvoering" "" "dimstyle" "Restore" "Peilmaatvoering" "_dimlinear" "dimpost" "+" "Dimcontinue" ) (while (= (logand (getvar "cmdactive") 1) 1) (command pause) ) (command "_dimstyle" "restore" curDimSty "_Layerp" ) ) ;;;===END OF CODE=== Thanks- Quote
Guest looseLISPSsinkSHIPS Posted September 10, 2009 Posted September 10, 2009 that stuipid smalie face is supose to say C: P -eilmaatvoering, dang! Quote
The Buzzard Posted September 10, 2009 Posted September 10, 2009 that stuipid smalie face is supose to say C: P -eilmaatvoering, dang! Try posting the code next time using the code brackets feature. Look for the # icon on the advanced posting. Place your code between them. It should look like this below. (defun c:P-eilmaatvoering () (setq curDimSty (getvar 'dimstyle)) (command ".Layer" "Make" "Maatvoering" "" "dimstyle" "Restore" "Peilmaatvoering" "_dimlinear" "dimpost" "+" "Dimcontinue" ) (while (= (logand (getvar "cmdactive") 1) 1) (command pause) ) (command "_dimstyle" "restore" curDimSty "_Layerp" ) ) Quote
Guest looseLISPSsinkSHIPS Posted September 10, 2009 Posted September 10, 2009 Thanks (new to th forum)... Quote
The Buzzard Posted September 10, 2009 Posted September 10, 2009 No problem and welcome to the forum. Quote
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.