<?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) External parameters in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8382792#M28652</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2189006"&gt;@marcinrakus&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great, I've got&amp;nbsp;UniqueId for the created external parameter. My next question is how selected part of code should work:&lt;/P&gt;
&lt;PRE&gt;RPD.GuiVisible = True
RPD.GuiSetName 1, "Node Name"&lt;/PRE&gt;
&lt;P&gt;I assume that external parameters should be visible in GUI.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 12:03:53 GMT</pubDate>
    <dc:creator>Romanich</dc:creator>
    <dc:date>2018-11-06T12:03:53Z</dc:date>
    <item>
      <title>(API) External parameters</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8339603#M28650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to play with external parameters. According to the Robot API manual, it is possible to define arbitrary external parameters and assign them to individual structure elements. Unfortunately, my attempts were not successful. It seems that the UniqueId&amp;nbsp; from RobotParamDef is not working properly. Please check my code below:&lt;/P&gt;
&lt;PRE&gt;Sub TestExtParam()

Dim RobApp As RobotApplication
Set RobApp = New RobotApplication

If Not RobApp.Visible Then
    Set RobApp = Nothing
    MsgBox "Open Robot and load Model", vbOKOnly, "ERROR"
    Exit Sub
End If
    
    Dim RSelection As RobotSelection
    Set RSelection = RobApp.Project.Structure.Selections.Get(I_OT_NODE)
    
    Dim AllNodes As RobotNodeCollection
    Set AllNodes = RobApp.Project.Structure.Nodes.GetMany(RSelection)
    
    Dim RNode As RobotNode
    Set RNode = AllNodes.Get(1)
    
    Dim ID As Long
    ID = RNode.UniqueId&lt;BR /&gt;
    Dim CmpFact As RobotComponentFactory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set CmpFact = RobApp.CmpntFactory&lt;BR /&gt;
    Dim RPD As RobotParamDef&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set RPD = CmpFact.Create(I_CT_PARAM_DEF)
    
    RPD.ValueType = I_PVT_TEXT
    RPD.GuiVisible = True
    RPD.Name = "Node Name"
    RPD.GuiSetName 1, "Node Name"
    RPD.DefaultValue = "Pier 1"

    
    Dim Scheme As RobotParamSchema
    
    RobApp.Project.Structure.ExtParams.Schemas.Clear
    RobApp.Project.Structure.ExtParams.Schemas.Create "My Test Scheme"
    Set Scheme = RobApp.Project.Structure.ExtParams.Schemas.GetByName("My Test Scheme")
    Scheme.RemoveAllParams ID
    Scheme.SetParam ID, RPD.UniqueId, RPD.DefaultValue


    RPD.ValueType = I_PVT_INTEGER
    RPD.GuiVisible = True
    RPD.Name = "Radius"
    RPD.GuiSetName 1, "Radius"
    RPD.DefaultValue = 69
    Scheme.SetParam ID, RPD.UniqueId, RPD.DefaultValue

End Sub&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Oct 2018 05:13:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8339603#M28650</guid>
      <dc:creator>Romanich</dc:creator>
      <dc:date>2018-10-21T05:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: (API) External parameters</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8382652#M28651</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Frankly, I didn't play with ExternalParams, but I would start with changing (for the first call)&lt;/P&gt;
&lt;P&gt;Scheme.SetParam ID, RPD.UniqueId, RPD.DefaultValue&lt;/P&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;P&gt;Scheme.Def.AddParam RPD&lt;/P&gt;
&lt;P&gt;That should create guid for further usage.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 10:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8382652#M28651</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2018-11-06T10:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: (API) External parameters</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8382792#M28652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2189006"&gt;@marcinrakus&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great, I've got&amp;nbsp;UniqueId for the created external parameter. My next question is how selected part of code should work:&lt;/P&gt;
&lt;PRE&gt;RPD.GuiVisible = True
RPD.GuiSetName 1, "Node Name"&lt;/PRE&gt;
&lt;P&gt;I assume that external parameters should be visible in GUI.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 12:03:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8382792#M28652</guid>
      <dc:creator>Romanich</dc:creator>
      <dc:date>2018-11-06T12:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: (API) External parameters</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8383194#M28653</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I guess the display of arbitrary external data is not supported in the current version.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 14:28:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/8383194#M28653</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2018-11-06T14:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: (API) External parameters</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/9662385#M28654</link>
      <description>Hello, Bumping an old topic. Was there eventually any success on displaying external parameters in the Robot user interface? I've managed to create the parameters but can't find them anywhere from the GUI. Documentation indicates they should show up in "parameter browser".</description>
      <pubDate>Wed, 29 Jul 2020 16:02:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/9662385#M28654</guid>
      <dc:creator>TimoKet</dc:creator>
      <dc:date>2020-07-29T16:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: (API) External parameters</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/9663456#M28655</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9441648"&gt;@TimoKet&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This extremely useful feature still not implemented properly.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 06:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/9663456#M28655</guid>
      <dc:creator>Romanich</dc:creator>
      <dc:date>2020-07-30T06:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: (API) External parameters</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/9665800#M28656</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/559029"&gt;@Romanich&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your fast reply. I created a idea request (couldn't find where to report bugs, as it is clearly stated in the documentation that this should be implemented) for this topic, although most likely this is a thing only for minority of users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-ideas/implement-showing-external-parameters-in-robot-ui/idi-p/9665785" target="_blank"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-ideas/implement-showing-external-parameters-in-robot-ui/idi-p/9665785&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's see if we can gather some votes for this aswell. I find this to have quite a lot potential for integrated workflows and task automation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since Revit-Robot workflow is on the roadmap, could perhaps &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt; enlighten us if this is something that could be implemented correctly in the future? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 06:41:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-external-parameters/m-p/9665800#M28656</guid>
      <dc:creator>TimoKet</dc:creator>
      <dc:date>2020-07-31T06:41:47Z</dc:date>
    </item>
  </channel>
</rss>

