On Fri, Dec 20, 2013 at 6:55 PM, Whitwell, George <gwhitw...@ncwc.edu>wrote:
> Hello again,
>
>
>
> The following script:
>
>
>
> modcnt = getproperty("modelinfo.modelcount") // modcnt=6
>
> gmsmodel = "{1.".add(@modcnt).add("}")
>
> //gmsmodel = {1.6}
>
So that could be just "{1." + modcnt + "}"
> print gmsmodel
>
> print (@gmsmodel).label("%-3[element]%4.0[elemno]%13.6[xyz]")
>
>
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.
>
>
modcnt = getproperty("modelinfo.modelcount")
print @{model=modelcnt}.label......
or
modcnt = {*}[0].modelIndex + 1
print @{model=modelcnt}.label......
Because {*}[0] is "the last atom" and {*}[0].modelIndex is the last atom's
model index, which must be one less than the model count.
>
> 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
>
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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