<?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: Robot API query in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607774#M37932</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Opening is a contour inside panel and it is not meshed&lt;/P&gt;
&lt;P&gt;Example code below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim Robject As RobotObjObject
Dim Rcontour As New RobotGeoContour
Dim Segment(4) As New RobotGeoSegmentLine
   

Segment(1).P1.Set 0, 0, 0
Rcontour.Add Segment(1)

Segment(2).P1.Set 10, 0, 0
Rcontour.Add Segment(2)

Segment(3).P1.Set 10, 0, 5
Rcontour.Add Segment(3)

Segment(4).P1.Set 0, 0, 5
Rcontour.Add Segment(4)

        
Rcontour.Initialize

        DrawPanel = RobApp.Project.Structure.Objects.FreeNumber
        Set Robject = RobApp.Project.Structure.Objects.Create(DrawPanel)
        Robject.Main.Geometry = Rcontour
        Robject.Main.Attribs.Meshed = True
        Robject.Initialize
        Robject.Update
        
Dim Ocontour As New RobotGeoContour

Segment(1).P1.Set 1, 0, 1
Ocontour.Add Segment(1)

Segment(2).P1.Set 2, 0, 1
Ocontour.Add Segment(2)

Segment(3).P1.Set 2, 0, 2
Ocontour.Add Segment(3)

Segment(4).P1.Set 1, 0, 2
Ocontour.Add Segment(4)

Ocontour.Initialize

        DrawOp = RobApp.Project.Structure.Objects.FreeNumber
        Set Robject = RobApp.Project.Structure.Objects.Create(DrawOp)
        Robject.Main.Geometry = Ocontour
        Robject.Initialize
        Robject.Update
        &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 10:59:09 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2017-12-08T10:59:09Z</dc:date>
    <item>
      <title>Robot API query</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607705#M37931</link>
      <description>&lt;P&gt;What is the line of code to be used in the C# code for Robot API to decide, if the contour defined using polyline is to define a Panel or an opening.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 10:30:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607705#M37931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-08T10:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API query</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607774#M37932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Opening is a contour inside panel and it is not meshed&lt;/P&gt;
&lt;P&gt;Example code below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim Robject As RobotObjObject
Dim Rcontour As New RobotGeoContour
Dim Segment(4) As New RobotGeoSegmentLine
   

Segment(1).P1.Set 0, 0, 0
Rcontour.Add Segment(1)

Segment(2).P1.Set 10, 0, 0
Rcontour.Add Segment(2)

Segment(3).P1.Set 10, 0, 5
Rcontour.Add Segment(3)

Segment(4).P1.Set 0, 0, 5
Rcontour.Add Segment(4)

        
Rcontour.Initialize

        DrawPanel = RobApp.Project.Structure.Objects.FreeNumber
        Set Robject = RobApp.Project.Structure.Objects.Create(DrawPanel)
        Robject.Main.Geometry = Rcontour
        Robject.Main.Attribs.Meshed = True
        Robject.Initialize
        Robject.Update
        
Dim Ocontour As New RobotGeoContour

Segment(1).P1.Set 1, 0, 1
Ocontour.Add Segment(1)

Segment(2).P1.Set 2, 0, 1
Ocontour.Add Segment(2)

Segment(3).P1.Set 2, 0, 2
Ocontour.Add Segment(3)

Segment(4).P1.Set 1, 0, 2
Ocontour.Add Segment(4)

Ocontour.Initialize

        DrawOp = RobApp.Project.Structure.Objects.FreeNumber
        Set Robject = RobApp.Project.Structure.Objects.Create(DrawOp)
        Robject.Main.Geometry = Ocontour
        Robject.Initialize
        Robject.Update
        &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 10:59:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607774#M37932</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2017-12-08T10:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API query</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607830#M37933</link>
      <description>&lt;P&gt;Hello Rafael;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My situation is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create panel or opening, polyline method has been used. In the polyline option we can define the contour to create panel or openings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="Capture.PNG" style="width: 267px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/436646i0D62712F1F4337F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My program chooses all the contours from the model and treats them as Panel.&lt;/P&gt;&lt;P&gt;But I want to know which contour has been used to define panel and which one to define Contour/Opening.&lt;/P&gt;&lt;P&gt;I have written the API in C# and want to know which option I should use in my code get the&amp;nbsp;information I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 11:20:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607830#M37933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-08T11:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API query</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607858#M37934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understood you correctly, polyline or any set of lines, arcs which are used to create panel \ opening are "converted" by program to contours while creating panels \ openings.&lt;/P&gt;
&lt;P&gt;So I guess you need to check whether the&amp;nbsp;Robject.Main.Attribs.Meshed&amp;nbsp;is True or&amp;nbsp; False&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 11:31:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-query/m-p/7607858#M37934</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2017-12-08T11:31:19Z</dc:date>
    </item>
  </channel>
</rss>

