From: Michail Palaiokostas Avramidis (
Date: Tue Feb 25 2014 - 12:35:11 CST


that solves the problem! Thank you very much for the prompt answer!

I have tried it but without the "package require nanotube" doesn't work

Thank you both of you for your time,
Best Regards,

From: Maxim Belkin <>
Sent: Tuesday, February 25, 2014 6:15 PM
To: Michail Palaiokostas Avramidis
Cc: vmd-l
Subject: Re: vmd-l: Nanostructure Plugin from TCL Script

Hi Michail,

Add the following command in the beginning of your graphene.tcl:

package require nanotube


On Feb 25, 2014, at 11:41 AM, Michail Palaiokostas Avramidis <> wrote:

> Hi all,
> I have a tcl script where I make a graphene sheet using the nanostructure builder plugin as:
> graphene -lx $lengthX -ly $lengthY -type armchair -nlayers 1 -b 1 -a 1 -d 1 -i 1
> When I run the script from the command line as:
> vmd -e graphene.tcl
> everything works as it should.
> However, when I suppress the VMD window as:
> vmd -e graphene.tcl -dispdev text
> I get the following error:
> invalid command name "graphene"
> Do you know why this happens? Probably I should load the plugin as a package but I cannot find anywhere what is the name of the package. Any ideas?
> Thank you in advance for your time,
> Kind Regards,
> Michalis Palaiokokostas
> ---------------------------------------------------------
> PhD Student
> Queen Mary, University of London
> School of Engineering and Materials Science
> ----------------------------------------------------------