<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API - CREATE DIMENSIONING GROUPS in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5591197#M66418</link>
    <description>&lt;P&gt;HI Rafal,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, I don't want to report them, but the calculation of ratio debug when the first warning it appear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub GetRatioFromRobot()&lt;BR /&gt;'&lt;BR /&gt;'&lt;BR /&gt;Dim UlsLoadCase As Integer&lt;BR /&gt;Dim RobApp As IRobotApplication&lt;BR /&gt;Set RobApp = New RobotApplication&lt;BR /&gt; 'Get the collection of all bars from the structure.&lt;BR /&gt; '&lt;BR /&gt; 'Declare and create the object giving access to standard section parameters.&lt;BR /&gt;'&lt;BR /&gt;Set bar_col = RobApp.Project.Structure.Bars.GetAll()&lt;BR /&gt;UlsLoadCase = InputBox("INSERISCI IL NUMERO DI COMBINAZIONE SLU IN ROBOT")&lt;BR /&gt; 'Iterate for consecutive bars from the collection.&lt;BR /&gt; &lt;BR /&gt;For I = 1 To bar_col.Count&lt;/P&gt;
&lt;P&gt;'Dim RobApp As RobotApplication&lt;BR /&gt; 'Set RobApp = New RobotApplication&lt;BR /&gt; &lt;BR /&gt; Dim RDMServer As IRDimServer&lt;BR /&gt; Set RDMServer = RobApp.Kernel.GetExtension("RDimServer")&lt;BR /&gt; RDMServer.Mode = I_DSM_STEEL&lt;BR /&gt; &lt;BR /&gt; Dim RDmEngine As IRDimCalcEngine&lt;BR /&gt; Set RDmEngine = RDMServer.CalculEngine&lt;BR /&gt; &lt;BR /&gt; 'the part below is optional if you want to set caclulation parameters by the code&lt;BR /&gt; &lt;BR /&gt; Dim RDmCalPar As IRDimCalcParam&lt;BR /&gt; Dim RDmCalCnf As IRDimCalcConf&lt;BR /&gt; &lt;BR /&gt; Set RDmCalPar = RDmEngine.GetCalcParam&lt;BR /&gt; Set RDmCalCnf = RDmEngine.GetCalcConf&lt;/P&gt;
&lt;P&gt;Dim RdmStream As IRDimStream 'Data stream for setting parameters&lt;BR /&gt; Set RdmStream = RDMServer.Connection.GetStream&lt;BR /&gt; RdmStream.Clear&lt;/P&gt;
&lt;P&gt;'Calculate results for all sections&lt;BR /&gt; RdmStream.WriteText ("all") ' member(s) selection&lt;BR /&gt; RDmCalPar.SetObjsList I_DCPVT_MEMBERS_VERIF, RdmStream 'members verification&lt;BR /&gt; RDmCalPar.SetLimitState I_DCPLST_ULTIMATE, 1&lt;BR /&gt; RdmStream.Clear&lt;BR /&gt; RdmStream.WriteText (UlsLoadCase) 'Set Load Case(s)&lt;BR /&gt; RDmCalPar.SetLoadsList RdmStream&lt;/P&gt;
&lt;P&gt;RDmEngine.SetCalcConf RDmCalCnf&lt;BR /&gt; RDmEngine.SetCalcParam RDmCalPar&lt;BR /&gt; &lt;BR /&gt; 'end of calclulation parameter settings&lt;BR /&gt; &lt;BR /&gt; RDmEngine.Solve Nothing&lt;/P&gt;
&lt;P&gt;Dim RDmDetRes As IRDimDetailedRes&lt;BR /&gt; Dim RDMAllRes As IRDimAllRes&lt;/P&gt;
&lt;P&gt;Set RDMAllRes = RDmEngine.Results&lt;BR /&gt; Set RDmDetRes = RDMAllRes.Get(I)&lt;BR /&gt; &lt;BR /&gt; Range("e" &amp;amp; I + 1) = RDmDetRes.Ratio&lt;BR /&gt; &lt;BR /&gt;Next&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and attache you can find the file that give the warnings&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2015 12:03:06 GMT</pubDate>
    <dc:creator>StefanoPasquini6790</dc:creator>
    <dc:date>2015-04-14T12:03:06Z</dc:date>
    <item>
      <title>API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588355#M66410</link>
      <description>&lt;P&gt;Good morning at all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm writing a Macro to generate steel dimensioning bar groups via API in excel VBA (I'm not really expert programmer), I can't find the right way to my program code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone correct my code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more issues, I have to extract from the opened Robot model this data for bars:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Section Label;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Bar Type;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) ULS Design Ratio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached you can find the source code and the reference excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for my basic questions....&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance, greetings&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 09:46:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588355#M66410</guid>
      <dc:creator>StefanoPasquini6790</dc:creator>
      <dc:date>2015-04-13T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588391#M66411</link>
      <description>&lt;P&gt;Example attached&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 10:16:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588391#M66411</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2015-04-13T10:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588396#M66412</link>
      <description>&lt;P&gt;Mind that to get steel design ratio you have to run steel design by macro \ API&lt;/P&gt;
