<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 22, 2012, at 2:06 PM, Kevin D. Walker wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I want to change the geometry of a selected atom by executing a command line script. I would like to proceed as follows:<br><br>1) select [atom-id] (this is the easy part)<br><br>...then I want to apply a script for the following interpretation<br><br>2) modify structure; set Element to 'C'; bonds to '4'; geometry to 'tetrahedral'<br><br>Is there a command script for this series?</div></blockquote><br></div><div>Well, there is no command version of this part of Build Structure. Nonetheless everything is doable by calling the underlying Python. I've attached a Python script that does exactly what you requested above. It's got some explanatory comments. You would definitely want to look through it before running it because it offers some options for how you want the modified atom named.</div><div><br></div><div>You would run the Python script from a regular command script with "open ~/c4.py" (assuming you named it c4.py and put it in your home directory).</div><div><br></div><div>--Eric</div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>Eric Pettersen</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>UCSF Computer Graphics Lab</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> </span><a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></p><br class="Apple-interchange-newline"></div></span> </div></body></html>