Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

passing a string as a variable

$
0
0

Hi All,

 

I would like to use a string as a variable if this is possible. I've got:

 

new-pl-lay (as a variable that holds layer name "UGL_PL_NEW")

first-cable (as a string that holds "new-pl-lay")

 

I'd like set the current layer to "UGL_PL_NEW" by using the first-cable string.

 

Something like:

(command "_.layer" "m" (read first-cable) "")

 

Is this possible?

 

Thanks

John

 

 


Viewing all articles
Browse latest Browse all 14319

Trending Articles