<?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: VBA API Rotation of selected elements in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10317216#M14713</link>
    <description>&lt;P&gt;Note that the _angle in degrees of the method need to be converted to radians.&lt;BR /&gt;To get a free number from the bar server:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;int num = robot.Project.Structure.Bars.FreeNumber;&lt;/LI-CODE&gt;
&lt;P&gt;After the transformation the copied elements remain selected. You will be able to collect their number by a new selection.&lt;/P&gt;</description>
    <pubDate>Sun, 28 Sep 2025 00:28:44 GMT</pubDate>
    <dc:creator>Stephane.kapetanovic</dc:creator>
    <dc:date>2025-09-28T00:28:44Z</dc:date>
    <item>
      <title>VBA API Rotation of selected elements</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10315386#M14709</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for the correct API methods in order to replicate through VBA programming these following rotating functions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Robot-Rotation.gif" style="width: 276px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/919183i05B1F1DAA7BE9DD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Robot-Rotation.gif" alt="Robot-Rotation.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is very appreciated helping me finding the right code for rotating with or without copy selected structural elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 19:55:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10315386#M14709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-15T19:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: VBA API Rotation of selected elements</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10315878#M14710</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have you watched this following topic&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-vba-api-structure-rotation/m-p/5348657" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-vba-api-structure-rotation/m-p/5348657&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Sun, 28 Sep 2025 00:26:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10315878#M14710</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-09-28T00:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: VBA API Rotation of selected elements</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10316678#M14711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply. I indeed read this post already but unfortunately it did not fully solved my problem. However, in the meantime, and after some digging into manuals and online forums I found part of the solution. The only thing that is unclear to me still are the parameters of the&amp;nbsp;SelRotate method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to make a rotation round the Z-axis, what should the parameters be? And if I copy the element instead of just rotating it, how do I set a selected element number to the rotated element? It seems Robot uses the next available Id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 20:35:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10316678#M14711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-16T20:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: VBA API Rotation of selected elements</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10317199#M14712</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you must define two points _p0 and _p1 by their coordinates x, y and z (origin and end of the axis of rotation), the desired angle of rotation, the option of rotation (between the three options listed, flags 0, 1, 2) and specify the number of times the action must be repeated.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IRobotStructureEditTools transformation = robot.Project.Structure.Edit;
double _p0x = 0, _p0y = 0, _p0z = 0, _p1x = 0, _p1y = 0, _p1z = 1;
double _angle = 50;
IRobotTranslateOptions OptionRotation = IRobotTranslateOptions.I_TO_COPY;
//                                      IRobotTranslateOptions.I_TO_COPY_WITH_DRAG;
//                                      IRobotTranslateOptions.I_TO_MOVE;
int _repetitions = 1;
transformation.SelRotate(_p0x, _p0y, _p0z, _p1x, _p1y, _p1z, _angle, OptionRotation, _repetitions);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;best regards&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 04:50:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10317199#M14712</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2021-05-17T04:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: VBA API Rotation of selected elements</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10317216#M14713</link>
      <description>&lt;P&gt;Note that the _angle in degrees of the method need to be converted to radians.&lt;BR /&gt;To get a free number from the bar server:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;int num = robot.Project.Structure.Bars.FreeNumber;&lt;/LI-CODE&gt;
&lt;P&gt;After the transformation the copied elements remain selected. You will be able to collect their number by a new selection.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Sep 2025 00:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10317216#M14713</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-09-28T00:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: VBA API Rotation of selected elements</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10318081#M14714</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6876621"&gt;@Stephane.kapetanovic&lt;/a&gt;&amp;nbsp;, so there's no way of "imposing" a certain number to a newly created bar after a rotation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility to modify a bar's number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 13:09:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10318081#M14714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-17T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: VBA API Rotation of selected elements</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10318404#M14715</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-renumbering/m-p/7777581" target="_blank" rel="noopener"&gt;API - renumbering&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Sep 2025 00:29:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-api-rotation-of-selected-elements/m-p/10318404#M14715</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-09-28T00:29:48Z</dc:date>
    </item>
  </channel>
</rss>

