<?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: VBA loads in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3349989#M83826</link>
    <description>&lt;P&gt;Creating moving load case with vehicle loaded from database:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim Cas As RobotMobileCase&lt;BR /&gt;Dim Route As RobotMobileCaseRoute&lt;BR /&gt;Dim VData As RobotVehicleData&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' route is a polyline &amp;nbsp;- creating polyline here&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Dim PlineGeometry As RobotGeoPolyline&lt;BR /&gt;Set PlineGeometry = Robapp.CmpntFactory.Create(I_CT_GEO_POLYLINE)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Dim Segment As RobotGeoSegment&lt;BR /&gt;Dim Object As RobotObjObject&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' create as many segments (= characteristic points of polyline) as you like in the way shown below&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Set Segment = Robapp.CmpntFactory.Create(I_CT_GEO_SEGMENT_LINE)&lt;BR /&gt;Segment.P1.Set 0, 2, 0&lt;/P&gt;
&lt;P&gt;PlineGeometry.Add Segment&lt;BR /&gt;PlineGeometry.Initialize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set Segment = Robapp.CmpntFactory.Create(I_CT_GEO_SEGMENT_LINE)&lt;BR /&gt;Segment.P1.Set 10, 2, 0&lt;/P&gt;
&lt;P&gt;PlineGeometry.Add Segment&lt;BR /&gt;PlineGeometry.Initialize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RouteNumber = 13&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' creating object from polyline&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Set Object = Robapp.Project.Structure.Objects.Create(RouteNumber)&lt;BR /&gt;Object.Main.Geometry = PlineGeometry&lt;BR /&gt;Object.Initialize&lt;BR /&gt;Object.Update&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' creating moving load case&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set Cas = Robapp.Project.Structure.Cases.CreateMobile(Robapp.Project.Structure.Cases.FreeNumber, "Moving Load Case", I_CN_PERMANENT)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' assigning route and route parameters to case&lt;/FONT&gt;&lt;BR /&gt;Set Route = Cas.GetRoute&lt;/P&gt;
&lt;P&gt;Route.Geometry = RouteNumber&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Dim Fac As RobotMobileCaseSegmentFactors&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Set Fac = Route.GetFactors(1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Fac.VL = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Fac.VR = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Route.SetFactors 1, Fac&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Route.LoadDirection.Set 0, 0, -1&lt;BR /&gt;Route.Step = 1&lt;BR /&gt; Cas.SetRoute Route&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' assign vehicle to case&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Set VLabel = Robapp.Project.Structure.Labels.Create(I_LT_VEHICLE, "Pojazd S - klasa E")&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' &lt;SPAN&gt;select vehicle name&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;Set VData = VLabel.Data&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;VData.LoadFromDBase "Pojazd S - klasa E", "PN1030"&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' select vehicle name and database name&lt;/FONT&gt;&lt;BR /&gt;Robapp.Project.Structure.Labels.Store VLabel&lt;BR /&gt; &lt;BR /&gt;Cas.Vehicle = "Pojazd S - klasa E" &lt;FONT color="#00FF00"&gt;' assign vehicle to case&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2012 11:13:23 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2012-03-02T11:13:23Z</dc:date>
    <item>
      <title>VBA loads - API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232602#M83808</link>
      <description>&lt;P&gt;I create a sub which define loads on a pannel but it's doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you have a look ?&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;
&lt;PRE&gt;Public typecharge As String
Public casdecharge As String
Public valeurcharge As Double
Public x_1 As Double
Public y_1 As Double
Public z_1 As Double
Public x_2 As Double
Public y_2 As Double
Public z_2 As Double
Public x_3 As Double
Public y_3 As Double
Public z_3 As Double
Public x_4 As Double
Public y_4 As Double
Public z_4 As Double&lt;/PRE&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;
&lt;PRE&gt;Public Sub charges()
'trotoirs
typecharge = I_CN_PERMANENT
casdecharge = "Equipements"
valeurcharge = 5.5
x_1 = 0.000
y_1 = 0.000
z_1 = 0.000
x_2 = 75.480
y_2 = 0.000
z_2 = 0.000
x_3 = 76.143
y_3 = 1.600
z_3 = 0.000
x_4 = 0.663
y_4 = 1.600
z_4 = 0.000
Call chargement_panneau_contour

End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub chargement_panneau_contour()

    Dim cas As RobotSimpleCase
    Dim recs As RobotLoadRecordMngr
    Dim rec_1 As RobotLoadRecordInContour
    Set cas = robapp.Project.Structure.Cases.CreateSimple(robapp.Project.Structure.Cases.FreeNumber, _
casdecharge, typecharge, I_CAT_STATIC_LINEAR)
    Set recs = cas.Records
    
' pression uniforme horizontale appliquée au contour
' définition des contours
    i = recs.New(I_LRT_IN_CONTOUR)
    
' création d'une nouvel enregistrement
    Set rec_1 = recs.Get(i)
    
' définition du plan de charge
    rec_1.Objects.FromText "1"
    rec_1.SetValue I_ICRV_PX1, 0
    rec_1.SetValue I_ICRV_PY1, 0
    rec_1.SetValue I_ICRV_PZ1, -valeurcharge
    rec_1.SetValue I_ICRV_PX2, 0#
    rec_1.SetValue I_ICRV_PY2, 0#
    rec_1.SetValue I_ICRV_PZ2, -valeurcharge
    rec_1.SetValue I_ICRV_PX3, 0#
    rec_1.SetValue I_ICRV_PY3, 0#
    rec_1.SetValue I_ICRV_PZ3, -valeurcharge
    
    ' sens de projection des efforts
    rec_1.SetValue I_ICRV_PROJECTION, 1

    ' nombre de points composant le contour
    rec_1.SetValue I_ICRV_NPOINTS, 4
    rec_1.SetValue I_ICRV_LOCAL, 0

    ' définition des points sur le panneau
    rec_1.SetPoint 1, 0, 0, 0
    rec_1.SetPoint 2, 1, 1, 0
    rec_1.SetPoint 3, 1, 0, 0

    rec_1.SetContourPoint 1, x_1, y_1, z_1
    rec_1.SetContourPoint 2, x_2, y_2, z_2
    rec_1.SetContourPoint 3, x_3, y_3, z_3
    rec_1.SetContourPoint 4, x_4, y_4, z_4
    
    rec_1.SetVector 0, 0, 1

    Set recs = Nothing
    Set rec_1 = Nothing
    Set cas = Nothing
  
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:25:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232602#M83808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-27T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232686#M83809</link>
      <description>&lt;P&gt;For the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; rec_1.SetValue I_ICRV_PZ1, valeurcharge * 1000&lt;/PRE&gt;&lt;P&gt;Problem solved (it's because I had to multiply by 1000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the selection of panels&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that it's not a selection automatic (of panels).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the command I need it's like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rec_1.Objects.???? 'automatic&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 13:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232686#M83809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232734#M83810</link>
      <description>&lt;P&gt;Some bugs should be corected as shown below :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Public typecharge As &lt;FONT color="#FF0000"&gt;Integer&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub chargement_panneau_contour()&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Set RobApp = New RobotApplication &amp;nbsp; &amp;nbsp;' or activate somewhere else robotapplication&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-style-span" style="color: #ff0000; line-height: normal;"&gt;&lt;FONT color="#000000"&gt;rec_1.Objects.FromText&lt;/FONT&gt; "30to36"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 13:03:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232734#M83810</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2011-11-18T13:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232764#M83811</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;For the&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; rec_1.SetValue I_ICRV_PZ1, valeurcharge * 1000&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;Problem solved (it's because I had to multiply by 1000)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind - you are using&lt;STRONG&gt; SI units (N,m)&lt;/STRONG&gt; in API dirrectly&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;For the selection of panels&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;My problem is that it's not a selection automatic (of panels).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;I think the command I need it's like&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;rec_1.Objects.???? 'automatic&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;only: &amp;nbsp;rec_1.Objects.FromText&lt;FONT color="#FF0000"&gt; "all" &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;/ if french &amp;nbsp;robot version used please use french text syntax: &amp;nbsp; &amp;nbsp; rec_1.Objects.FromText&lt;FONT color="#FF0000"&gt; "tous"&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ALL selects all objects&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 13:20:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3232764#M83811</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2011-11-18T13:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3234976#M83812</link>
      <description>&lt;P&gt;Ok thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 combinations number 20 21 22 and I want to have the max and the min of moments :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example Mxx+ and Myy-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="http://screencast.com/t/ym2kmo3Zr3l0"&gt;example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the code to display it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 09:24:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3234976#M83812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-21T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236502#M83813</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 11:01:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236502#M83813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-22T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236506#M83814</link>
      <description>&lt;P&gt;Display on Map or just find &amp;nbsp;to have it for further use?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 11:13:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236506#M83814</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2011-11-22T11:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236546#M83815</link>
      <description>&lt;P&gt;Display on map please&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:14:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236546#M83815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-22T12:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236690#M83816</link>
      <description>&lt;P&gt;Unfortunatelly it is not posible to dispplay only max \ min on map thru API&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mavueRobot.ParamsFeMap.WithDescription = True &amp;nbsp;' this is the only one settings for maps description&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 14:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236690#M83816</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2011-11-22T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236918#M83817</link>
      <description>&lt;P&gt;Can we select many combinations in the same time and ask for a display of Mxx+ for example ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will display the maximum normally ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 16:20:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3236918#M83817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-22T16:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3237930#M83818</link>
      <description>&lt;PRE&gt;mavueRobot.Selection.Get(I_OT_CASE).FromText ("&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;101&lt;/FONT&gt;&lt;/STRONG&gt;")&lt;/PRE&gt;
&lt;P&gt;write here selection (list) of cases&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2011 08:31:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3237930#M83818</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2011-11-23T08:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3238752#M83819</link>
      <description>&lt;P&gt;Is it possible to write this and ask MXX+?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps : Can you answer to my message on your private box?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;mavueRobot.Selection.Get(I_OT_CASE).FromText ("&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;101 102 103&lt;/FONT&gt;&lt;/STRONG&gt;")&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2011 19:02:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3238752#M83819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-23T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3239282#M83820</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;EM&gt;mateaus wrote:&lt;/EM&gt;&lt;BR /&gt;
&lt;P&gt;&lt;EM&gt;Is it possible to write this and ask MXX+?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a default top envelope is displayed automatically&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Ps : Can you answer to my message on your private box?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Answered&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2011 09:25:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3239282#M83820</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2011-11-24T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3346563#M83821</link>
      <description>&lt;P&gt;I would like to create a load on a line on my slab like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="http://screencast.com/t/3XdYMCvPV"&gt;linear load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the same macro like this one but in order to create a linear load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub chargement_panneau_contour()
 
'définit les cas de charges
Dim Loads As RobotCaseServer
Set Loads = robapp.Project.Structure.Cases

    Dim cas As RobotSimpleCase
    Dim recs As RobotLoadRecordMngr
    Dim rec_1 As RobotLoadRecordInContour
    Set cas = Loads.Get(nocasdecharge)
'creer un nouveau cas :
'    Set cas = robapp.Project.Structure.Cases.CreateSimple(robapp.Project.Structure.Cases.FreeNumber, _
casdecharge, typecharge, I_CAT_STATIC_LINEAR)
    Set recs = cas.Records
    
