Assign material by layer
I am working in autocad and use the file link manager to link my cad files. Since I use architectural objects, I need a script to assign materials to my layers.
I am trying this script without any luck.
$'*3D-concrete'.material = meditMaterials
$'*3D-glass'.material = meditMaterials
$'*3D-brick'.material = meditMaterials
What do I do wrong?