From: John Stone (
Date: Tue Jan 06 2015 - 10:23:47 CST

  Actually, the current VMD per-atom bond limit is 12 for normal VMD builds.
You can change this limit arbitrarily by editing the definition of
MAXATOMBONDS at the top of Atom.h in the VMD source code. Why do you need
it set to 50, that is a very non-physical number of bonds for any use
of VMD I've previously heard of. Unless you have a multiple conformation
structure of some kind, I can't imagine why you'd need so many bonds.

  John Stone

On Tue, Jan 06, 2015 at 09:06:52PM +0530, Dhritiman Talukdar wrote:
> Hi,
> I need to load a large pdb file in VMD. when I try it VMD gives the
> following error:A
> MolAtom xxxx: Exceeded maximum number of bonds
> I have learned that the VMD provides space for 8 bonds per atom. This
> limit is coded into the program as a constant, but by a simple recompile,
> it canA
> be increased to an arbitrary number.A
> Can somebody please recompile VMD with a higher limit say 50 or so..
> I am using windows 7 32 bit OS.
> Thanking you in advance..
> Dhritiman Talukdar
> [1]
> References
> Visible links
> 1.

NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801           Phone: 217-244-3349