<?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 Scripting - Pyside 2 Input Error</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/229172/plaxis-scripting---pyside-2-input-error</link><description>Hello folks 
 I am creating a gui-enabled script using Pyside2. My goal is to change the line length. The user will select the line to modify and enter the length. 
 
 However I&amp;#39;m getting &amp;quot;AttributeError: Requested attribute &amp;#39;Selected_Line&amp;#39; is not present</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Plaxis Scripting - Pyside 2 Input Error</title><link>https://communities.bentley.com/thread/709645?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 11:51:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:af18bfe7-a9f5-41e3-b4eb-5ceef0284bf7</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;I am glad!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plaxis Scripting - Pyside 2 Input Error</title><link>https://communities.bentley.com/thread/709572?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 20:41:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0e4dde51-30bc-4041-b910-b64ff0d5590c</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Dear Stefanos&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In order to keep my question simple, I did not want to add the all code. Even if my question is not clear, your answer gets the point across and solves my problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Plaxis Scripting - Pyside 2 Input Error</title><link>https://communities.bentley.com/thread/709497?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 13:56:27 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:28b556e8-c92c-4b75-a487-ae46cd8c0b5f</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear John,&lt;/p&gt;
&lt;p&gt;The Selected_Line is a variable you introduce so I do not expect it to exist on the &lt;em&gt;g_i&lt;/em&gt;, which is the variable that defines the PLAXIS API server.&lt;/p&gt;
&lt;p&gt;Unfortunately, the part of the code that you share is not enough for me to fully understand what you do and how you do it.&lt;/p&gt;
&lt;p&gt;In general, if you refer to a PLAXIS object, e.g. &lt;em&gt;Line_1&lt;/em&gt;, then you need to specify it as: &lt;em&gt;g_i.Line_1&lt;/em&gt;. But if you define a variable as follows:&lt;br /&gt;&lt;em&gt;selected_line = g_i.Line_1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;then, you can simply run:&lt;br /&gt;&lt;em&gt;selected_line.Second.y = line_length&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>