Hello again,
The following script:
modcnt = getproperty("modelinfo.modelcount") // modcnt=6
gmsmodel = "{1.".add(@modcnt).add("}")
//gmsmodel = {1.6}
print gmsmodel
print (@gmsmodel).label("%-3[element]%4.0[elemno]%13.6[xyz]")
produces the following output
$ writeout.spt ============== as shown
{1.6}
%-3[element]%4.0[elemno]%13.6[xyz]
$
$ writeout.spt =============== comment slashes removed
({80:95})
C 6 0.037110 0.032169 0.057936
C 6 0.848307 0.969487 0.949844
C 6 -0.809893 -0.932716 0.902498
C 6 -0.848769 0.826668 -0.897939
C 6 -0.000797 -1.853706 1.745571
H 1 0.734175 -0.571283 -0.535131
H 1 1.471002 1.639365 0.353810
H 1 1.495709 0.411640 1.628670
H 1 0.177605 1.585119 1.556567
H 1 -1.409513 0.167122 -1.563273
H 1 -0.255289 1.505283 -1.513384
H 1 -1.568576 1.428679 -0.336108
H 1 -1.448598 -1.513719 0.219705
H 1 -1.493306 -0.348696 1.528223
H 1 0.862324 -2.351513 1.323178
H 1 -0.332452 -2.165397 2.724792
$
Clearly, in the commented line, gmsmodel is recognized as an atom expression,
while the first is merely a string that looks like one. How can I construct an
atom expression for the last model in any file? Probably something simple;
still, I've tried a lot of variations.
Thanks,
George
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users