<?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>Plaxis 2D/3D commands: delete second points of multiple lines</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/200229/plaxis-2d-3d-commands-delete-second-points-of-multiple-lines</link><description>If I want to delete the second points of the selected line, the command line would be: 
 del line_1.second 
 If I want to apply the same command to a list of lines, how is it possible? would it be something like this? group_1 is a list of lines. 
 map</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Plaxis 2D/3D commands: delete second points of multiple lines</title><link>https://communities.bentley.com/thread/600929?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 08:53:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:03e33db4-6fcf-4336-a1cb-b5b8ea678e99</guid><dc:creator>Vuthy Lim</dc:creator><description>&lt;p&gt;Dear Stefanos,&lt;br /&gt;&lt;br /&gt;Thank you.&amp;nbsp;Appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plaxis 2D/3D commands: delete second points of multiple lines</title><link>https://communities.bentley.com/thread/598735?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 08:02:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3ec06920-41f5-491b-a85e-1d880449a40a</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Vuthy,&lt;/p&gt;
&lt;p&gt;A typical PLAXIS command follows the structure of:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;command target_object parameter&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;delete&lt;/em&gt; command is one of the global commands and it targets the global object of geometry every time it is used. That is why in this case, your approach gives this error. &lt;br /&gt;The global commands do not require specifying a target object that is why it can be skipped in the command line, e.g. the following are equivalent:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;delete Point_1&lt;/em&gt;&lt;br /&gt;&lt;em&gt;delete Geometry Point_1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can try the following command until you delete all the lines in &lt;em&gt;Group_1&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;delete Groups[-1][-1].Second&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;here &lt;em&gt;Groups[-1]&lt;/em&gt; is the lastly created group and &lt;em&gt;Groups[-1][-1]&lt;/em&gt; gets the last object (line) of this group.&lt;/p&gt;
&lt;p&gt;Another option is using Python with which you can make a nice for-loop:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;for line in g_i.Group_1:&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; g_i.delete(line.Second)&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>