<?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/"><channel><title>Mishal Mohanlal's Communities Activities</title><link>https://communities.bentley.com/members/2639d79d_2d00_bb28_2d00_4e61_2d00_9865_2d00_69ead36f99f3</link><description>Recent activity for people in Mishal Mohanlal's community</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Beam intersection using OpenStaad</title><link>https://communities.bentley.com/products/ram-staad/f/ram-staad-forum/244927/beam-intersection-using-openstaad</link><pubDate>Fri, 05 May 2023 08:07:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c9f2d8cb-98c5-46ba-9901-9e17b5a6ad64</guid><dc:creator>Mishal Mohanlal</dc:creator><description>&lt;p&gt;Hi Guys&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am currently trying to use the IntersectBeams function to intersect a group of beams. The function however continually fails.&lt;/p&gt;
&lt;p&gt;Refer to the code below.&lt;/p&gt;
&lt;p&gt;Noting that if I use the modelling interface I am able to intersect the beams.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    nbr = []
    print(geometry.IntersectBeams(2,[100,101,102,103,104],0.1,nbr))
    print(nbr)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Inconsistent units</title><link>https://communities.bentley.com/products/ram-staad/f/ram-staad-forum/244923/inconsistent-units</link><pubDate>Fri, 05 May 2023 06:59:12 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:53c80f9e-2ef4-4dbb-b567-24a9fc22cb8d</guid><dc:creator>Mishal Mohanlal</dc:creator><description>&lt;p&gt;Hi Guys&lt;/p&gt;
&lt;p&gt;I am a new to Staad and only really using it through the API interface at the moment.&lt;/p&gt;
&lt;p&gt;I have applied a few point loads to a structure however the units are in kNm.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the cause of this issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/5932/pastedimage1683270014180v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Error when opening a new file using OpenStaad and python</title><link>https://communities.bentley.com/products/ram-staad/f/ram-staad-forum/244838/error-when-opening-a-new-file-using-openstaad-and-python</link><pubDate>Wed, 03 May 2023 12:45:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8ecb04da-5ec2-4543-96eb-a5beffdd04fc</guid><dc:creator>Mishal Mohanlal</dc:creator><description>&lt;p&gt;Hi Guys&lt;/p&gt;
&lt;p&gt;Using the NewSTAADFile function I am able to provide a location and file name for a new .STD file.&lt;/p&gt;
&lt;p&gt;For my current case I need to read a file name from excel and then add it to the path so that I have a file location and name to use with the NewSTAADFile function.&lt;/p&gt;
&lt;p&gt;This however does not work.&lt;/p&gt;
&lt;p&gt;Please refer to my code and the associated error below.&lt;/p&gt;
&lt;p&gt;I am using the Pathlib package to develop the path&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can someone please assist?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Loc = r&amp;quot;C:\Users\mishal.mohanlal\Aurecon Group\GDC ERM - General\1 - Projects\000000 - NE REZ substation automation\Python automation\Staad Pro models\\&amp;quot;
Fname = &amp;quot;MM&amp;quot; + &amp;quot;.STD&amp;quot;
File_Path = pathlib.PurePath(Loc,Fname)
print(File_Path)
os.NewSTAADFile(File_Path,4,5)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;***ERROR BELOW***&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;File &amp;quot;c:\Users\mishal.mohanlal\Aurecon Group\GDC ERM - General\1 - Projects\000000 - NE REZ substation automation\Python automation\Substation (R2).py&amp;quot;, line 44, in &amp;lt;module&amp;gt;&lt;br /&gt; os.NewSTAADFile(File_Path,4,5)&lt;br /&gt; File &amp;quot;&amp;lt;COMObject StaadPro.OpenSTAAD&amp;gt;&amp;quot;, line 2, in NewSTAADFile&lt;br /&gt;TypeError: must be real number, not PureWindowsPath&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://communities.bentley.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Tue, 02 May 2023 01:38:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2ef3a777-b716-44a8-92c9-5a6bc6965cf9</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Python not finding StaadPro.OpenSTAAD</title><link>https://communities.bentley.com/products/ram-staad/f/ram-staad-forum/244781/python-not-finding-staadpro-openstaad</link><pubDate>Tue, 02 May 2023 09:24:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:18b1b42d-1f46-4d98-9bc0-1c9e2ef06f71</guid><dc:creator>Mishal Mohanlal</dc:creator><description>&lt;p&gt;Hi Guys&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;OpenSTAAD was running last week and now for some reason I am having an issue with the &amp;quot;&lt;span&gt;os&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;win32com&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;client&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;GetActiveObject&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;StaadPro.OpenSTAAD&amp;quot;&lt;/span&gt;&lt;span&gt;)&amp;quot; command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get the error presented below. For some reason I think that STAAD cannot be found any longer.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Has anyone has a similar issue previously? Or knows how I ca resolve this issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; os = win32com.client.GetActiveObject(&amp;quot;StaadPro.OpenSTAAD&amp;quot;)&lt;br /&gt; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt; File &amp;quot;C:\Users\mishal.mohanlal\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32com\client\__init__.py&amp;quot;, line 93, in GetActiveObject&lt;br /&gt; resultCLSID = pywintypes.IID(Class)&lt;br /&gt; ^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt;pywintypes.com_error: (-2147221005, &amp;#39;Invalid class string&amp;#39;, None, None)&lt;br /&gt;PS C:\Users\mishal.mohanlal\Desktop&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>