TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dussla on June 18, 2020, 11:40:27 AM
-
hi frends ,
pls i need some help again sorry ~
this code is to send layer based on object's color
but This does not work for hatch objects and bylayer object
how can i do that ?
;
(if (and (> col
0)(< col
256)) (command "_LAYER" "_N" lay
"_C" col lay
"") )
(command "_CHPROP" hnd
"" "_LA" lay
"_C" "BYLAYER" "") )
)
)
)
)
)
;
)
EDIT (John): Added code tags.
-
Here's a quickie:
(defun c:foo
(/ c e l n s
) ;; RJP » 2020-06-18
)
)
)
)
)
)
)
-
Here's a quickie:
(defun c:foo
(/ c e l n s
) ;; RJP » 2020-06-18
)
)
)
)
)
)
)
wow wow wow perpect
simple code
always thank you ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
thank you again ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
Glad to help :)