<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Script examples to create sheets and boxes of atoms]]></title><description><![CDATA[<p dir="auto">I'm posting these in-case they are helpful to anyone else. They were helpful to me in learning more about writing scripts inPython for SAMSON. The first script create_lonsdaleite_XY.py takes a set of atom coordinates (called the moiety_list) to create a structural group. It then replicates that group over and over while adding  them to the structural model to make a sheet. <a href="/assets/uploads/files/1677241057416-create_lonsdaleite_xy.py">create_lonsdaleite_XY.py</a></p>
<p dir="auto">The second creates a 3D box by adding atoms to the structural model directly. It is the more elegant solution and was given to me by Dmitriy.</p>
<p dir="auto"><a href="/assets/uploads/files/1677241240553-create_lonsdaleite_xyz_atoms.py">create_lonsdaleite_XYZ_atoms.py</a></p>
<p dir="auto">Hope these are helpful to anyone, and I hopefully more to follow!</p>
<p dir="auto">Tom</p>
]]></description><link>https://forum.samson-connect.net/topic/205/script-examples-to-create-sheets-and-boxes-of-atoms</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 18:24:21 GMT</lastBuildDate><atom:link href="https://forum.samson-connect.net/topic/205.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Feb 2023 12:23:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script examples to create sheets and boxes of atoms on Mon, 27 Feb 2023 07:15:37 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Tom!</p>
]]></description><link>https://forum.samson-connect.net/post/1014</link><guid isPermaLink="true">https://forum.samson-connect.net/post/1014</guid><dc:creator><![CDATA[DmitriyMarin]]></dc:creator><pubDate>Mon, 27 Feb 2023 07:15:37 GMT</pubDate></item></channel></rss>