Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD - "-LAYER SET - END"

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
khvPGX5G
501 Views, 8 Replies

AutoCAD - "-LAYER SET - END"

Hi All

 

I have an layer "text", to which i would like to change to! 

 

When inserting "-LAYER S text" in commandline I end up stuck in not being able to close command 

other than two times enter button

 

Question: What are the "code" to end the current command?    

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: -LAYER SET - END ]

Tags (1)
8 REPLIES 8
Message 2 of 9
ВeekeeCZ
in reply to: khvPGX5G

-LAYER S text;;

When you try to do it in the command line, you need to hit ENTER twice. So add ;; to make it in macro.

 

Or better use 

-LAYER M text;;

 

M (as Make) option not only set the current layer (as the Set option), but it also creates the layer if it doesn't already exist.

Message 3 of 9
khvPGX5G
in reply to: khvPGX5G

Hi 

I do not want to use macro at this point !

I use excel to copy paste into autocad

 

A copy paste of that line with ;; are not being accepted by autocad 2020 (see attached)

Message 4 of 9
imadHabash
in reply to: khvPGX5G

All what you have to do is just type the exact layer name. 

Imad Habash

EESignature

Message 5 of 9
ВeekeeCZ
in reply to: khvPGX5G

Also can use a new line character (enter)

 

-layer set text

This also can be done in Excel by Alt+Enter. But then you can't directly copy-paste the code into AutoCAD, you need to use that Notepad to remove the initial and last ", then copy-paste it into AutoCAD.

Message 6 of 9
khvPGX5G
in reply to: khvPGX5G

The "CLAYER TEXT" copy to autocad works perfectly to my need, 

but still is left to how to get out off the -layer command back to main command line (no enter) 

Message 7 of 9
khvPGX5G
in reply to: ВeekeeCZ

Please send this "Unless you're on LT, you can use (setvar 'clayer "text") " so i can accept the solution
this are not 100% perfect but a great help!
Message 8 of 9
paullimapa
in reply to: khvPGX5G

this will work as long as you don't have a space in the layer name (include space after 1 at end of line :

EXTNAMES 0 -layer _set text EXTNAMES 1 

Try copy and paste above line into command prompt


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 9 of 9
ВeekeeCZ
in reply to: khvPGX5G


@khvPGX5G wrote:
Please send this "Unless you're on LT, you can use (setvar 'clayer "text") " so i can accept the solution
this are not 100% perfect but a great help!

 

Ohh, I removed that by accident. sorry.

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report