AutoCAD/Variable Settings

Advertisement


Question
QUESTION: I have a macro that you helped me with to create layers, however now for some reason I am getting the following error "AutoCAD variable setting rejected: "clayer" "G-PEO-ALL".

ANSWER: Jonathan, can you send me the contents of the macro, so I can evaluate?

Thanks

Sorry for the late response, I was away at a conference last week.

---------- FOLLOW-UP ----------

QUESTION: Not a problem Scott see below.

I place this in the CUI for the menu.
^C^C(setvar "clayer" "G-PEO-ALL")

Answer
I think the problem is you want to create a layer, but you are telling AutoCAD to make a layer current, but the layer does not exist in the drawing.

You may first need to either create the layer with a macro, or insert a dwg file with the layers defined in it.

This line will create the layer,simply add it before the line you sent me, and it should work.

^C^C(command "-layer" n layername )

Let me know if this works.

Scott

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott Wilcox

Expertise

I have been using AutoCAD since R11, and can answer questions regarding general AutoCAD, menus, toolbars, fonts, linetypes, plotting, CUI, Some Civil 3D

Experience

18 years AutoCAD user (R11- R2010), AUGI Moderator

Organizations
AUGI

Publications
CADALYST

Education/Credentials
Instructor @ Alberta School of Drafting

©2012 About.com, a part of The New York Times Company. All rights reserved.