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

Sysvar "CETRANSPARENCY" does not set to "BYLAYER"with setvar

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
376 Views, 2 Replies

Sysvar "CETRANSPARENCY" does not set to "BYLAYER"with setvar

Hello all,

 

For AutoCAD 2012, I've attempted to use the following expression in a Lisp program:

(setvar  "CETRANSPARENCY"  "BYLAYER")

It returned the message: ; error: AutoCAD variable setting rejected: "CETRANSPARENCY" "BYLAYER"

 

This feels kind of strange, because I can set CETRANSPARENCY to BYLAYER by entering both words at the command line prompt. Is CETRANSPARENCY only valid as a command, perhaps?

 

With friendly greetings, M. Moolhuysen.

 

2 REPLIES 2
Message 2 of 3
Alfred.NESWADBA
in reply to: Anonymous

Hi,

 

Autodesk did a little bit mix and so setting the variable CETRANSPARENCY by a string-value ("BYLAYER") is not allowed in this case.

Instead you can do:

(setvar "CETRANSPARENCY" -1)

 

...and -2 stands for "BYBLOCK" 😉

 

 HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3
Anonymous
in reply to: Alfred.NESWADBA

Ah, I did try to set it to 256, as I remember that could mean "BYLAYER" in the old days....

256 doesn't work here, but -1 does. Much better, thank you. Unfortunately this bit of information is missing in the Help.

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

Post to forums  

Autodesk Design & Make Report

”Boost