Use

data "APPEND

not

data "MODEL

if you want to append the atom, which you do.


On Fri, Nov 19, 2010 at 11:40 AM, pieremanuele canepa <[email protected]>wrote:

> What ?
>
> On Fri, Nov 19, 2010 at 5:38 PM, P.Canepa <[email protected]> wrote:
>
>>
>> -------------------------------------------
>> From: Robert Hanson[SMTP:[email protected] <smtp%[email protected]>]
>> Sent: Friday, November 19, 2010 5:38:41 PM
>> To: [email protected]
>> Subject: Re: [Jmol-users] Add new atom to an existing structure
>> Auto forwarded by a Rule data "append....
>>
>>
>> On Fri, Nov 19, 2010 at 10:30 AM, pieremanuele canepa 
>> <[email protected]>wrote:
>>
>>>
>>> Dear all,
>>>
>>> When I try to add this atom to a structure, the atom appears but the rest
>>> of the structure goes away. What am I doing wrong?
>>>
>>>            var atomString =  "1\n\n" + type + " " + parseFloat(x) + " " +
>>> parseFloat(y) + " " + parseFloat(z);
>>>             jmolScript('set appendNew FALSE; DATA "model"'  +  atomString
>>> + ' end "model"; ');
>>>
>>> What does  the 1 before the \n\n represent?
>>>
>>> Is in Jmol any simple way  to add atoms ?
>>>
>>> Thanks, Piero
>>>
>>> --
>>> *Please consider the environment before printing this e-mail.*
>>> **
>>> Pieremanuele Canepa
>>> Room 104
>>> Functional Material Group
>>> School of Physical Sciences, Ingram Building,
>>> University of Kent, Canterbury, Kent,
>>> CT2 7NH
>>> United Kingdom
>>>
>>> e-mail: [email protected]
>>> mobile: +44 (0) 7772-9756456
>>> -----------------------------------------------------------
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Beautiful is writing same markup. Internet Explorer 9 supports
>>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>>> Spend less time writing and  rewriting code and more time creating great
>>> experiences on the web. Be a part of the beta today
>>> http://p.sf.net/sfu/msIE9-sfdev2dev
>>> _______________________________________________
>>> Jmol-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>
>>>
>>
>>
>> --
>> Robert M. Hanson
>> Professor of Chemistry
>> St. Olaf College
>> 1520 St. Olaf Ave.
>> Northfield, MN 55057
>> http://www.stolaf.edu/people/hansonr
>> phone: 507-786-3107
>>
>>
>> If nature does not answer first what we want,
>> it is better to take what answer we get.
>>
>> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>>
>
>
>
> --
> *Please consider the environment before printing this e-mail.*
> **
> Pieremanuele Canepa
> Room 104
> Functional Material Group
> School of Physical Sciences, Ingram Building,
> University of Kent, Canterbury, Kent,
> CT2 7NH
> United Kingdom
>
> e-mail: [email protected]
> mobile: +44 (0) 7772-9756456
> -----------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to