Jump to content

LISP for MULTIPLE won't stay in command.


Recommended Posts

Posted

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)

)

 

Posted (edited)

Hi
Just add PAUSE after _.ATTIPEDIT.

Like That... 
(command "_.ATTIPEDIT" PAUSE)

Edited by GLAVCVS
  • Like 1
Posted
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. 

Posted

Another similar, hold ctrl down and dbl click an attribute will allow edit of that attribute, but only a single at a time.

Posted (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 by SLW210
Added Code Tags!!
Posted
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)

Posted
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. 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...