<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Assiging material to a soil volume</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/202045/assiging-material-to-a-soil-volume</link><description>Hello, 
 
 I am using python scripting to atomize the calculation for a seepage analyses. I imported the soil volume in the structure part using the following python lines: 
 
 Volume_1=g_i.import_(&amp;quot;structurevolume&amp;quot;, r&amp;quot;\\Sestofs010\projekt\25465\13_BERA</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Assiging material to a soil volume</title><link>https://communities.bentley.com/thread/607496?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 15:11:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:582dd14b-766c-4c0c-afdb-ebe95a057df0</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Rey,&lt;/p&gt;
&lt;p&gt;When importing a single volume, the command line reports the following:&lt;br /&gt;&lt;em&gt;Added Volume_1&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Added Soil_1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This means that when importing a volume object, PLAXIS creates two objects, the volume itself and the soil that belongs to it.&lt;/p&gt;
&lt;p&gt;In your code, the &lt;em&gt;g_i.import&lt;/em&gt; command is assigned to a single variable that will point to volume and not the soil. Therefore, assigning a material to the volume will not work as the material is a property of a soil object.&lt;/p&gt;
&lt;p&gt;Try the following:&lt;/p&gt;
&lt;p&gt;volume_1, soil_1 = g_i.import_(&amp;quot;structurevolume&amp;quot;, r&amp;quot;\\Sestofs010\projekt\25465\13_BERA\PLAXIS-3D\Reyhaneh_test_standpipes\Drawing4_milimtere.dxf&amp;quot;)&lt;br /&gt;g_i.setmaterial(soil_1, Material3)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>