Attach material to layer by script or lisp or...?

Attach material to layer by script or lisp or...?

Anonymous
Not applicable
1,083 Views
3 Replies
Message 1 of 4

Attach material to layer by script or lisp or...?

Anonymous
Not applicable

With matbrowseropen and materialattach I can attach a material to a layer manually.

Is it possible to do this by script or lisp? that would be great!

 

Thanks

 

0 Likes
Accepted solutions (2)
1,084 Views
3 Replies
Replies (3)
Message 2 of 4

cadffm
Consultant
Consultant
Accepted solution

MATERIAL is one option of the LAYER command, so you can use command LAYER to set loaded materials to a layer.

 

(command "_.-LAYER" "_make" "TESTlayer" "_material" "Global" "TESTlayer" "")

 

Start -LAYER by hand and follow the commandline promts..

Sebastian

0 Likes
Message 3 of 4

Anonymous
Not applicable

Mat coumad

0 Likes
Message 4 of 4

Sea-Haven
Mentor
Mentor
Accepted solution

Remove the make part for layers that exist, note though "make" is forgiving nad will be ignored if exists.

 

(command "_.-LAYER" "_make" "TESTlayer" "_material" "Global" "TESTlayer" "")

0 Likes