<?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) Select all panels for mesh generation in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/5926944#M59051</link>
    <description>&lt;P&gt;Objects are all geometrical model elements except nodes so you have to create correct selection \ collection limited to panels only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    Dim RSelection As RobotSelection
    Set RSelection = RobApp.Project.Structure.Selections.Create(I_OT_PANEL)
    RSelection.FromText "all"
    Dim PanelCol As RobotObjObjectCollection
    Set PanelCol = RobApp.Project.Structure.Objects.GetMany(RSelection)&lt;/PRE&gt;
&lt;P&gt;then play with panels from this collection&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2015 10:48:13 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2015-11-27T10:48:13Z</dc:date>
    <item>
      <title>(API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/5926940#M59050</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to select all panel objects, generate mesh and freez it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IRobotObjObject Panelx;&lt;BR /&gt;Panelx = (IRobotObjObject)robApp.Project.Structure.Objects.GetAll(); - unfortunately it can not be converted to IRobotObjObject.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Panelx = (IRobotObjObject)robApp.Project.Structure.Objects.Get(1); -&amp;nbsp;unfortunately I must define variable int that selects only plates and mesh will be generated plate by plate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Panelx.Mesh.Generate();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Panelx.Mesh.Freeze = true;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to select all panels at once or I should use .Get(i) and generate mesh plate by plate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 10:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/5926940#M59050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/5926944#M59051</link>
      <description>&lt;P&gt;Objects are all geometrical model elements except nodes so you have to create correct selection \ collection limited to panels only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    Dim RSelection As RobotSelection
    Set RSelection = RobApp.Project.Structure.Selections.Create(I_OT_PANEL)
    RSelection.FromText "all"
    Dim PanelCol As RobotObjObjectCollection
    Set PanelCol = RobApp.Project.Structure.Objects.GetMany(RSelection)&lt;/PRE&gt;
&lt;P&gt;then play with panels from this collection&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 10:48:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/5926944#M59051</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2015-11-27T10:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/5927073#M59052</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:08:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/5927073#M59052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T13:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8636845#M59053</link>
      <description>&lt;P&gt;Is there a way to modify the attributes of numerous panels all at once? For example I want to select all my panels, and then apply .Main.Attribs.Meshed = True and .SetLabel and .Initialise, but I am not able to do this while using the .GetMany function, just .Get for an individual panel. The reason I need this is I am creating thousands of panels and applying the attributes one at a time in a loop takes a long time and I am trying to reduce this. Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 10:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8636845#M59053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-05T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637184#M59054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;Is there a way to modify the attributes of numerous panels all at once? For example I want to select all my panels, and then apply .Main.Attribs.Meshed = True &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;and .SetLabel&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RobApp.Project.Structure.Objects.SetLabel()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;and .Initialise, &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 13:31:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637184#M59054</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2019-03-05T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637567#M59055</link>
      <description>&lt;P&gt;Hi Rafal,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using VBA and the current code I have for assigning the panel thickness is;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim Panel as RobotObjObjectServer&lt;/P&gt;
&lt;P&gt;Set Panel = RobApp.Project.Structure.Objects&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim ActivePanel as RobotObjObject&lt;/P&gt;
&lt;P&gt;Set ActivePanel = Panel.Get (i) 'looping through from i = 0 to the number of panels&lt;/P&gt;
&lt;P&gt;ActivePanel.SetLabel XXX,XXX 'with the required thickness label&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I would like instead is to have something like:&lt;/P&gt;
&lt;P&gt;Set ActivePanel = Panel.GetAll&lt;/P&gt;
&lt;P&gt;ActivePanel.SetLabel XXX,XXX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so all panels are set the same label in one line of code, but I don't quite understand how to make this work. Would you be able to point me in the right direction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:36:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637567#M59055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-05T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637580#M59056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;    Dim RSelection As RobotSelection
    Set RSelection = RobApp.Project.Structure.Selections.CreateFull(I_OT_PANEL)
    RobApp.Project.Structure.Objects.SetLabel RSelection, I_LT_PANEL_THICKNESS, "MY_THICKNESS"&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:43:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637580#M59056</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2019-03-05T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: (API) Select all panels for mesh generation</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637619#M59057</link>
      <description>&lt;P&gt;Hi Rafal,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That has worked a charm. As always, thank you so much for your support &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:55:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-select-all-panels-for-mesh-generation/m-p/8637619#M59057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-05T15:55:55Z</dc:date>
    </item>
  </channel>
</rss>

