resullins Posted Monday at 04:30 PM Posted Monday at 04:30 PM Ok... this is something that over the years I have achieved in a plethora of ways. However, now, I need to be able to deploy it in the easiest possible method, which is in a simple LISP routine. What I'm trying to do is use MULTIPLE so that I stay in the ATTIPEDIT command. The code I have is below. When I run it, it gives me the following error, but will allow me to select the first attribute to edit. However, after I edit first attribute, the text box click cursor goes away, and I can't edit anything additional. *Invalid selection* Expects a single object. ; error: Function cancelled This is the code I'm running, and I can't see the error. Also, forgive me, I've been at a trade show for the last week, so maybe my brain is just on strike. Thanks in advance! (defun c:MBE ( / ) (command "_.MULTIPLE") (while t (command "_.ATTIPEDIT") ) (princ) ) Quote
GLAVCVS Posted Monday at 07:14 PM Posted Monday at 07:14 PM (edited) Hi Just add PAUSE after _.ATTIPEDIT. Like That... (command "_.ATTIPEDIT" PAUSE) Edited Monday at 07:15 PM by GLAVCVS 1 Quote
resullins Posted Monday at 08:45 PM Author Posted Monday at 08:45 PM 1 hour ago, GLAVCVS said: Hi Just add PAUSE after _.ATTIPEDIT. Like That... (command "_.ATTIPEDIT" PAUSE) THANK YOU!!!! I knew I was missing something easy. I really appreciate the help. Quote
BIGAL Posted Monday at 11:26 PM Posted Monday at 11:26 PM Another similar, hold ctrl down and dbl click an attribute will allow edit of that attribute, but only a single at a time. Quote
ScottMC Posted Monday at 11:31 PM Posted Monday at 11:31 PM (edited) Thanks y'all.. my mistake not poking further into '_multiple'.. For me, working 3dsolid mostly, it works great (defun c:MFE ( / *error*) (defun *error* ( msg ) (setvar 'cmdecho 0) ;; 5.28.24 (vla-endundomark (vla-get-activedocument (vlax-get-acad-object))) (if qaf (setvar 'qaflags qaf)) (if msg (prompt (strcat "\n" msg))) (setvar 'cmdecho 1) (princ) ) (command "_.MULTIPLE") (command "_.SOLIDEDIT" "F" "M" "\\") (while t (command "\\" "\\" "\\" "M" "\\") ) (*error* nil) (princ) ) Edited 18 hours ago by SLW210 Added Code Tags!! Quote
SLW210 Posted 18 hours ago Posted 18 hours ago 10 hours ago, ScottMC said: Thanks y'all.. my mistake not poking further into '_multiple'.. For me, working 3dsolid mostly, it works great @ScottMC In the future please put your code in code tags. (<> in the editor toolbar) Quote
resullins Posted 15 hours ago Author Posted 15 hours ago 14 hours ago, BIGAL said: Another similar, hold ctrl down and dbl click an attribute will allow edit of that attribute, but only a single at a time. And that's what I always used to do... but these boys are especially lazy. 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.