Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Command to change layer of selected objects

Shaiki_
Advocate

Command to change layer of selected objects

Shaiki_
Advocate
Advocate

Hello, 

 

Is there a command to change the layer of selected objects via the command line? I like how "clayer" allows you to set the current layer through the command line, but it would also be nice if I could change the layer of objects through the command line as well!

 

Responder
Soluciones aceptadas (1)
15.309 Vistas
3 Respuestas
Respuestas (3)

cadffm
Consultant
Consultant

Use AutoCAD help, press [F1]

change Layer command

The way for help yourself.

 

 

Solution:

command CHPROP or CHANGE 

LAYCUR and others

 

HTH

Sebastian

imadHabash
Mentor
Mentor

Hi,

 

>> Is there a command to change the layer of selected objects via the command line? <<

Yes you can by CHANGE command.

 

Command: -CH CHANGE
Select objects: Specify opposite corner: 2 found

Select objects: Specify change point or [Properties]: p
Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/TRansparency/Material/Annotative]: la
Enter new layer name <varies>: 0

 

 

Regards,

 

Imad Habash

EESignature

Kent1Cooper
Consultant
Consultant
Solución aceptada

@imadHabash wrote:

.... 

Command: -CH CHANGE
Select objects: Specify opposite corner: 2 found

Select objects: Specify change point or [Properties]: p
Enter property to change [Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/TRansparency/Material/Annotative]: la
Enter new layer name <varies>: 0

.... 


Or, save yourself one step, and use the CHPROP command, which is like a collapsing together of the CHANGE command and its Properties option.

Kent Cooper, AIA