(following "File Paths .." of Aug 14)
Reminder, I am using Visual Basic to construct a string variable
JmolStr1, which is then sent to a WebBrowser running Jmol:
WebBrowser3.Document.parentWindow.execScript "jmolScript(' " + JmolStr1
+ " ')"
This works well for loading and “decorating” proteins. Tests and
calculations are done in VB, and the results displayed in Jmol. Due to
recent restrictions of Java, I would like to load the pdb files INLINE.
Attempting to load atoms inline:
This works:
load INLINE " 1 C 1 1 1" using JmolStr1 = "load INLINE " & Chr$(34) &
"1 C 1 1 1" & Chr$(34)
this format with several atoms also works:
Load data "model example" |2| testing |C 1 1 1| O 2 2 2| end "model
example";show data
However, no luck if I replace the coordinate lines with pdb lines:
ATOM 1 N VAL M 1 -0.686 14.852 16.090 1.00
0.00 N
No atoms are shown. If I click on “show” / “file contents”, the
information is there. So it would seem to be a problem of interpretation.
Do I need to explicitly say it is a pdb file ?
Also: nagging runtime error 80020101 on start-up:
Line : 424, Char.: 19, Error: java.lang.NullPointException
Code: 0, URL : file:/// . . . Jmol.js
That would seem to refer to:
function jmolScript(script, targetSuffix) {
. .
if (applet) applet.script(script); line 424
maybe I need a better start-up htm ?
<html> <head> <script type="text/javascript" src="Jmol.js"></script>
<title>JmolinVB</title> </head>
<body> <script type="text/javascript">
jmolApplet(0.99), jmolBr(), jmolCommandInput()
</script> </body> </html>
The error may occur several times, but once the molecule finally
appears, there is no further problem to switch (load) to other molecules.
thanks,
Michael Marden
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users