&lt;P&gt;Example attached.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 10:22:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588396#M66412</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2015-04-13T10:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588430#M66413</link>
      <description>&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim Bar As RobotBar
Dim Sec As RobotBarSection
Dim MTLabel As RobotLabel
Dim BarCol As RobotBarCollection

Set BarCol = RobApp.Project.Structure.Bars.GetAll


For i = 1 To BarCol.Count
    
    Set Bar = BarCol.Get(i)

    Set Sec = Bar.GetLabel(I_LT_BAR_SECTION)
    Set MTLabel = Bar.GetLabel(I_LT_MEMBER_TYPE)

    Cells((7 + i), 1) = Bar.Number
    Cells((7 + i), 2) = Sec.Name
    Cells((7 + i), 3) = MTLabel.Name
    
Next i&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 10:35:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5588430#M66413</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2015-04-13T10:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5589446#M66414</link>
      <description>&lt;P&gt;Sorry,&lt;/P&gt;
&lt;P&gt;one more question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have in the model some bars with no dimesioning rule assigned, the MACRO debug:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/163529iE6B4853A157952D9/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Cattura.JPG" title="Cattura.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I tell to the macro to "jump" to the next element? With a simple cicle (the green one) I have no results....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5589446#M66414</guid>
      <dc:creator>StefanoPasquini6790</dc:creator>
      <dc:date>2015-04-13T15:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5589655#M66415</link>
      <description>&lt;PRE&gt;If Not Bar.HasLabel(I_LT_MEMBER_TYPE) Then GoTo 10&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:47:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5589655#M66415</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2015-04-13T17:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5590978#M66416</link>
      <description>&lt;P&gt;Good MOrning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more issue, if I have in the model some bars that in dimensioning phase have some warning (for example thin walled sections, or any other kind of warnings...) the macro of Dim Ratio debug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can avoid this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 09:50:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5590978#M66416</guid>
      <dc:creator>StefanoPasquini6790</dc:creator>
      <dc:date>2015-04-14T09:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5591095#M66417</link>
      <description>Do you want to report them ? They do not block design calculations.</description>
      <pubDate>Tue, 14 Apr 2015 10:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5591095#M66417</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2015-04-14T10:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5591197#M66418</link>
      <description>&lt;P&gt;HI Rafal,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, I don't want to report them, but the calculation of ratio debug when the first warning it appear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub GetRatioFromRobot()&lt;BR /&gt;'&lt;BR /&gt;'&lt;BR /&gt;Dim UlsLoadCase As Integer&lt;BR /&gt;Dim RobApp As IRobotApplication&lt;BR /&gt;Set RobApp = New RobotApplication&lt;BR /&gt; 'Get the collection of all bars from the structure.&lt;BR /&gt; '&lt;BR /&gt; 'Declare and create the object giving access to standard section parameters.&lt;BR /&gt;'&lt;BR /&gt;Set bar_col = RobApp.Project.Structure.Bars.GetAll()&lt;BR /&gt;UlsLoadCase = InputBox("INSERISCI IL NUMERO DI COMBINAZIONE SLU IN ROBOT")&lt;BR /&gt; 'Iterate for consecutive bars from the collection.&lt;BR /&gt; &lt;BR /&gt;For I = 1 To bar_col.Count&lt;/P&gt;
