<?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: NON LINEAR HINGE DEFINITION in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-non-linear-hinge-definition/m-p/9842263#M17556</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/838194"&gt;@StefanoPasquini6790&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to documentation it should be possible&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="hinges.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839790i6FA78EEAC5D40422/image-size/large?v=v2&amp;amp;px=999" role="button" title="hinges.jpg" alt="hinges.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good Luck !&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 10:40:13 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2020-11-03T10:40:13Z</dc:date>
    <item>
      <title>API: NON LINEAR HINGE DEFINITION</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-non-linear-hinge-definition/m-p/9842112#M17554</link>
      <description>&lt;P&gt;Good Morning Artur and Rafal,&lt;/P&gt;
&lt;P&gt;it exist the possibility to definine properties of non linear hinge in excel and assign it to a bar in Robot via API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to the lockdown, I'm back to work over PushOver in Robot, and I'm studying a fast way to set up the process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance, and have a safe and good day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 09:35:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-non-linear-hinge-definition/m-p/9842112#M17554</guid>
      <dc:creator>StefanoPasquini6790</dc:creator>
      <dc:date>2020-11-03T09:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: API: NON LINEAR HINGE DEFINITION</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-non-linear-hinge-definition/m-p/9842257#M17555</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is not for me, but i think the answer is yes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar spreadsheet for non-linear supports and the workflow is basicly the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rsousa__0-1604399359154.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839784iCE683B836C1D3856/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rsousa__0-1604399359154.png" alt="rsousa__0-1604399359154.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have non-linear functions for UX, UY, UZ and so on and i've tested the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Private Sub CommandButton1_Click()
Dim RobApp As RobotApplication
Set RobApp = New RobotApplication
RobApp.Interactive = False

Dim i As Integer, j As Integer, k As Integer
i = 1
j = 0
Dim aux As Double
Dim myBarRD As RobotBarReleaseData
Dim mylabel As RobotLabel
    Dim mynlm2positive As RobotNonlinearLinkParamsCustom
    Dim mynlm2negative As RobotNonlinearLinkParamsCustom
    Dim mynlmCS As RobotNonlinearLinkParamsCustomSegment
    Dim myNLM As RobotNonlinearLink

Do While Cells(9 * i - 6, 1) &amp;lt;&amp;gt; ""
Set mylabel = RobApp.Project.Structure.Labels.Create(I_LT_BAR_RELEASE, "apoio_no_" + CStr(Cells(9 * i - 6, 1)))
Set myBarRD = mylabel.Data

' Direction UX
If Cells(9 * i - 6, 3) + Cells(9 * i - 5, 3) + Cells(9 * i - 4, 3) + Cells(9 * i - 3, 3) + Cells(9 * i - 1, 3) + Cells(9 * i, 3) + Cells(9 * i + 1, 3) + Cells(9 * i + 2, 3) &amp;lt;&amp;gt; 0 Then

    
    Set myNLM = RobApp.Project.Structure.Nodes.NonlinearLinks.Create(CStr(Cells(9 * i - 6, 1)) + "_UX")
    myNLM.SetCurveType I_NLCT_CUSTOM
    Set mynlm2negative = myNLM.GetParams(2)
    Set mynlm2positive = myNLM.GetParams(1)
    myNLM.SetParams mynlm2negative, 2 'in order to set symetry to false
'    MsgBox myNLM.Symetry

' Define positive values of non-linear diagram
j = 1
For k = 9 * i - 2 To 9 * i + 2
If Cells(k, 3) = "" Then Exit For
    Set mynlmCS = mynlm2positive.New()
    aux = Cells(k, 4).Value * 1000
    mynlmCS.OriginPoint = Cells(k, 3).Value / 100#
    mynlmCS.Expression = aux
    mynlmCS.Constant = False
    mynlm2positive.Set j, mynlmCS
    j = j + 1
Next

myNLM.SetParams mynlm2positive, 1

' Define negative values of non-linear diagram
j = 1
For k = 9 * i - 2 To 9 * i - 6 Step -1
If Cells(k, 3) = "" Then Exit For
    Set mynlmCS = mynlm2negative.New()
    aux = Cells(k, 4).Value * 1000
    mynlmCS.OriginPoint = Cells(k, 3).Value / 100#
    mynlmCS.Expression = aux
    mynlmCS.Constant = False
    mynlm2negative.Set j, mynlmCS
    j = j + 1
Next

myNLM.SetParams mynlm2negative, 2

' assign non linear model to support
myBarRD.EndNode.NonlinearModel.Set I_DOF_UX, CStr(Cells(9 * i - 6, 1)) + "_UX"
RobApp.Project.Structure.Labels.Store mylabel
Else

End If


Dim selectionBars As RobotSelection
Set selectionBars = RobApp.Project.Structure.Selections.Get(I_OT_BAR)
selectionBars.FromText CStr(Cells(9 * i - 6, 2))
RobApp.Project.Structure.Labels.Store mylabel
RobApp.Project.Structure.Bars.SetLabel selectionBars, I_LT_BAR_RELEASE, mylabel.Name

i = i + 1
Loop

RobApp.Interactive = True
Set RobApp = Nothing
MsgBox ("The End!")
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example it is applying the non-linear model only at end-node and non-linear function for UX but i think you can get the picture. Sorry for the lazzy code...&lt;/P&gt;&lt;P&gt;The result of this code is something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rsousa__0-1604400522365.png" style="width: 1452px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839797i1BC920883EEC79B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rsousa__0-1604400522365.png" alt="rsousa__0-1604400522365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 10:48:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-non-linear-hinge-definition/m-p/9842257#M17555</guid>
      <dc:creator>rsousa_</dc:creator>
      <dc:date>2020-11-03T10:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: API: NON LINEAR HINGE DEFINITION</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-non-linear-hinge-definition/m-p/9842263#M17556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/838194"&gt;@StefanoPasquini6790&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to documentation it should be possible&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="hinges.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839790i6FA78EEAC5D40422/image-size/large?v=v2&amp;amp;px=999" role="button" title="hinges.jpg" alt="hinges.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good Luck !&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 10:40:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-non-linear-hinge-definition/m-p/9842263#M17556</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2020-11-03T10:40:13Z</dc:date>
    </item>
  </channel>
</rss>

