Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LayDel Macro

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
m_rogoff
421 Views, 2 Replies

LayDel Macro

I would like to have a macro command for LAYDEL. I have this (below) but want to make a change. Now, I pause for user input to select the desired layer to delete. I have to then hit ENTER and Y ENTER manually. I would just like to select the objects, hit ENTER once, and have it finish the Y ENTER automatically. 

 

^C^Claydel;\;y;

 

 

Command: LAYDEL
PAUSE FOR USER INPUT TO MANUALLY SELECT OBJECT  Select object on layer to delete or [Name]:
Selected layers: S-ARCH.
Select object on layer to delete or [Name/Undo]:
******** WARNING ********
You are about to delete layer "S-ARCH" from this drawing.
THIS IS WHERE THE HANGUP IS  Do you wish to continue? [Yes/No] <No>: y

Deleting layer "S-ARCH".
1 layer deleted.

2 REPLIES 2
Message 2 of 3
Shneuph
in reply to: m_rogoff

Your macro works for me without getting hung up.  AutoCAD 2014.

What is MENUECHO set to?

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Message 3 of 3
slowe
in reply to: Shneuph

This works with MENUECHO = 1

Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost