<?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: Linear Releases with API in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3498548#M82238</link>
    <description>&lt;P&gt;Hi Rafal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you got any clarification on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2012 15:59:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-13T15:59:31Z</dc:date>
    <item>
      <title>Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3489234#M82233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to script some linear releases using the Robot API in C#, but can't seem to get my head around it. Can you please&amp;nbsp;post an example defining a linear release?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to achieve is releasing all edges shared by two panels, but only on one of the panels to avoid getting to many DOFs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are able to help me out,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 10:36:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3489234#M82233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T10:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3489670#M82234</link>
      <description>&lt;P&gt;I think I'm getting closer to an answer myself. The following code runs perfectly, but doesn't seem to produce any releases on the edges. What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;IRobotLabel&lt;/FONT&gt;&lt;/FONT&gt; linearReleaseLabel = robotApplication.Project.Structure.Labels.Create(&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;IRobotLabelType&lt;/FONT&gt;&lt;/FONT&gt;.I_LT_LINEAR_RELEASE, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;.name);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotLinearReleaseServer&lt;/FONT&gt;&lt;/FONT&gt;linearReleaseServer = robotApplication.Project.Structure.Objects.LinearReleases;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotLinearReleaseData&lt;/FONT&gt;&lt;/FONT&gt; linearReleaseData = (&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotLinearReleaseData&lt;/FONT&gt;&lt;/FONT&gt;)linearReleaseLabel.Data;&lt;/P&gt;&lt;P&gt;linearReleaseData.HX =&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;.HX;&lt;/P&gt;&lt;P&gt;linearReleaseData.KX =&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;.KX;&lt;/P&gt;&lt;P&gt;linearReleaseData.KY =&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;.KY;&lt;/P&gt;&lt;P&gt;linearReleaseData.KZ =&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;.KZ;&lt;/P&gt;&lt;P&gt;linearReleaseData.RX = toRobotLinearReleaseDefinitionType(RX);&lt;/P&gt;&lt;P&gt;linearReleaseData.UX = toRobotLinearReleaseDefinitionType(UX);&lt;/P&gt;&lt;P&gt;linearReleaseData.UY = toRobotLinearReleaseDefinitionType(UY);&lt;/P&gt;&lt;P&gt;linearReleaseData.UZ = toRobotLinearReleaseDefinitionType(UZ);&lt;/P&gt;&lt;P&gt;robotApplication.Project.Structure.Labels.Store(linearReleaseLabel);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjObjectServer&lt;/FONT&gt;&lt;/FONT&gt;robotObjObjectServer = robotApplication.Project.Structure.Objects;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;for&lt;/FONT&gt;&lt;/FONT&gt; (&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;int&lt;/FONT&gt;&lt;/FONT&gt;i = 0; i &amp;lt; panelIndices.Count; i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;IRobotObjObject&lt;/FONT&gt;&lt;/FONT&gt; robotObjObject = (&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjObject&lt;/FONT&gt;&lt;/FONT&gt;) robotObjObjectServer.Get(i+1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjPartMain&lt;/FONT&gt;&lt;/FONT&gt; robotObjPartMain = (&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjPartMain&lt;/FONT&gt;&lt;/FONT&gt;) robotObjObject.Main;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjEdgeCollection&lt;/FONT&gt;&lt;/FONT&gt; objEdges = (&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjEdgeCollection&lt;/FONT&gt;&lt;/FONT&gt;) robotObjPartMain.Edges;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;for&lt;/FONT&gt;&lt;/FONT&gt; (&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;int&lt;/FONT&gt;&lt;/FONT&gt;j = 1; j &amp;lt;= objEdges.Count; j++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjEdge&lt;/FONT&gt;&lt;/FONT&gt; objEdge = (&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;RobotObjEdge&lt;/FONT&gt;&lt;/FONT&gt;) objEdges.Get(j);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;if&lt;/FONT&gt;&lt;/FONT&gt; (objEdge.HasLabel(&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;IRobotLabelType&lt;/FONT&gt;&lt;/FONT&gt;.I_LT_LINEAR_RELEASE) == 0) {&lt;/P&gt;&lt;P&gt;objEdge.SetLabel(&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;IRobotLabelType&lt;/FONT&gt;&lt;/FONT&gt;.I_LT_LINEAR_RELEASE, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;.name);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 13:59:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3489670#M82234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3490740#M82235</link>
      <description>&lt;P&gt;try to add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;robotObjObject&amp;nbsp;&lt;/SPAN&gt;.Update&lt;BR /&gt; &lt;SPAN&gt;robotObjObject&amp;nbsp;&lt;/SPAN&gt;.Initialize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to the end of if&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 22:36:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3490740#M82235</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-06-07T22:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3491398#M82236</link>
      <description>&lt;P&gt;Hi Rafal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply... Unfortunatly it still doesn't work. The label is is created without any problems, nevertheless I tryed changing the label to a Robot native one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;objEdge.SetLabel(&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;IRobotLabelType&lt;/FONT&gt;&lt;/FONT&gt;.I_LT_LINEAR_RELEASE, &lt;FONT color="#a31515"&gt;&lt;FONT color="#a31515"&gt;"pinned"&lt;/FONT&gt;&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;And I know for sure that the line of code is running, but it still doesn't work. Is this not the right way of applying a linerar release label to an edge?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks again,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Andreas&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 12:03:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3491398#M82236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-08T12:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3492866#M82237</link>
      <description>&lt;P&gt;I need develeopers to check why SETLABEL and HASLABEL do not work for linear releases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2012 07:55:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3492866#M82237</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-06-09T07:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3498548#M82238</link>
      <description>&lt;P&gt;Hi Rafal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you got any clarification on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:59:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3498548#M82238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-13T15:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3499618#M82239</link>
      <description>&lt;P&gt;I have not checked yet but operation by &amp;nbsp;labels (set , has) as you did works only for supports for objects.&lt;/P&gt;
&lt;P&gt;For linear releases you should use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;robotApplication.Project.Structure.Objects.LinearReleases....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 07:58:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3499618#M82239</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-06-14T07:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Releases with API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3500000#M82240</link>
      <description>&lt;PRE&gt; private void button1_Click(object sender, EventArgs e)
        {
            RobotApplication robotApplication = new RobotApplication();
            IRobotLabel linearReleaseLabel = robotApplication.Project.Structure.Labels.Create(IRobotLabelType.I_LT_LINEAR_RELEASE, "apirel");

            RobotLinearReleaseData linearReleaseData = (RobotLinearReleaseData)linearReleaseLabel.Data;
            linearReleaseData.HX = 0;
            linearReleaseData.KX =0;
            linearReleaseData.KY =0;
            linearReleaseData.KZ =0;
            linearReleaseData.RX = IRobotLinearReleaseDefinitionType.I_LRDT_RELEASED  ;
            linearReleaseData.UX = IRobotLinearReleaseDefinitionType.I_LRDT_NONE;
            linearReleaseData.UY = IRobotLinearReleaseDefinitionType.I_LRDT_NONE;
            linearReleaseData.UZ = IRobotLinearReleaseDefinitionType.I_LRDT_NONE;
            robotApplication.Project.Structure.Labels.Store(linearReleaseLabel);

            RobotObjObjectServer robotObjObjectServer = robotApplication.Project.Structure.Objects;
            IRobotObjObject robotObjObject = (RobotObjObject)robotObjObjectServer.Get(1);

            int Numberofedges = robotObjObject.Main.Edges.Count;
            for (int i = 1; i &amp;lt;= Numberofedges; i++)
            {
                if (robotObjObjectServer.LinearReleases.FindEdge(robotObjObject.Number,i) == 0)
                {
                    robotObjObjectServer.LinearReleases.Set(robotObjObject.Number,i, robotObjObject.Number,1,"apirel");
                }
            }
            robotObjObject.Update();
            this.Close();
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:41:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/linear-releases-with-api/m-p/3500000#M82240</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-06-14T12:41:16Z</dc:date>
    </item>
  </channel>
</rss>

