Skip to content

Instantly share code, notes, and snippets.

@jmmauricio
Forked from pbetancourtp/DigSilent DPL
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save jmmauricio/afc494491b90ef55ab1f to your computer and use it in GitHub Desktop.

Select an option

Save jmmauricio/afc494491b90ef55ab1f to your computer and use it in GitHub Desktop.
set Sloads,BusBars,allBars,OldMons;
object Ldf;
double X;
object busbar,result;
string nombre;
allBars = AllRelevant('*.ElmTerm');
!Ldf = GetCaseCommand('ComLdf');
fopen('test.txt','w',0);
for (busbar=allBars.First(); busbar; busbar=allBars.Next()) {
result=busbar.GetNextHVBus();
busbar.GetVal(X,'m:u');
busbar.GetVal(nombre,'loc_name');
fprintf(0,'%s\t %2.4f',nombre, X);
}
fclose(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment