The -layer does not work properly as custom button command

The -layer does not work properly as custom button command

Orest_iy
Collaborator Collaborator
702 Views
2 Replies
Message 1 of 3

The -layer does not work properly as custom button command

Orest_iy
Collaborator
Collaborator

Hello

I would like to create the custom button to turn the certain layer off.

The layer name is Visible (ISO). It has a space between two words.

If I do the -Layer from command line it works.

But the button macro perceives the space as enter and returns an error, see picture attached.

^C^C-layer;off;visible (iso);

Other custom buttons comands perceives the same layer name as one word.

Please advise how to turn off the Layer.

Best regards,

Orest Yavtushenko

0 Likes
Accepted solutions (1)
703 Views
2 Replies
Replies (2)
Message 2 of 3

Sridhar-Autodesk
Autodesk
Autodesk

Hi Orest,

 

Please use the macro for the new toolbar command as (Command "_.layer" "_OFF" "Visible (ISO)" "")

 

Let me know if this helps

 

Thanks,

 

Please select the Accept as Solution button if my post solves your issue or answers your question.



Sridhar Subramani

Senior Product Owner

Message 3 of 3

Orest_iy
Collaborator
Collaborator
Accepted solution

Yes

Quotation marks for space content names is the solution.

Thank you.

Orest

 

0 Likes