thanks Rolf, the commands seem to be the right method for loading from a variable: 1)load DATA 2)load INLINE 3)Load "@jmol_variable"
I could not get a result by VB programming. load INLINE "1 C 1 1 1" loads an atom from the command input line. Is more information available ? especially for a multi-line input: what separator to use ? Michael Marden On 13/08/2014 17:20, Rolf Huehne wrote: > On 08/13/2014 04:37 PM, Michael Marden wrote: >> Is it possible LOAD a structure from a STRING ? >> I am using Visual Basic (VB) with a WebBrowser to allow Jmol to present >> the molecule. >> Bob Hanson helped me set up a nice system for 2-way communication VB <-> >> Jmol >> Java security is now making it difficult to load files from my local >> hard drive. >> >> I could Load the pdb files via VB code and convert that to a string >> variable A$. >> That would require a Jmol command of the type LoadFromString A$ >> Is this currently available ? if not, is it a reasonable request ? >> >> In fact I could imagine a calculated structure: rather than saving it >> to disk, it could be sent directly to Jmol. >> > The 'load' command has several options for this (see the scripting > documentation at > "http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm?ver=14.2#load"): > 1) load DATA > 2) load INLINE > 3) Load @jmol_variable > > I don't have tried any of them yet. So I can't share any experiences. > > Regards, > Rolf > ------------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

