From: Maxim Belkin (mbelkin_at_ks.uiuc.edu)
Date: Mon Feb 08 2016 - 09:34:27 CST

set molnum [mol new]
..
mol delete $molnum

On 02/08/2016 09:02 AM, Irem Altan wrote:
> Hi,
>
> I am reading data into molecules via a .tcl script, and then I eventually remove them:
>
> mol new
> …
> mol delete 0
>
> Now if I want to read in an extra molecule, its number becomes 1, despite the fact that 0 doesn’t exist anymore. Is there a way for me to set the number to 0? If not, how can I check within my script automatically what the next number will be?
>
> Best,
> Irem