' pression uniforme horizontale appliquée au contour
' définition des contours
    i = recs.New(I_LRT_IN_CONTOUR)
    
' création d'une nouvel enregistrement
    Set rec_1 = recs.Get(i)
    
' définition du plan de charge
rec_1.Objects.FromText "tous"
    rec_1.SetValue I_ICRV_PX1, 0
    rec_1.SetValue I_ICRV_PY1, 0
    rec_1.SetValue I_ICRV_PZ1, -valeurcharge * 1000
    rec_1.SetValue I_ICRV_PX2, 0#
    rec_1.SetValue I_ICRV_PY2, 0#
    rec_1.SetValue I_ICRV_PZ2, -valeurcharge * 1000
    rec_1.SetValue I_ICRV_PX3, 0#
    rec_1.SetValue I_ICRV_PY3, 0#
    rec_1.SetValue I_ICRV_PZ3, -valeurcharge * 1000
    
    ' sens de projection des efforts
    rec_1.SetValue I_ICRV_PROJECTION, 1

    ' nombre de points composant le contour
    rec_1.SetValue I_ICRV_NPOINTS, 4
    rec_1.SetValue I_ICRV_LOCAL, 0

    ' définition des points sur le panneau
    rec_1.SetPoint 1, 0, 0, 0
    rec_1.SetPoint 2, 1, 1, 0
    rec_1.SetPoint 3, 1, 0, 0

    rec_1.SetContourPoint 1, x_1, y_1, z_1
    rec_1.SetContourPoint 2, x_2, y_2, z_2
    rec_1.SetContourPoint 3, x_3, y_3, z_3
    rec_1.SetContourPoint 4, x_4, y_4, z_4
    
    rec_1.SetVector 0, 0, 1

    Set recs = Nothing
    Set rec_1 = Nothing
    Set cas = Nothing
  
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can you help me ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2012 17:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3346563#M83821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-24T17:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3347977#M83822</link>
      <description>&lt;P&gt;Adjust this code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim cas As RobotSimpleCase&lt;BR /&gt; Dim recs As RobotLoadRecordMngr&lt;BR /&gt; Dim rec_1 As &lt;FONT color="#00FF00"&gt;RobotLoadRecordLinear3D&lt;/FONT&gt;&lt;BR /&gt; &lt;BR /&gt; Set cas = robapp.Project.Structure.Cases.CreateSimple(robapp.Project.Structure.Cases.FreeNumber _&lt;BR /&gt; , "Case_2", I_CN_PERMANENT, I_CAT_STATIC_LINEAR)&lt;BR /&gt; &lt;BR /&gt; Set recs = cas.Records&lt;BR /&gt; &lt;BR /&gt; i = recs.New(&lt;FONT color="#00FF00"&gt;I_LRT_LINEAR_3D&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Set rec_1 = recs.Get(i)&lt;BR /&gt; &lt;BR /&gt; rec_1.SetValue I_L3DRV_PX1, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_PY1, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_PZ1, -100&lt;BR /&gt; rec_1.SetValue I_L3DRV_MX1, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_MY1, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_MZ1, 0&lt;BR /&gt; &lt;BR /&gt; rec_1.SetValue I_L3DRV_PX2, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_PY2, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_PZ2, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_MX2, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_MY2, 0&lt;BR /&gt; rec_1.SetValue I_L3DRV_MZ2, 0&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; rec_1.SetValue I_L3DRV_LOCAL, 0&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; rec_1.SetPoint 1, 0.75, 1, 0 &lt;FONT color="#00FF00"&gt;&amp;nbsp;' set coordinates here&lt;/FONT&gt;&lt;BR /&gt; rec_1.SetPoint 2, 0.75, 5, 0&amp;nbsp;&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;&amp;nbsp;' set coordinates here&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Set recs = Nothing&lt;BR /&gt; Set rec_1 = Nothing&lt;BR /&gt; &lt;BR /&gt; Set cas = Nothing&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 09:22:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3347977#M83822</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-02-27T09:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3348525#M83823</link>
      <description>&lt;P&gt;Ok great, it's working,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yet, it's the most difficult load to programm : a convoy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="http://screencast.com/t/naxYcXL46Jr"&gt;convoi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have a lot of input data like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define the&amp;nbsp;&lt;SPAN&gt;polyline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the name of convoy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the direction of load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the type of load (uniform&amp;nbsp;&lt;SPAN&gt;surface)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;the value of load (P)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;the loads&amp;nbsp;&lt;SPAN&gt;geometry (x, y, dx, dy)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;and the convoy&amp;nbsp;&lt;SPAN&gt;dimensions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Would you mind give me an example like previous macros ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 16:09:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3348525#M83823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-27T16:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3349593#M83824</link>
      <description>&lt;P&gt;It is only possible to define Symmetric Vehicel using API.&lt;/P&gt;
&lt;P&gt;Are you still interested ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some example code how to define vehicle attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Define vehicles as many as you want with as many records as you want in the same way as shown in attached xls (one below another)&lt;/P&gt;
&lt;P&gt;These texts should be used in column C : Vehicle name, linear load, concentrated force, surface load&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2012 08:42:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3349593#M83824</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-02-28T08:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3349679#M83825</link>
      <description>&lt;P&gt;Yes still interested,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my example the loads are not symmetric. Maybe we can use a convoy saved in a catalog by myself ? But I don't know how to call the saved convoy in a catalog by API ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any solution ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2012 10:02:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3349679#M83825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-28T10:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3349989#M83826</link>
      <description>&lt;P&gt;Creating moving load case with vehicle loaded from database:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim Cas As RobotMobileCase&lt;BR /&gt;Dim Route As RobotMobileCaseRoute&lt;BR /&gt;Dim VData As RobotVehicleData&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' route is a polyline &amp;nbsp;- creating polyline here&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Dim PlineGeometry As RobotGeoPolyline&lt;BR /&gt;Set PlineGeometry = Robapp.CmpntFactory.Create(I_CT_GEO_POLYLINE)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Dim Segment As RobotGeoSegment&lt;BR /&gt;Dim Object As RobotObjObject&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' create as many segments (= characteristic points of polyline) as you like in the way shown below&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Set Segment = Robapp.CmpntFactory.Create(I_CT_GEO_SEGMENT_LINE)&lt;BR /&gt;Segment.P1.Set 0, 2, 0&lt;/P&gt;
&lt;P&gt;PlineGeometry.Add Segment&lt;BR /&gt;PlineGeometry.Initialize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set Segment = Robapp.CmpntFactory.Create(I_CT_GEO_SEGMENT_LINE)&lt;BR /&gt;Segment.P1.Set 10, 2, 0&lt;/P&gt;
&lt;P&gt;PlineGeometry.Add Segment&lt;BR /&gt;PlineGeometry.Initialize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RouteNumber = 13&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' creating object from polyline&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Set Object = Robapp.Project.Structure.Objects.Create(RouteNumber)&lt;BR /&gt;Object.Main.Geometry = PlineGeometry&lt;BR /&gt;Object.Initialize&lt;BR /&gt;Object.Update&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' creating moving load case&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set Cas = Robapp.Project.Structure.Cases.CreateMobile(Robapp.Project.Structure.Cases.FreeNumber, "Moving Load Case", I_CN_PERMANENT)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' assigning route and route parameters to case&lt;/FONT&gt;&lt;BR /&gt;Set Route = Cas.GetRoute&lt;/P&gt;
&lt;P&gt;Route.Geometry = RouteNumber&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Dim Fac As RobotMobileCaseSegmentFactors&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Set Fac = Route.GetFactors(1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Fac.VL = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Fac.VR = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Route.SetFactors 1, Fac&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Route.LoadDirection.Set 0, 0, -1&lt;BR /&gt;Route.Step = 1&lt;BR /&gt; Cas.SetRoute Route&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' assign vehicle to case&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Set VLabel = Robapp.Project.Structure.Labels.Create(I_LT_VEHICLE, "Pojazd S - klasa E")&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' &lt;SPAN&gt;select vehicle name&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;Set VData = VLabel.Data&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;VData.LoadFromDBase "Pojazd S - klasa E", "PN1030"&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;' select vehicle name and database name&lt;/FONT&gt;&lt;BR /&gt;Robapp.Project.Structure.Labels.Store VLabel&lt;BR /&gt; &lt;BR /&gt;Cas.Vehicle = "Pojazd S - klasa E" &lt;FONT color="#00FF00"&gt;' assign vehicle to case&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 11:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3349989#M83826</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-03-02T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: VBA loads</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3350029#M83827</link>
      <description>&lt;P&gt;I have created a convoy which name is "TS".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand your macro, I just have to replace&amp;nbsp;&lt;SPAN&gt;"PN1030" by "TS" :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VData.LoadFromDBase "Pojazd S - klasa E", "TS"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a catalog to save my convoy. I don't know how to save it otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 11px;"&gt;&lt;A target="_self" href="http://screencast.com/t/wnWpTqLIQ"&gt;catalog&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 11px;"&gt;Will it working with your macro ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an annex question :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 11px;"&gt;I would like to create a convoy's library in order to share it whith my&amp;nbsp;&lt;SPAN&gt;colleagues but I don't know where it is save in the computer and what I have to copy in their computer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:22:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/vba-loads-api/m-p/3350029#M83827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-28T14:22:03Z</dc:date>
    </item>
  </channel>
</rss>

