<?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 a panel - C# in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7400585#M41278</link>
    <description>&lt;P&gt;Unfortunately CreateOnFiniteElements method works only for finite elements&amp;nbsp;lying on the same plane (with a little epsilon). On the one hand it is inconvenient, but on the other, You would probably have problems analyzing non-planar panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest staying with panels made on triangles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marcin&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 06:35:41 GMT</pubDate>
    <dc:creator>marcinrakus</dc:creator>
    <dc:date>2017-09-22T06:35:41Z</dc:date>
    <item>
      <title>API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393441#M41269</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still struggling a bit with API, in particular with panels. I managed to create finite elements, but it seems like I can't select them and create an object/panel as reported in the tutorial below.&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="image.png" style="width: 598px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/403188i4CB1F4AD9116C079/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone advise on this? Also, is it possible to select only a few finite elements and create a panel for those only? Let's say I want finite elements 1 to 5 to be in a panel and then finite elements 6 to 12 to be in a different one. How do we do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As stated in the title, I am trying to do this in C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:36:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393441#M41269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T09:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393499#M41270</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this make effect You want? :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;      RobotApplication r = new RobotApplication();
      r.Project.Structure.Objects.CreateOnFiniteElems("1To5", 100);
      r.Project.Structure.Objects.CreateOnFiniteElems("6To12", 200);&lt;/PRE&gt;
&lt;P&gt;No need to create selection - CreateOnFiniteElements method takes string as argument. If You have other version of RSA than English don't use 'To" but something language dependent. It is even safer to type "1 2 3 4 5".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;100 or 200 is a chosen starting number for new panels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:54:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393499#M41270</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2017-09-20T09:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393574#M41271</link>
      <description>&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the prompt response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those lines of code work, but they don't do exactly what I want. This way I manage to create a panel for each finite element, but what I would like to do is create a panel for more finite elements, i.e. panel 100 will be created out of finite elements 1To5 and panel 200 out of finite elements 6To12, so that in the end I will have 2 panels and 12 finite elements. I hope now it is clearer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393574#M41271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T10:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393594#M41272</link>
      <description>&lt;P&gt;I get this with my code (I made it on basis of existing panel mesh, so it may be a little confusing):&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="Fes.PNG" style="width: 668px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/403214i257EBAE5EAF09439/image-size/large?v=v2&amp;amp;px=999" role="button" title="Fes.PNG" alt="Fes.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe Your finite elements are not connected to each other or they are not in the same plane (I'm not sure if this is a requirement, but worth checking).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case when I write as a list of finite elements e.g. "19 32" I will get indeed two separate one-element panels, but "1To5" gives me first (100) and "6to12" second (200) panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:33:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393594#M41272</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2017-09-20T10:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393663#M41273</link>
      <description>&lt;P&gt;Below is what I get instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we have to deal with a quite complex geometry, in my script I import the coordinate of the nodes first, then I create the triangular finite elements for each hexagon/pentagon and then I would like to have a different panel for each polygon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure that the finite elements of each polygon are connected because of the way I define them - I know there are overlapping nodes, but the plan is to remove them afterwards. Also, the geometry has been checked in grasshopper and each polygon is planar. For some reasons a different panel is created regardless of the string I give to the method CreateOnFiniteElements.&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="image.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/403222i2A7082D509A5AD01/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:04:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393663#M41273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T11:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393835#M41274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IMHO they are defined by different nodes and therefore not detected as 'connected'. In other words you shouldn't have overlapped nodes but a single one in each of these locations:&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="overlapping nodes.PNG" style="width: 366px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/403249i1AE48CE5E22A2959/image-size/large?v=v2&amp;amp;px=999" role="button" title="overlapping nodes.PNG" alt="overlapping nodes.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If you find your post answered press the Accept as Solution button please. This will help other users to find solutions much faster. Thank you.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:07:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393835#M41274</guid>
      <dc:creator>Artur.Kosakowski</dc:creator>
      <dc:date>2017-09-20T12:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393959#M41275</link>
      <description>&lt;P&gt;Hi Artur,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if I try to bake only one panel with no overlapped nodes I can't get a single panel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's try to change approach maybe, since I have the coordinates of the nodes I can create a contour and then maybe create a panel using the contour? I had tried that too, but I got an error saying that it cannot convert boolean to int when I use the Main.Attribs.Meshed call. Maybe I am using it in the wrong way?&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="image.png" style="width: 448px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/403264i139A1CBE6D646691/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RobotObjObject obj = RobotApp.Project.Structure.Objects.Get(i + 1) as RobotObjObject;
      obj.Main.Attribs.Meshed = true;
      obj.Update();&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:45:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393959#M41275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T12:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393997#M41276</link>
      <description>&lt;P&gt;Can You attach this rtd file You are trying to work on? I could play with my code on Your example.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7393997#M41276</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2017-09-20T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7395200#M41277</link>
      <description>&lt;P&gt;Attached&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 17:49:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7395200#M41277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T17:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7400585#M41278</link>
      <description>&lt;P&gt;Unfortunately CreateOnFiniteElements method works only for finite elements&amp;nbsp;lying on the same plane (with a little epsilon). On the one hand it is inconvenient, but on the other, You would probably have problems analyzing non-planar panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest staying with panels made on triangles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:35:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7400585#M41278</guid>
      <dc:creator>marcinrakus</dc:creator>
      <dc:date>2017-09-22T06:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: API create a panel - C#</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7400844#M41279</link>
      <description>&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the time you have spent on it. I know the nodes don't seem to be planar at first glance, but I think they are. I have checked them in Grasshopper and they result to be planar and if you manually create a contour then Robot allows you to create a panel in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately in this case sticking to triangular panels is not really a viable solution as I will end up with 10000 panels which are very complicated to deal with. That's why I thought one solution would be to create the contours and then the panels, but as I wrote a few posts above I am struggling with that part of code. Can anyone help with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:31:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-create-a-panel-c/m-p/7400844#M41279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T08:31:17Z</dc:date>
    </item>
  </channel>
</rss>

