<?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>Python Plaxis2D how to get the mesh node numbers</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/235989/python-plaxis2d-how-to-get-the-mesh-node-numbers</link><description>Hi all, 
 
 what is the command to get the mesh node numbers of a mesh in python? 
 
 EDIT: Actually I was refering to the total mesh node number (quantity of nodes). It was my fault I expressed myself wrong. 
 
 thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Python Plaxis2D how to get the mesh node numbers</title><link>https://communities.bentley.com/thread/733498?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 13:49:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d5b8520f-61d4-4224-9a5c-906ccd784b1d</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Yes! For all PLAXIS commands there are Python equivalents:&lt;/p&gt;
&lt;p&gt;You can directly translate the echo command but usually, in Python you would do:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nodes = g_i.Model.MeshStatus.NumberOfNodes&lt;br /&gt;print(nodes)&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python Plaxis2D how to get the mesh node numbers</title><link>https://communities.bentley.com/thread/733497?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 13:47:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a7db0fe9-fd5e-4449-b270-7e4491860a5d</guid><dc:creator>Falko Schmidt</dc:creator><description>&lt;p&gt;Ok, that works fine for the command line. Is there a python equivalent?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python Plaxis2D how to get the mesh node numbers</title><link>https://communities.bentley.com/thread/733483?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 12:44:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:98b2811e-b494-433b-a391-7a9d92539b70</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Hello Falko,&lt;/p&gt;
&lt;p&gt;I see. Indeed that is way off what I thought your question was about.&amp;nbsp;&lt;br /&gt;No worries, I have this one, too.&lt;/p&gt;
&lt;p&gt;They all belong to the Model, inside the MeshStatus object. Here are some nice examples of the information you can get:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;echo Model&amp;nbsp;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;echo Model.MeshStatus&lt;/em&gt;&lt;br /&gt;&lt;em&gt;echo Model.MeshStatus.NumberOfNodes&lt;/em&gt;&lt;br /&gt;&lt;em&gt;echo Model.MeshStatus.NumberOfElements&lt;/em&gt;&lt;br /&gt;&lt;em&gt;echo Model.MeshStatus.Status&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python Plaxis2D how to get the mesh node numbers</title><link>https://communities.bentley.com/thread/733480?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 12:39:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2a97efbd-6c62-4c86-908e-c0e160979dfb</guid><dc:creator>Falko Schmidt</dc:creator><description>&lt;p&gt;Thank You, I updated the answer. I was refering to the total mesh nodes generated by the&amp;nbsp;g_i.mesh(0.1) command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Python Plaxis2D how to get the mesh node numbers</title><link>https://communities.bentley.com/thread/733395?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 07:28:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:60effd4a-7669-4a87-85af-f84b9abd42c3</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Falko,&lt;/p&gt;
&lt;p&gt;You can find all the available properties of Output objects in our documentation: Help&amp;gt;Command reference&amp;gt;Output objects&amp;gt;Soil&lt;/p&gt;
&lt;p&gt;In principle, you can use the getresults command to retrieve the results and the property to query is the: NodeID&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343671/pastedimage1663918269908v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>