'START OF MACRO...
'Macro to change entity layer, by Lar and PRL.
'Last edited 4/May/1998
'NOTE- the number in brackets in the next line can be changed to cover
more (or less) entities...
dim ent(200)
'Program m2.d3m
'version 14 command line version
dim entlist(1000)
if sys(80)=0 then
Message "Nothing selected. . . press any key to continue"
END
end if
layy$=sys$(0)
if layy$ = "" then input "Enter layer number: ", layy$
dest = val(layy$)
nsel = sys(80)
for j = 1 to nsel
getselect j, entlist(j)
next j
sys(80)=0
for j = 1 to nsel
getattr entlist(j), type, select, laynum
putattr entlist(j), type, 0, dest
next j
regen
END
|