&lt;P&gt;'Dim RobApp As RobotApplication&lt;BR /&gt; 'Set RobApp = New RobotApplication&lt;BR /&gt; &lt;BR /&gt; Dim RDMServer As IRDimServer&lt;BR /&gt; Set RDMServer = RobApp.Kernel.GetExtension("RDimServer")&lt;BR /&gt; RDMServer.Mode = I_DSM_STEEL&lt;BR /&gt; &lt;BR /&gt; Dim RDmEngine As IRDimCalcEngine&lt;BR /&gt; Set RDmEngine = RDMServer.CalculEngine&lt;BR /&gt; &lt;BR /&gt; 'the part below is optional if you want to set caclulation parameters by the code&lt;BR /&gt; &lt;BR /&gt; Dim RDmCalPar As IRDimCalcParam&lt;BR /&gt; Dim RDmCalCnf As IRDimCalcConf&lt;BR /&gt; &lt;BR /&gt; Set RDmCalPar = RDmEngine.GetCalcParam&lt;BR /&gt; Set RDmCalCnf = RDmEngine.GetCalcConf&lt;/P&gt;
&lt;P&gt;Dim RdmStream As IRDimStream 'Data stream for setting parameters&lt;BR /&gt; Set RdmStream = RDMServer.Connection.GetStream&lt;BR /&gt; RdmStream.Clear&lt;/P&gt;
&lt;P&gt;'Calculate results for all sections&lt;BR /&gt; RdmStream.WriteText ("all") ' member(s) selection&lt;BR /&gt; RDmCalPar.SetObjsList I_DCPVT_MEMBERS_VERIF, RdmStream 'members verification&lt;BR /&gt; RDmCalPar.SetLimitState I_DCPLST_ULTIMATE, 1&lt;BR /&gt; RdmStream.Clear&lt;BR /&gt; RdmStream.WriteText (UlsLoadCase) 'Set Load Case(s)&lt;BR /&gt; RDmCalPar.SetLoadsList RdmStream&lt;/P&gt;
&lt;P&gt;RDmEngine.SetCalcConf RDmCalCnf&lt;BR /&gt; RDmEngine.SetCalcParam RDmCalPar&lt;BR /&gt; &lt;BR /&gt; 'end of calclulation parameter settings&lt;BR /&gt; &lt;BR /&gt; RDmEngine.Solve Nothing&lt;/P&gt;
&lt;P&gt;Dim RDmDetRes As IRDimDetailedRes&lt;BR /&gt; Dim RDMAllRes As IRDimAllRes&lt;/P&gt;
&lt;P&gt;Set RDMAllRes = RDmEngine.Results&lt;BR /&gt; Set RDmDetRes = RDMAllRes.Get(I)&lt;BR /&gt; &lt;BR /&gt; Range("e" &amp;amp; I + 1) = RDmDetRes.Ratio&lt;BR /&gt; &lt;BR /&gt;Next&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and attache you can find the file that give the warnings&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:03:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5591197#M66418</guid>
      <dc:creator>StefanoPasquini6790</dc:creator>
      <dc:date>2015-04-14T12:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5591266#M66419</link>
      <description>&lt;P&gt;Corrected code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim UlsLoadCase As Integer
Dim RobApp As IRobotApplication
Set RobApp = New RobotApplication
'Get the collection of all bars from the structure.
'
'Declare and create the object giving access to standard section parameters.
'
Set bar_col = RobApp.Project.Structure.Bars.GetAll()
UlsLoadCase = InputBox("INSERISCI IL NUMERO DI COMBINAZIONE SLU IN ROBOT")
'Iterate for consecutive bars from the collection.

Dim RDMServer As IRDimServer
Set RDMServer = RobApp.Kernel.GetExtension("RDimServer")
RDMServer.Mode = I_DSM_STEEL

Dim RDmEngine As IRDimCalcEngine
Set RDmEngine = RDMServer.CalculEngine
Dim RDmCalPar As IRDimCalcParam
Dim RDmCalCnf As IRDimCalcConf

Row = 1
For I = 1 To bar_col.Count
'Dim RobApp As RobotApplication
'Set RobApp = New RobotApplication



'the part below is optional if you want to set caclulation parameters by the code



If bar_col.Get(I).HasLabel(I_LT_MEMBER_TYPE) Then
Set RDmCalPar = RDmEngine.GetCalcParam
Set RDmCalCnf = RDmEngine.GetCalcConf
Dim RdmStream As IRDimStream 'Data stream for setting parameters
Set RdmStream = RDMServer.Connection.GetStream
RdmStream.Clear
'Calculate results for all sections

RdmStream.WriteLong (bar_col.Get(I).Number) ' member(s) selection
RDmCalPar.SetObjsList I_DCPVT_MEMBERS_VERIF, RdmStream 'members verification
RDmCalPar.SetLimitState I_DCPLST_ULTIMATE, 1
RdmStream.Clear
RdmStream.WriteText Str(UlsLoadCase) 'Set Load Case(s)
RDmCalPar.SetLoadsList RdmStream
RDmEngine.SetCalcConf RDmCalCnf
RDmEngine.SetCalcParam RDmCalPar

'end of calclulation parameter settings

RDmEngine.Solve Nothing
Dim RDmDetRes As IRDimDetailedRes
Dim RDMAllRes As IRDimAllRes
Set RDMAllRes = RDmEngine.Results
Set RDmDetRes = RDMAllRes.Get(bar_col.Get(I).Number)

'Range("d" &amp;amp; Row) = Str(bar_col.Get(I).Number)
Range("e" &amp;amp; Row) = RDmDetRes.Ratio
Row = Row + 1
End If

Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:42:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5591266#M66419</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2015-04-14T12:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: API - CREATE DIMENSIONING GROUPS</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5609736#M66420</link>
      <description>&lt;P&gt;Hi everybody;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;published the version n°3 of the tool, edited and optimized.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you enjoy, cheers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.pasquiniprogetti.it/?p=868" target="_blank"&gt;http://www.pasquiniprogetti.it/?p=868&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:07:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-dimensioning-groups/m-p/5609736#M66420</guid>
      <dc:creator>StefanoPasquini6790</dc:creator>
      <dc:date>2015-04-27T17:07:16Z</dc:date>
    </item>
  </channel>
</rss>

