<?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>Query about openstaad properties function</title><link>https://communities.bentley.com/products/ram-staad/f/ram-staad-forum/197514/query-about-openstaad-properties-function</link><description>Hello ppl, 
 I am trying to get beam geomerical properties (specifically width and depth) through Openstaad feature (specifically GetBeamProperty) and so far failing. 
 When i run the corresponding VBA code i get result as either &amp;quot;TRUE&amp;quot; or &amp;quot;1&amp;quot; or not</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Query about openstaad properties function</title><link>https://communities.bentley.com/thread/677778?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 05:26:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c134cedb-ca33-4da5-a8e7-4ad1ca22d44b</guid><dc:creator>SWAIRATH GHOSH</dc:creator><description>&lt;p&gt;How to print those values in excel ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query about openstaad properties function</title><link>https://communities.bentley.com/thread/594416?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 09:04:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e8b4adb1-1da7-49c2-a18c-b08fab412ec9</guid><dc:creator>Samarth. S</dc:creator><description>&lt;p&gt;Thank you for your reply Mr.Ghosh. I found&amp;nbsp; a couple of days after posting above question in this forum, that it could be solved by correcting the variable declaration....as you yourself have mentioned in your reply.....thanks for your help, once again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query about openstaad properties function</title><link>https://communities.bentley.com/thread/593900?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 13:41:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:563397f8-34a9-4259-8e7e-5f83c115feb5</guid><dc:creator>Surojit Ghosh</dc:creator><description>&lt;p&gt;I am not sure what value you want to extract as pro(i) returns the execution status of the function only, not the property values. Now&amp;nbsp;about your code, all the property values are extracted as 0 as the variable types are mentioned incorrectly. The following line indicates that you have defined pro() array as double, rest of the variables are not defined.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;Dim Width, Depth, Ax, Ay, Az, Ix, Iy, Iz, pro(0 To 7) As Double&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This should be modified as --&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Dim Width As Double, Depth As Double, Ax As Double, Ay As Double, Az As Double, Ix As Double, Iy As Double, Iz As Double, pro(0 To 7) As Double&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Also I am not sure why you introduce a loop with same beam number. I have tested the following macro which works fine --&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Dim BeamNo As Long&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Dim Width As Double, Depth As Double, Ax As Double, Ay As Double, Az As Double, Ix As Double, Iy As Double, Iz As Double&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Dim p As Long&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Set objOpenSTAAD = GetObject(, &amp;quot;StaadPro.OpenSTAAD&amp;quot;)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;BeamNo = 1&lt;/em&gt;&lt;br /&gt;&lt;em&gt;p = objOpenSTAAD.Property.GetBeamProperty(BeamNo, Width, Depth, Ax, Ay, Az, Ix, Iy, Iz)&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>