changing LAYMRG prompt default

changing LAYMRG prompt default

james.cunninghamPJ6KR
Participant Participant
881 Views
2 Replies
Message 1 of 3

changing LAYMRG prompt default

james.cunninghamPJ6KR
Participant
Participant

When I am cleaning up floor and site plans that have a multitude of unnecessary {construction} layers (for our layout purposes)

I use LAYMRG to combine layers that have been embedded in blocks.

So when I see 4 different layers for doors or windows, I keep one and merge the remainder to layer ‘0’

{i.e.  our layout drawing backgrounds don’t need to have door pattern layers, door frame layers, door threshold layer, door header layer ad nauseum,  just wastes time to scroll through the list of layers when modifying the device drawing or setting up the plot sheets}

 

This can be tedious since the Autocad prompting defaults to NO requiring typing in Y to change the answer.

 

"Do you wish to continue?

    Enter Yes or No to verify that you want to complete the merge operation. "

 

The default is NO, and want to change that to YES, so I don't have to type in Y everytime.

 

Any idea where that configuration option would be located?

0 Likes
882 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

It won't by possible. Maybe we could do something about it... (suppress?), but we don't change the default.

BTW do you know that LAYMRG is also accessible from the Layer Manager? I found myself that more convenient for such a job.

0 Likes
Message 3 of 3

ВeekeeCZ
Consultant
Consultant

@ВeekeeCZ wrote:

... Maybe we could do something about it... (suppress?)...


 

This LISP routine runs the -LAYMRG command and when the prompt pop up, the routine gives "YES" for you. So it kinda suppresses the prompt.

 

(defun c:LMRG nil
  (command "_.-LAYMRG")
  (while (> (getvar 'CMDACTIVE) 0)
    (if (wcmatch (getvar 'LASTPROMPT) "You are about to merge*")
      (command "_Yes")
      (command PAUSE)))
  (princ)
  )
0 Likes