<?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 API c# in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369008#M4545</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some one can help me please with documents to c# API for RSA.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 16:02:43 GMT</pubDate>
    <dc:creator>bechir_hammadi</dc:creator>
    <dc:date>2023-11-10T16:02:43Z</dc:date>
    <item>
      <title>API c#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369008#M4545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some one can help me please with documents to c# API for RSA.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 16:02:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369008#M4545</guid>
      <dc:creator>bechir_hammadi</dc:creator>
      <dc:date>2023-11-10T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: API c#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369435#M4546</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14720020"&gt;@bechir_hammadi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you have several files and example delivered with the SDK (need to be installed) located in the installation subdirectory ...\SDK.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Look also to this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-structural-analysis-api-python/m-p/12153276#M96796" target="_blank" rel="noopener"&gt;topic&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 18:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369435#M4546</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2023-11-10T18:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: API c#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369447#M4547</link>
      <description>&lt;P&gt;I have the SDK installed and API references for robot are active in visual studio&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still have problem, I guess related to syntaxe, that is why I need a document (pdf) where i can found syntaxe of C# for RSA.&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Runtime.InteropServices;&lt;BR /&gt;using RobotOM;&lt;/P&gt;&lt;P&gt;namespace RSAExample&lt;BR /&gt;{&lt;BR /&gt;class Program&lt;BR /&gt;{&lt;BR /&gt;static void Main(string[] args)&lt;BR /&gt;{&lt;BR /&gt;IRobotApplication rsaApp = null;&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;// Création de l'instance de l'interface IRobotApplication&lt;BR /&gt;rsaApp = (IRobotApplication)Activator.CreateInstance(Type.GetTypeFromProgID("Robot.Application"));&lt;/P&gt;&lt;P&gt;// Vérifier si RSA est en cours d'exécution&lt;BR /&gt;if (rsaApp != null)&lt;BR /&gt;{&lt;BR /&gt;rsaApp.Interactive = 1; // Démarrer en mode interactif&lt;/P&gt;&lt;P&gt;// Spécifier le chemin du projet existant&lt;BR /&gt;string fullProjectPath = @"C:\Users\bechir.hammadi\Desktop\NDC\NomDuFichier01.rtd";&lt;/P&gt;&lt;P&gt;// Ouvrir le projet existant&lt;BR /&gt;rsaApp.Project.Open(fullProjectPath);&lt;/P&gt;&lt;P&gt;IRobotStructure structure = rsaApp.Project.Structure;&lt;/P&gt;&lt;P&gt;IRobotNodeServer nodeServer = structure.Nodes;&lt;BR /&gt;nodeServer.Create(1, 0, 0, 0);&lt;BR /&gt;nodeServer.Create(2, 0, 0, 3);&lt;/P&gt;&lt;P&gt;IRobotBarServer barServer = structure.Bars;&lt;BR /&gt;barServer.Create(1, 1, 2);&lt;/P&gt;&lt;P&gt;rsaApp.Project.Preferences.SetCurrentDatabase(IRobotDatabaseType.I_DT_SECTIONS, "SIMPL");&lt;BR /&gt;IRobotLabel Section = rsaApp.Project.Structure.Labels.Create(IRobotLabelType.I_LT_BAR_SECTION, "HEA 120");&lt;BR /&gt;IRobotBarSectionData SData = Section.Data;&lt;BR /&gt;SData.LoadFromDBase("HEA 120");&lt;BR /&gt;rsaApp.Project.Structure.Labels.Store(Section);&lt;/P&gt;&lt;P&gt;RobotBar Bar1 = (RobotBar)rsaApp.Project.Structure.Bars.Get(1);&lt;BR /&gt;Bar1.SetLabel(IRobotLabelType.I_LT_BAR_SECTION, "HEA 120");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Enregistrer les modifications apportées au projet&lt;BR /&gt;rsaApp.Project.Save();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Console.WriteLine("Modifications enregistrées avec succès.");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Robot Structural Analysis n'est pas en cours d'exécution.");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Une erreur s'est produite : " + ex.Message);&lt;BR /&gt;}&lt;BR /&gt;finally&lt;BR /&gt;{&lt;BR /&gt;// Libérer les ressources&lt;BR /&gt;if (rsaApp != null)&lt;BR /&gt;{&lt;BR /&gt;Marshal.FinalReleaseComObject(rsaApp);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;For exemple the script is good and executed but than I cant find the file, may be there is an other method to save it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 18:54:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369447#M4547</guid>
      <dc:creator>bechir_hammadi</dc:creator>
      <dc:date>2023-11-10T18:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: API c#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369685#M4548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14720020"&gt;@bechir_hammadi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer to the “Getting Started Guide Robot API.pdf” in the SDK directory on page 31 for the code in C#&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;FinalReleaseComObject:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;while (Marshal.ReleaseComObject(rsaApp) != 0) ; rsaApp = null;&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 06:18:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12369685#M4548</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-09-01T06:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: API c#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12370785#M4549</link>
      <description>&lt;P&gt;Thank you very much, that hekofull &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 15:43:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-c/m-p/12370785#M4549</guid>
      <dc:creator>bechir_hammadi</dc:creator>
      <dc:date>2023-11-11T15:43:33Z</dc:date>
    </item>
  </channel>
</rss>

