i wrote this script to change a block to another layer, freeze that layer and set it to no plot but it isnt working does anyone see why?
;;SCRIPT TO SUBSTITUTE A BLOCK and CHANGES ITS LAYER, FREEZE AND SET TO NO PLOT
;;THE SOURCE BLOCK MAY EXIST IN MANY
;;PLACES IN THE DRAWING, ALL INSTANCES
;;WILL BE REPLACED.
;;BY TED EVANS 7-22-21
;;
ATTDIA 0
ATTREQ 0
_-Layer
_set 0
(command"_.chprop"(ssget"_X"'((2."soffit_vent"))); "" "_layer" "A-roof-vent" "")
-INSERT
"sofit_vent=s:\cad\projects\autocad\configuration\ blocks\arch\soffit_vent"
0,0,0
1
0
ERASE l
(SETQ en (ENTLAST))
-LAYER
p
n
*a-roof-vent
s 0 f "*a-roof-vent"
zoom
e
ATTDIA 1
ATTREQ 1
;END ------------------------
Try asking at: https://www.cadtutor.net/forum/forum...cripts-macros/
Im intelligent enough to know that I dont know everything; but I'll tell you all about it anyway.