<?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 Optimization Parameters - dynamo/python in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6467099#M52559</link>
    <description>&lt;P&gt;This is not something I'll be able to solve myself but I'm trying to find somebody who could be of help for you. This means that it may take me a bit of time.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2016 14:09:50 GMT</pubDate>
    <dc:creator>Artur.Kosakowski</dc:creator>
    <dc:date>2016-07-29T14:09:50Z</dc:date>
    <item>
      <title>Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6464616#M52555</link>
      <description>Hello, I am trying to use the Robot API and dynamo in order to create a structure and design/optimize for all of the members. Everything has been going well, but I am struggling to figure out how to properly set the optimization parameters for the design. When I attempt to set the limit or option status for an optimization parameter (using SetLimit and SetOption), the commands change the value for both the limit and the option. So if I set the limit to 2, then the option changes to 2 as well. Also, the SetLimit command seems to round the limit value to the nearest integer, which is not very useful for smaller numbers since it rounds them to zero (and sets the Option to zero which deactivates the parameter) such as for minimum and maximum flange widths. If anyone has an idea as to why this is occurring any help is appreciated. Another issue I've been having is that I cannot seem to use the Solve command of the design module. When I input Nothing (None in python) to the function, it does not accept it and gives the error "ValueError: Could not convert argument 0 for call to solve", and then refuses to calculate. I've noticed that the function will accept other inputs, but still does not calculate the design. If anyone knows why this is happening, or if something has changed with the function it would be great if I could figure this out. Code is attached below, the problems are occurring the last few lines. Sorry if it is not well formatted, I am new to writing code. Thanks</description>
      <pubDate>Thu, 28 Jul 2016 13:26:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6464616#M52555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T13:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6465018#M52556</link>
      <description>&lt;P&gt;Is it for Steel Design? It seems that you missed the attachment (try to zip it).&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:47:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6465018#M52556</guid>
      <dc:creator>Artur.Kosakowski</dc:creator>
      <dc:date>2016-07-28T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6465220#M52557</link>
      <description>&lt;P&gt;Sorry about that, I was having trouble posting earlier. Yes it's for steel design, here's the code and dynamo file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import clr&lt;BR /&gt;clr.AddReferenceToFileAndPath(r"C:\Program Files\Dynamo1.0.0\Dynamo\Dynamo Core\1.0\ProtoGeometry.dll")&lt;BR /&gt;from Autodesk.DesignScript.Geometry import *&lt;BR /&gt;#The inputs to this node will be stored as a list in the IN variables.&lt;BR /&gt;dataEnteringNode = IN[0]&lt;BR /&gt;Span=IN[1]&lt;BR /&gt;NSpans=IN[2]&lt;BR /&gt;h=IN[3]&lt;BR /&gt;DefaultSection=IN[4]&lt;BR /&gt;Releases=IN[5]&lt;BR /&gt;LiveLoad=IN[6]&lt;BR /&gt;NPoints=NSpans*2+1&lt;BR /&gt;Lx=NSpans+1&lt;BR /&gt;x1=[i*(Span/NSpans) for i in range(Lx)]&lt;BR /&gt;x2_=x1[0:NSpans]&lt;BR /&gt;x2=[i+(Span/(2*NSpans)) for i in x2_]&lt;BR /&gt;z1=[]&lt;BR /&gt;lll=NSpans+1&lt;BR /&gt;z1=[0 for i in range(lll)]&lt;BR /&gt;z2=[]&lt;BR /&gt;z2=[h for i in range(NSpans)]&lt;BR /&gt;x1.extend(x2)&lt;BR /&gt;z1.extend(z2)&lt;BR /&gt;XCoords=x1&lt;BR /&gt;ZCoords=z1&lt;BR /&gt;# add Robot Structural Analysis API reference&lt;BR /&gt;from System import Environment&lt;BR /&gt;# get the current user folder i.e C:\Users\&amp;lt;you&amp;gt;\AppData\Roaming&lt;BR /&gt;user = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)&lt;BR /&gt;# add the reference to the interop file shipped with the package&lt;BR /&gt;clr.AddReferenceToFileAndPath(r"C:\Program Files\Autodesk\Autodesk Robot Structural Analysis Professional 2016\System\Exe\Interop1.RobotOM.dll")&lt;/P&gt;&lt;P&gt;# add needed import to be able to use Robot Structural Analysis objects&lt;BR /&gt;from RobotOM import *&lt;BR /&gt;from System import Object&lt;/P&gt;&lt;P&gt;application=RobotApplicationClass()&lt;BR /&gt;project=application.Project&lt;BR /&gt;structure=project.Structure&lt;BR /&gt;prefs=project.Preferences&lt;BR /&gt;labels=structure.Labels&lt;BR /&gt;application=RobotApplicationClass()&lt;/P&gt;&lt;P&gt;project=application.Project&lt;BR /&gt;close=project.Close()&lt;BR /&gt;new=project.New(7)&lt;BR /&gt;active=prefs.SectionsActive&lt;BR /&gt;data=active.GetDatabase(1)&lt;BR /&gt;all=data.GetAll()&lt;BR /&gt;count=all.Count&lt;BR /&gt;sectionlist=[]&lt;BR /&gt;for i in range(1,count):&lt;BR /&gt;&amp;nbsp;name=all.Get(i)&lt;BR /&gt;&amp;nbsp;if "W 200x15" in name:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;if labels.Exist(3,name)==0:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if "F" not in name:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if "T" not in name:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sectionlist=labels.Create(3,name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;labels.Store(sectionlist)&lt;BR /&gt;materials=prefs.Materials.SetDefault(1,"STEEL 350W")&lt;/P&gt;&lt;P&gt;view=project.ViewMngr&lt;BR /&gt;view1=view.GetView(1)&lt;BR /&gt;view1.Projection=3&lt;BR /&gt;view1.Redraw(True)&lt;BR /&gt;project=application.Project&lt;BR /&gt;point=RobotGeoPoint3DClass()&lt;BR /&gt;j=range(3*NSpans)&lt;BR /&gt;structure=project.Structure&lt;BR /&gt;nodes=structure.Nodes&lt;BR /&gt;bars=structure.Bars&lt;BR /&gt;#create nodes&lt;BR /&gt;for i in j[0:NPoints]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodes.Create(i+1,XCoords[i],0,ZCoords[i])&lt;BR /&gt;#create bars&lt;BR /&gt;#bottom&lt;BR /&gt;for i in j[1:NSpans+1]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bars.Create(i,i,i+1)&lt;BR /&gt;#top&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;for i in j[NSpans+1:NPoints-1]:&lt;BR /&gt;&amp;nbsp;bars.Create(i,i+1,i+2)&lt;BR /&gt;#diagonals&lt;BR /&gt;for i in j[2*NSpans:3*NSpans]:&lt;BR /&gt;&amp;nbsp;bars.Create(i,i-2*NSpans+1,i-NSpans+2)&lt;BR /&gt;&amp;nbsp;bars.Create(i+NSpans,i-2*NSpans+2,i-NSpans+2)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;#create supports&lt;BR /&gt;labels=structure.Labels&lt;BR /&gt;pin1=labels.Create(0,"Roller X")&lt;BR /&gt;pin1.Data.UX=0&lt;BR /&gt;pin1.Data.UY=1&lt;BR /&gt;pin1.Data.UZ=1&lt;BR /&gt;pin1.Data.RX=1&lt;BR /&gt;pin1.Data.RY=0&lt;BR /&gt;pin1.Data.RZ=1&lt;/P&gt;&lt;P&gt;labels.Store(pin1)&lt;/P&gt;&lt;P&gt;nodes.Get(1).SetLabel(0,"Pinned")&lt;BR /&gt;nodes.Get(NSpans+1).SetLabel(0,"Roller X")&lt;/P&gt;&lt;P&gt;NBars=bars.GetAll().Count&lt;BR /&gt;j=range(NBars)&lt;BR /&gt;for i in j:&lt;BR /&gt;&amp;nbsp;bar=bars.Get(i+1)&lt;BR /&gt;&amp;nbsp;bar.SetLabel(3,DefaultSection)&lt;BR /&gt;&amp;nbsp;bar.SetLabel(4,Releases)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;labels=structure.Labels&lt;BR /&gt;cases=structure.Cases&lt;BR /&gt;#delete existing load cases&lt;BR /&gt;simple=structure.Selections.CreatePredefined(2)&lt;BR /&gt;combo=structure.Selections.CreatePredefined(3)&lt;BR /&gt;code=structure.Selections.CreatePredefined(4)&lt;BR /&gt;cases.DeleteMany(simple)&lt;BR /&gt;cases.DeleteMany(combo)&lt;BR /&gt;cases.DeleteMany(code)&lt;BR /&gt;#selfweight load case&lt;BR /&gt;SW1=cases.CreateSimple(1,"SelfWeight",0,1)&lt;BR /&gt;SWRecord=SW1.Records.New(7)&lt;BR /&gt;SWGetRecord=SW1.Records.Get(1)&lt;BR /&gt;SWGetRecord.SetValue(2,-1)&lt;BR /&gt;SWGetRecord.SetValue(15, 1)&lt;BR /&gt;#live load case&lt;BR /&gt;LL1=cases.CreateSimple(2,"LiveLoad1",1,1)&lt;BR /&gt;LL1Record=LL1.Records.New(0)&lt;BR /&gt;LL1GetRecord=LL1.Records.Get(1)&lt;BR /&gt;LL1GetRecord.SetValue(2,LiveLoad*-1000)&lt;BR /&gt;LL1GetRecord.Objects.FromText(3)&lt;BR /&gt;#load combinations&lt;BR /&gt;combogen=cases.CodeCmbEngine&lt;BR /&gt;combogen.Params.GenType=2&lt;BR /&gt;gen=combogen.Generate()&lt;BR /&gt;application.Preferences.multiprocessing=1&lt;BR /&gt;calca=project.CalcEngine&lt;BR /&gt;anaparams=calca.AnalysisParams&lt;BR /&gt;anaparams.IgnoreWarnings=1&lt;BR /&gt;anaparams.EquationSolvingMethod=7&lt;BR /&gt;calcproject=calca.Calculate()&lt;/P&gt;&lt;P&gt;dim=project.DimServer&lt;BR /&gt;allbars=bars.GetAll()&lt;BR /&gt;members=dim.MembersService&lt;BR /&gt;gen=members.Generate(allbars)&lt;/P&gt;&lt;P&gt;connect=dim.Connection&lt;BR /&gt;#define groups&lt;BR /&gt;groups=dim.GroupsService&lt;BR /&gt;g1=groups.New(0,1)&lt;BR /&gt;g1.Name="Chords"&lt;BR /&gt;g1.Material="STEEL 350W"&lt;BR /&gt;strm=connect.GetStream()&lt;BR /&gt;strm.Clear()&lt;BR /&gt;strm.WriteText("1 2 3 4 5 6 7")&lt;BR /&gt;g1.SetMembList(strm)&lt;BR /&gt;grpprof=connect.GetGrpProfs()&lt;BR /&gt;grpprof.Clear()&lt;BR /&gt;strm.Clear()&lt;BR /&gt;strm.WriteText("W")&lt;BR /&gt;grpprof.SetFamilies("CISC",strm)&lt;BR /&gt;g1.SetProfs(grpprof)&lt;BR /&gt;groups.Save(g1)&lt;/P&gt;&lt;P&gt;g2=groups.New(0,1)&lt;BR /&gt;g2.Name="Diagonals"&lt;BR /&gt;g2.Material="STEEL 350W"&lt;BR /&gt;clrstrm=strm.Clear()&lt;BR /&gt;strm.WriteText("8 9 10 11 12 13 14 15")&lt;BR /&gt;g2.SetMembList(strm)&lt;BR /&gt;g2.SetProfs(grpprof)&lt;BR /&gt;groups.Save(g2)&lt;/P&gt;&lt;P&gt;calc=dim.CalculEngine&lt;BR /&gt;calcpars=calc.GetCalcParam()&lt;BR /&gt;calcconfs=calc.GetCalcConf()&lt;BR /&gt;strm.Clear()&lt;BR /&gt;calcconfs.SetParamValue(3,0.9)&lt;BR /&gt;strm.WriteText("1 2")&lt;/P&gt;&lt;P&gt;#for memeber verification calcpars.SetObjsList(1,strm)&lt;BR /&gt;#for group verification calcpars.SetObjsList(2,strm)&lt;BR /&gt;calcpars.SetObjsList(3,strm)&lt;BR /&gt;calcpars.SetLimitState(1,1) #ULS on&lt;BR /&gt;calcpars.SetLimitState(2,0) #SLS off&lt;BR /&gt;strm.Clear()&lt;BR /&gt;calcpars.SetLoadsList(strm)&lt;BR /&gt;optpars=calcpars.GetOptimParam()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;optpars.Optimization=1&lt;BR /&gt;optpars.SetOption(1,1)&lt;/P&gt;&lt;P&gt;optpars.SetOption(2,1)&lt;BR /&gt;optpars.SetLimit(2,0.5)&lt;/P&gt;&lt;P&gt;optpars.SetOption(3,1)&lt;BR /&gt;optpars.SetLimit(3,0.1)&lt;BR /&gt;optpars.SetOption(4,1)&lt;BR /&gt;optpars.SetLimit(4,0.01)&lt;BR /&gt;optpars.SetOption(5,0)&lt;BR /&gt;optpars.SetLimit(5,0.01)&lt;BR /&gt;optpars.SetOption(6,0)&lt;BR /&gt;optpars.SetOption(7,0)&lt;BR /&gt;&lt;BR /&gt;calcpars.SetOptimParam(optpars)&lt;BR /&gt;calc.SetCalcParam(calcpars)&lt;BR /&gt;calc.SetCalcConf(calcconfs)&lt;BR /&gt;&lt;BR /&gt;calc.Solve(None)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:09:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6465220#M52557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T17:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6466907#M52558</link>
      <description>&lt;P&gt;Hi Artur,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea about how to solve these problems specifically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Optimization parameters problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Optimization Parameters Problems.PNG" alt="Optimization Parameters Problems.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/258962i7662666A7B9475E5/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculate/solve problem:&lt;/P&gt;&lt;P&gt;&lt;IMG title="Calculation problem.PNG" alt="Calculation problem.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/258965i995A304C8FF5838D/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:48:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6466907#M52558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T12:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6467099#M52559</link>
      <description>&lt;P&gt;This is not something I'll be able to solve myself but I'm trying to find somebody who could be of help for you. This means that it may take me a bit of time.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 14:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6467099#M52559</guid>
      <dc:creator>Artur.Kosakowski</dc:creator>
      <dc:date>2016-07-29T14:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6475534#M52560</link>
      <description>&lt;P&gt;Try to rename the original and copy the attached dll to the System\exe folder of Robot 2017 (applies to this version only). Let me know if this allows you to run your code.&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, 03 Aug 2016 13:23:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6475534#M52560</guid>
      <dc:creator>Artur.Kosakowski</dc:creator>
      <dc:date>2016-08-03T13:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6476268#M52561</link>
      <description>&lt;P&gt;This fixed the problem with the optimization parameters, but I am still unable to calculate run the design calculations (member/group verification, group design, optimization). Any idea why the Solve function is not accepting None as an input, or whether there is something else I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG title="Calculate Problem.PNG" alt="Calculate Problem.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/260231i691A5210133AF126/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:22:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6476268#M52561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-03T17:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6478004#M52562</link>
      <description>&lt;P&gt;&lt;EM&gt;'The Solve function is implemented in C++ as STDMETHOD(Solve)(IDispatch* observer) but at the moment observer doesn’t impact on any functionality and in simply words it isn’t used inside function Solve. This stuff was defined for future use. So your previous thought to use project interface as parameter to this function was quite fine because doing so the IDispatch inteface is passing to the function and the problem why the Solve function is not accepting None as an input becomes insignificant. To check results of performing Calcul function please rewrite and modify proper part of VB code from attached file into your Phyton project. Results receiving examples are placed at points 5 to 9.'&lt;/EM&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;</description>
      <pubDate>Thu, 04 Aug 2016 11:38:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6478004#M52562</guid>
      <dc:creator>Artur.Kosakowski</dc:creator>
      <dc:date>2016-08-04T11:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6478104#M52563</link>
      <description>&lt;P&gt;It is working now, thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 12:30:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/6478104#M52563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-04T12:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API Optimization Parameters - dynamo/python</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/9025356#M52564</link>
      <description>&lt;P&gt;Hi everyone,&lt;SPAN&gt;unfortunately I need to solve the same problem that you seem to have solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was not able to translate the vba code and in particular the "null" argument into Solve. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am attaching some photos to be clearer&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;..&lt;BR /&gt;...&lt;BR /&gt;app =&amp;nbsp;RobotApplicationClass()&lt;BR /&gt;project = app.Project&lt;BR /&gt;dim = project.DimServer&lt;BR /&gt;calc = dim.CalculEngine&lt;BR /&gt;calcpars = calc.GetCalcParam()&lt;BR /&gt;calcconfs = calc.GetCalcConf()&lt;BR /&gt;&lt;BR /&gt;strm.Clear()&lt;BR /&gt;calcconfs.SetParamValue(3,0.9)&lt;BR /&gt;strm.WriteText("1 2 3 4")&lt;BR /&gt;calcpars.SetObjsList(3,strm)&lt;BR /&gt;calcpars.SetLimitState(1,1)&amp;nbsp;#ULS on&lt;BR /&gt;calcpars.SetLimitState(2,0)&amp;nbsp;#SLS off&lt;BR /&gt;strm.Clear()&lt;BR /&gt;calcpars.SetLoadsList(strm)&lt;BR /&gt;optpars = calcpars.GetOptimParam()&lt;BR /&gt;optpars.Optimization=1&lt;BR /&gt;optpars.SetOption(1,1)&lt;BR /&gt;optpars.SetOption(2,0)&lt;BR /&gt;optpars.SetLimit(2,0.5)&lt;BR /&gt;optpars.SetOption(3,0)&lt;BR /&gt;optpars.SetLimit(3,0.1)&lt;BR /&gt;optpars.SetOption(4,0)&lt;BR /&gt;optpars.SetLimit(4,0.01)&lt;BR /&gt;optpars.SetOption(5,0)&lt;BR /&gt;optpars.SetLimit(5,0.01)&lt;BR /&gt;optpars.SetOption(6,0)&lt;BR /&gt;optpars.SetOption(7,0)&lt;BR /&gt;calcpars.SetOptimParam(optpars)&lt;BR /&gt;calc.SetCalcParam(calcpars)&lt;BR /&gt;calc.SetCalcConf(calcconfs)&lt;BR /&gt;calc.Solve(null)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ROBOTT.JPG" style="width: 373px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/677266i30DF4E368AC3AFBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="ROBOTT.JPG" alt="ROBOTT.JPG" /&gt;&lt;/span&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 17:13:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-optimization-parameters-dynamo-python/m-p/9025356#M52564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-14T17:13:09Z</dc:date>
    </item>
  </channel>
</rss>

