<?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>OpenSTAAD | OSLoadUI::CreateLoadEnvelop is not working properly</title><link>https://communities.bentley.com/products/ram-staad/f/ram-staad-forum/223720/openstaad-osloadui-createloadenvelop-is-not-working-properly</link><description>I&amp;#39;m using STAAD.Pro Script Editor and OpenSTAAD library to generate a structural model. 
 Unfortunately,t he OpenSTAAD function (OSLoadUI::CreateLoadEnvelop) that should allow creating load envelopes is not working properly. 
 Question: Is Bentley Software</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: OpenSTAAD | OSLoadUI::CreateLoadEnvelop is not working properly</title><link>https://communities.bentley.com/thread/688801?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 16:19:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ef844f6c-c396-4d5a-b9fa-85ebc77cca0b</guid><dc:creator>Denisson Cruz</dc:creator><description>&lt;p&gt;After testing the code, OpenSTAAD function only creates the envelopes by typing the function as objOpenSTAAD.Load.&lt;strong&gt;CreateLoadEnvelop&lt;/strong&gt;(&lt;em&gt;varEnvNo&lt;/em&gt;, &lt;em&gt;varEnvType&lt;/em&gt;, &lt;em&gt;varLoadCaseList&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;However, OpenSTAAD.Load.CreateLoadEnvelop is not assigning properly &lt;em&gt;varLoadCaseList &lt;/em&gt;parameter. The only solution for this to work is by using the OpenSTAAD funtion&amp;nbsp;&lt;span&gt;Load.AddLoadCasesToEnvelop. See code solution below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--EndFragment --&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Dim objOpenSTAAD As Object&lt;br /&gt;&amp;#39;Get the application object&lt;br /&gt;Set objOpenSTAAD = GetObject( , &amp;quot;StaadPro.OpenSTAAD&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;#39;WinWrap language (VBA)&lt;/p&gt;
&lt;p&gt;&amp;#39;Array for Load Cases&lt;br /&gt;Dim varLoadCaseList1(5) As Variant&lt;/p&gt;
&lt;p&gt;varLoadCaseList1(0) = 25&lt;br /&gt;varLoadCaseList1(1) = 26&lt;br /&gt;varLoadCaseList1(2) = 27&lt;br /&gt;varLoadCaseList1(3) = 28&lt;br /&gt;varLoadCaseList1(4) = 29&lt;br /&gt;varLoadCaseList1(5) = 30&lt;/p&gt;
&lt;p&gt;&amp;#39;Add a list of primary load case(s) into #1 load envelop (type of STRESS).&lt;br /&gt;objOpenSTAAD.Load.&lt;strong&gt;CreateLoadEnvelop&lt;/strong&gt;(1, 1, varLoadCaseList1(&lt;strong&gt;0&lt;/strong&gt;))&lt;/p&gt;
&lt;p&gt;&lt;!--StartFragment --&gt;&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;        For i = 0 To 5
            objSTAADGUI.Load.AddLoadCasesToEnvelop(1, varLoadCaseList1(i))
        Next&lt;/strong&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--EndFragment --&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenSTAAD | OSLoadUI::CreateLoadEnvelop is not working properly</title><link>https://communities.bentley.com/thread/688428?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 13:06:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cdee5cae-0855-4073-ad22-b38ba1ba8e6d</guid><dc:creator>Denisson Cruz</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;Yes, the algorithm has the&amp;nbsp;&lt;span&gt;first line (i.e. Set objOpenSTAAD = GetObject( , &amp;quot;StaadPro.OpenSTAAD&amp;quot;)). I am only showing a portion of the code.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenSTAAD | OSLoadUI::CreateLoadEnvelop is not working properly</title><link>https://communities.bentley.com/thread/688350?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 06:05:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3581b215-fc18-4ffc-bb50-043b0a3172ef</guid><dc:creator>Technical@reisoftwareth.com</dc:creator><description>&lt;p&gt;Did you try to define Openstaad function in the first line and use the same parameter to be the operation, for example&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dim objOpenSTAAD As Object&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#39;Get the application object&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Set objOpenSTAAD = GetObject( , &amp;quot;StaadPro.OpenSTAAD&amp;quot;)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;#39;WinWrap language (VBA)&lt;/p&gt;
&lt;p&gt;&amp;#39;Array for Load Cases&lt;br /&gt; Dim varLoadCaseList1(5) As Variant&lt;/p&gt;
&lt;p&gt;varLoadCaseList1(0) = 25&lt;br /&gt; varLoadCaseList1(1) = 26&lt;br /&gt; varLoadCaseList1(2) = 27&lt;br /&gt; varLoadCaseList1(3) = 28&lt;br /&gt; varLoadCaseList1(4) = 29&lt;br /&gt; varLoadCaseList1(5) = 30&lt;/p&gt;
&lt;p&gt;&amp;#39;Add a list of primary load case(s) into #1 load envelop (type of STRESS).&lt;br /&gt;&lt;strong&gt;objOpenSTAAD.Load&lt;/strong&gt;.CraeteLoadEnvelop(1, 1, varLoadCaseList1())&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>