Most techs know that scripts is usually my first choice for a lot of things. if you haven't used them, your missing a very powerful tool.. here is one that i built, like most of my scripts, for a single project. Now i use it almost every week. anytime you have a list of tn's you need to print, if the switch will give you a list, this script will print it. when i prt an acd group, or ld 81, lst by feature etc.. i grab that list, usually open it in excel, delete the unused columns, save it as a tab delimited and paste that into the aspect editor...
needed this yesterday because of a pick up group that was broke due to 10 years of using the copy command.. it had about 110 members is 6 buildings.. so i needed to make a change on each of those sets.. analogs was just a simple change script, but for the digitals i ran this script, captured that then used pepedog's excel macro to put that in columns, that gave me set type and tn, that allowed me to make those changes via another simple script..
to get started if your new to aspect, record a simple change on a set, alt back bracket, make the change, alt backbracket and give it a name... the alt f3 to open the editor, highlight your file then click edit, double click don't work... just delete the line waitfor "TN " and the following line transmit "4 0 0 0^M" and after the nextline, add forever... that means that the script will waitfor that line until it sees it, no timeout and your not rushed...
give it a try, like i've said, it's a great tools for us non typing lazy people
john poole
bellsouth business
columbia,sc
Code:
Proc main
string tn
integer count
string szline
fopen 0 "tnb.wud" read
while not feof 0
SZLINE = "1"
fgets 0 szline
strtok tn szline "t" 1
set txpace 50
capture on
transmit "prt^M"
waitfor "TYPE: "
transmit "tnb^M"
pause 1
transmit tn
transmit "^M"
waitfor "DATE "
transmit "^M"
waitfor "PAGE "
transmit "^M"
waitfor "DES "
transmit "^M"
waitfor "NACT "
transmit "^M"
waitfor "REQ: "
count += 1
endwhile
fclose 0
fclose 1
call main
capture off
endproc
needed this yesterday because of a pick up group that was broke due to 10 years of using the copy command.. it had about 110 members is 6 buildings.. so i needed to make a change on each of those sets.. analogs was just a simple change script, but for the digitals i ran this script, captured that then used pepedog's excel macro to put that in columns, that gave me set type and tn, that allowed me to make those changes via another simple script..
to get started if your new to aspect, record a simple change on a set, alt back bracket, make the change, alt backbracket and give it a name... the alt f3 to open the editor, highlight your file then click edit, double click don't work... just delete the line waitfor "TN " and the following line transmit "4 0 0 0^M" and after the nextline, add forever... that means that the script will waitfor that line until it sees it, no timeout and your not rushed...
give it a try, like i've said, it's a great tools for us non typing lazy people
john poole
bellsouth business
columbia,sc