<?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: [EC8 &amp;amp; Python code] in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11625019#M8261</link>
    <description>&lt;P&gt;To obtain codes numbers and names&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Preferences = RobotOM.RobotProjectPreferences
Preferences = robApp.Project.Preferences
#Preferences.SetActiveCodeNumber(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS, 000)
#Preferences.SetActiveCode(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS, "XXX")
CodeNumber = Preferences.GetActiveCodeNumber(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS)
      Code = Preferences.GetActiveCode(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS)&lt;/LI-CODE&gt;
&lt;P&gt;Table (to be continued)&amp;nbsp;to match seismic codes and Params&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Nbr ! Code                                          ! Params
# ----+-----------------------------------------------+-----------------------------
# 136 : "EN 1998-1:2004/A1:2013"                      ! RobotSeismicAnalysis_EC8_Params
# 137 : "EuroCode 8 2003 (General)"                   ! RobotSeismicAnalysis_EC8_General_Params
# 137 : "EN 1998-1:2004/A1:2013-General"              ! RobotSeismicAnalysis_EC8_General_Params
# 148 : "NF EN 1998-1/NA:2007 19.juil.2011"           ! ???
# 162 : "NF EN 1998-1/NA:2013 DÉCEMBRE 2013"          ! ???
# 163 : "NF EN 1998-1/Nice PPR/NA:2007 19 juil. 2011" ! ???
# TBC :                                               ! &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 10:29:55 GMT</pubDate>
    <dc:creator>Stephane.kapetanovic</dc:creator>
    <dc:date>2025-07-23T10:29:55Z</dc:date>
    <item>
      <title>[EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11620942#M8244</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I am trying to transform VBA code into Python from the example provided here: &lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-seismic-case-definition/m-p/3357839/highlight/true#M3137" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-seismic-case-definition/m-p/3357839/highlight/true#M3137&lt;/A&gt;&lt;BR /&gt;But I can't access the GetAnalysisParams() methods :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;caseEdX = structure.Cases.CreateSimple(6, "Ed+X",
RobotOM.IRobotCaseNature.I_CN_SEISMIC ,
RobotOM.IRobotCaseAnalizeType.I_CAT_DYNAMIC_SEISMIC)

num_EdX1 = caseEdX.GetSeismicCode #is empty
#doesn't work num_EdX1 = caseEdX.Records.New(RobotOM.IRobotSeismicAnalysis_EC8_General_Params) #a validate
EC8params = caseEdX.GetAnalysisParams #is empty too&lt;/LI-CODE&gt;&lt;P&gt;Can someone help me?&lt;BR /&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 20:39:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11620942#M8244</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-14T20:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11620992#M8245</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3595580"&gt;@xroguiez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must declare your variable types&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 21:17:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11620992#M8245</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-14T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11621561#M8246</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I agree with you but how to do it (in Python) ? I couldn't do it&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 05:40:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11621561#M8246</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T05:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11621628#M8247</link>
      <description>&lt;P&gt;&amp;gt; To declare a variable&lt;/P&gt;&lt;P&gt;Variable = Type_of_Variable (Class / Interface)&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;thData = IRobotThicknessData&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; To Cast&lt;/P&gt;&lt;P&gt;Variable_0 = Type_of_Variable(Variable_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b = 125.3&lt;BR /&gt;print(int(b))&lt;BR /&gt;Output&lt;BR /&gt;125&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;label = RobotLabel(labels.Create(IRobotLabelType.I_LT_PANEL_THICKNESS,"25mm"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;therefore, you must declare the types of variables when necessary and check the output types of the functions according to the variables types to perform the casts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 06:31:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11621628#M8247</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-15T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11621836#M8248</link>
      <description>&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7141517" target="_blank"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7141517&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 08:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11621836#M8248</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-15T08:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622575#M8249</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you for all your advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took the example in the link on the first 4 lines&lt;/P&gt;&lt;P&gt;VBA Source :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Dim ECParams As RobotSeismicAnalysis_EC8_General_Params

Set EQLoad = Robapp.Project.Structure.Cases.CreateSimple(200, "EarthQuake+X", I_CN_SEISMIC, I_CAT_DYNAMIC_SEISMIC)
Set ECParams = EQLoad.GetAnalysisParams
ECParams.Ag = Foglio2.Range("F9")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then a partial version of Python transcription that works perfectly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ECParams = RobotOM.RobotSeismicAnalysis_EC8_General_Params
ModalParams = RobotOM.RobotModalAnalysisParams
#I'm using different namespaces, but it's the same syntax
EQLoad = structure.Cases.CreateSimple(6, "Ed+X", 
                                    RobotOM.IRobotCaseNature.I_CN_SEISMIC ,
                                    RobotOM.IRobotCaseAnalizeType.I_CAT_DYNAMIC_SEISMIC)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The console proof, :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;gt;&amp;gt;&amp;gt; dir(ECParams)
['Ag', 'B', 'BehaviorFactor', 'Direction', 'DirectionType', 'ExcitationDir', 'Filter', 'ResidualMode', 'S', 'Spectrum', 'Tb', 'Tc', 'Td', '__doc__', '__repr__']
dir(EQLoad)
['AnalizeType', 'CreateObjRef', 'Equals', 'GetAnalysisParams', 'GetHashCode', 'GetLifetimeService', 'GetSeismicCode', 'GetType', 'InitializeLifetimeService', 'IsAuxiliary', 'MainMode', 'MemberwiseClone', 'ModesCount', 'Name', 'Nature', 'NatureName', 'Number', 'Records', 'ReferenceEquals', 'SetAnalysisParams', 'SetNatureExt', 'TimeStepCount', 'ToString', 'Type', 'UniqueId', 'UserId', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'label']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But the next point is completely blocking, i don't understand how to cast :, in this attempt, the intial variable is erasing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;#### here is my main cast problem...
ECParams = EQLoad.GetAnalysisParams
&amp;gt;&amp;gt;&amp;gt; ECParams = EQLoad.GetAnalysisParams
&amp;gt;&amp;gt;&amp;gt; dir(ECParams)
['Equals', 'GetHashCode', 'GetType', 'MemberwiseClone', 'ReferenceEquals', 'ToString', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another clumsy attempt :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;gt;&amp;gt;&amp;gt; EQLoad.SetAnalysisParams(ECParams)
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
TypeError: Le cast spécifié n'est pas valide.
&amp;gt;&amp;gt;&amp;gt; EQLoad.SetAnalysisParams(ECParams())
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
TypeError: Cannot create instances of RobotSeismicAnalysis_EC8_General_Params because it is abstract
&amp;gt;&amp;gt;&amp;gt; ECParams.Ag = 1.
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: static property 'Ag' of 'IRobotSeismicAnalysis_EC8_General_Params' can only be assigned to through a type, not an instance&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest, i don't know in this how to cast it ? Could you help me ?&lt;/P&gt;&lt;P&gt;Thanks for all&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:06:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622575#M8249</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622597#M8250</link>
      <description>&lt;P&gt;How did you define EQLoad ?&amp;nbsp; EQLoad =&amp;nbsp;RobotSimpleCase ?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:13:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622597#M8250</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-15T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622612#M8251</link>
      <description>&lt;P&gt;Hi again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anothers attempts of casting :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;gt;&amp;gt;&amp;gt; ECParams = RobotOM.IRobotSeismicAnalysis_EC_8_General_Params(caseEdX.GetAnalysis())
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: attribute 'IRobotSeismicAnalysis_EC_8_General_Params' of 'namespace#' object is read-only
&amp;gt;&amp;gt;&amp;gt; ECParams = RobotOM.RobotSeismicAnalysis_EC_8_General_Params(caseEdX.GetAnalysis)
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: attribute 'RobotSeismicAnalysis_EC_8_General_Params' of 'namespace#' object is read-only&lt;/LI-CODE&gt;&lt;P&gt;The thing i don't really understand is the main difference between the two path... for the modal load, it's works :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;caseMod = loads.CreateSimple(5, "Modale", 
                                RobotOM.IRobotCaseNature.I_CN_EXPLOATATION ,
                                RobotOM.IRobotCaseAnalizeType.I_CAT_DYNAMIC_MODAL)
num_Mod1 = caseMod.Records.New(RobotOM.IRobotLoadRecordType.I_LRT_SPECTRUM_VALUE) #a valider
#loadRec = caseMod.Records.Get(num_Mod) #pas utile ici on l'applique au projet
modParams = caseMod.GetAnalysisParams()
modParams.Mode = RobotOM.IRobotModalAnalysisMode.I_MAM_MODAL
modParams.ModesCount = 50
modParams.Damping = 5e-2
...
caseMod.SetAnalysisParams(modParams)&lt;/LI-CODE&gt;&lt;P&gt;These commands worked in Robot for the modal analysis and not for the seismic analysis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:17:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622612#M8251</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T14:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622616#M8252</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Like this ?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;EQLoad = structure.Cases.CreateSimple(6, "Ed+X", 
                                    RobotOM.IRobotCaseNature.I_CN_SEISMIC ,
                         RobotOM.IRobotCaseAnalizeType.I_CAT_DYNAMIC_SEISMIC)&lt;/LI-CODE&gt;&lt;P&gt;Is it right ?&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:18:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622616#M8252</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622626#M8253</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've used the following shortcuts&lt;/P&gt;&lt;LI-CODE lang="python"&gt;robApp.Project.New(RobotOM.IRobotProjectType.I_PT_SHELL)

project = robApp.Project
## IRobotStructure

structure = project.Structure  #IRobotStructure&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:20:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622626#M8253</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622681#M8254</link>
      <description>&lt;P&gt;Before answer to other post&lt;/P&gt;&lt;P&gt;Code fail ↓&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;ECParams = EQLoad.GetAnalysisParams&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3 possible reasons :&lt;/P&gt;&lt;P&gt;- EcParams not defined as&amp;nbsp;IRobotSeismicAnalysis_EC_8_General_Params type&lt;/P&gt;&lt;P&gt;- EqLoad not defined as a&amp;nbsp;&lt;SPAN&gt;RobotSimpleCase&amp;nbsp;type&lt;/SPAN&gt;&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;EQLoad = RobotSimpleCase
EQLoad = structure.Cases.CreateSimple(6, "Ed+X", 
                         RobotOM.IRobotCaseNature.I_CN_SEISMIC ,
                         RobotOM.IRobotCaseAnalizeType.I_CAT_DYNAMIC_SEISMIC)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Try also&lt;/P&gt;&lt;PRE&gt;ECParams = EQLoad.GetAnalysisParams()&lt;/PRE&gt;&lt;P&gt;try to set preferences by SetActiveCode function as explain by&amp;nbsp;cris.bac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is also a remarks by Rafal Gaweda in your link&lt;/P&gt;&lt;P&gt;aaa = RCase.GetSeismicCode ' this is check only line, for EC codes there is no name returned here&lt;/P&gt;&lt;P&gt;'RobotSeismicAnalysis_EC_8_Params refers to ENV 1998-1-1:1994 DAN francaise, which is currently unused - if you are interested I can tell you how to enable this unused code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:44:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622681#M8254</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-15T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622784#M8255</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand correctly for the first point, it works for me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; ECParams = RobotOM.RobotSeismicAnalysis_EC8_General_Params&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- EcParams not defined as&amp;nbsp;IRobotSeismicAnalysis_EC_8_General_Params type, it seems to be right ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; dir(ECParams)
['Ag', 'B', 'BehaviorFactor', 'Direction', 'DirectionType', 'ExcitationDir', 'Filter', 'ResidualMode', 'S', 'Spectrum', 'Tb', 'Tc', 'Td', '__doc__', '__repr__']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- EqLoad not defined as a&amp;nbsp;RobotSimpleCase&amp;nbsp;type, same conclusion ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; EQLoad = RobotOM.RobotSimpleCase
&amp;gt;&amp;gt;&amp;gt; dir(EQLoad)
['AnalizeType', 'CreateObjRef', 'Equals', 'GetAnalysisParams', 'GetHashCode', 'GetLifetimeService', 'GetSeismicCode', 'GetType', 'InitializeLifetimeService', 'IsAuxiliary', 'MainMode', 'MemberwiseClone', 'ModesCount', 'Name', 'Nature', 'NatureName', 'Number', 'Records', 'ReferenceEquals', 'SetAnalysisParams', 'SetNatureExt', 'TimeStepCount', 'ToString', 'Type', 'UniqueId', 'UserId', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'label']
&amp;gt;&amp;gt;&amp;gt; EQLoad = structure.Cases.CreateSimple(inumC, "Ed+X",
... RobotOM.IRobotCaseNature.I_CN_SEISMIC ,
... RobotOM.IRobotCaseAnalizeType.I_CAT_DYNAMIC_SEISMIC)
&amp;gt;&amp;gt;&amp;gt; dir(EQLoad)
['AnalizeType', 'CreateObjRef', 'Equals', 'GetAnalysisParams', 'GetHashCode', 'GetLifetimeService', 'GetSeismicCode', 'GetType', 'InitializeLifetimeService', 'IsAuxiliary', 'MainMode', 'MemberwiseClone', 'ModesCount', 'Name', 'Nature', 'NatureName', 'Number', 'Records', 'ReferenceEquals', 'SetAnalysisParams', 'SetNatureExt', 'TimeStepCount', 'ToString', 'Type', 'UniqueId', 'UserId', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'label']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Try Also&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attempt 1&lt;/STRONG&gt; :the structure of ECParams has been deleted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; ECParams = EQLoad.GetAnalysisParams
&amp;gt;&amp;gt;&amp;gt; dir(ECParams)
['Equals', 'GetHashCode', 'GetType', 'MemberwiseClone', 'ReferenceEquals', 'ToString', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attempt 2&lt;/STRONG&gt; :the structure of ECParams has also been deleted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; ECParams = RobotOM.RobotSeismicAnalysis_EC8_General_Params
&amp;gt;&amp;gt;&amp;gt; ECParams = EQLoad.GetAnalysisParams()
&amp;gt;&amp;gt;&amp;gt; dir(ECParams)
['Equals', 'GetHashCode', 'GetType', 'MemberwiseClone', 'ReferenceEquals', 'ToString', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attempt 3&lt;/STRONG&gt; : the structure of ECParams has also been deleted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; ECParams = RobotOM.RobotSeismicAnalysis_EC8_General_Params
&amp;gt;&amp;gt;&amp;gt; aaa = EQLoad.GetSeismicCode
&amp;gt;&amp;gt;&amp;gt; ECParams = EQLoad.GetAnalysisParams()
&amp;gt;&amp;gt;&amp;gt; dir(ECParams)
['Equals', 'GetHashCode', 'GetType', 'MemberwiseClone', 'ReferenceEquals', 'ToString', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:16:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622784#M8255</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622801#M8256</link>
      <description>&lt;P&gt;Is that works ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you write the correct integral sequence ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attempt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;1, 2, 3 not working ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622801#M8256</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-15T15:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622827#M8257</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Sorry it doesn't works.&lt;/P&gt;&lt;P&gt;But what do you mean with the integral sequence ? I've posted all the code and the console return&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:30:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622827#M8257</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622868#M8258</link>
      <description>&lt;P&gt;yes all code in one thread please to resume because it's hard to follow for &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7613523"&gt;@JacquesGaudin&lt;/a&gt;, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3017553"&gt;@1234eddie&lt;/a&gt;, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2390743"&gt;@napooil&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Is this conclusion still true? with Python ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-seismic-case-definition/m-p/3357839" target="_blank"&gt;https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-seismic-case-definition/m-p/3357839&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:26:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11622868#M8258</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-15T17:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11623076#M8259</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for this stream of unstructured information. I put everything in a single script ECM.txt (extension is not accepted). Is it ok ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running the script in IronPython2.7.12 and with Robot 2023. Do you have a solution to set the seismic parameters ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all&lt;/P&gt;&lt;P&gt;Xavier&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>Thu, 15 Dec 2022 17:18:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11623076#M8259</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-15T17:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11623994#M8260</link>
      <description>&lt;P&gt;With the line below, you can make sure that you are using the right default:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Robapp.Project.Preferences.SetActiveCode(I_CT_SEISMIC_LOADS, "EN 1998-1:2004/A1:2013-General")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The type of seismic params depends on this setting. If you put this line before defining the seismic load case, you should get the correct type of params.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: In Python, you need the brackets to call a function. Without brackets, you are referring to the function / method object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 01:19:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11623994#M8260</guid>
      <dc:creator>JacquesGaudin</dc:creator>
      <dc:date>2022-12-16T01:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11625019#M8261</link>
      <description>&lt;P&gt;To obtain codes numbers and names&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Preferences = RobotOM.RobotProjectPreferences
Preferences = robApp.Project.Preferences
#Preferences.SetActiveCodeNumber(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS, 000)
#Preferences.SetActiveCode(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS, "XXX")
CodeNumber = Preferences.GetActiveCodeNumber(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS)
      Code = Preferences.GetActiveCode(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS)&lt;/LI-CODE&gt;
&lt;P&gt;Table (to be continued)&amp;nbsp;to match seismic codes and Params&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Nbr ! Code                                          ! Params
# ----+-----------------------------------------------+-----------------------------
# 136 : "EN 1998-1:2004/A1:2013"                      ! RobotSeismicAnalysis_EC8_Params
# 137 : "EuroCode 8 2003 (General)"                   ! RobotSeismicAnalysis_EC8_General_Params
# 137 : "EN 1998-1:2004/A1:2013-General"              ! RobotSeismicAnalysis_EC8_General_Params
# 148 : "NF EN 1998-1/NA:2007 19.juil.2011"           ! ???
# 162 : "NF EN 1998-1/NA:2013 DÉCEMBRE 2013"          ! ???
# 163 : "NF EN 1998-1/Nice PPR/NA:2007 19 juil. 2011" ! ???
# TBC :                                               ! &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 10:29:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11625019#M8261</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2025-07-23T10:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11625849#M8262</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the 2 codes I got&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; preferences = robApp.Project.Preferences
&amp;gt;&amp;gt;&amp;gt; CodeNumber = preferences.GetActiveCodeNumber(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS)
&amp;gt;&amp;gt;&amp;gt; Code = preferences.GetActiveCode(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS)
&amp;gt;&amp;gt;&amp;gt; print(CodeNumber, Code)
(162, u'NF EN 1998-1/NA:2013 D\xc9CEMBRE 2013')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was not able to access the objects by trying the 2 methods&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; EC8 = RobotOM.RobotSeismicAnalysis_EC8_General_Params
&amp;gt;&amp;gt;&amp;gt; EC8.BehaviorFactor = 1.
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: static property 'BehaviorFactor' of 'IRobotSeismicAnalysis_EC8_General_Params' can only be assigned to through a type, not an instance
&amp;gt;&amp;gt;&amp;gt; EC8 = RobotOM.RobotSeismicAnalysis_EC8_Params
&amp;gt;&amp;gt;&amp;gt; EC8.BehaviorFactor = 1.
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: static property 'BehaviorFactor' of 'IRobotSeismicAnalysis_EC8_Params' can only be assigned to through a type, not an instance&lt;/LI-CODE&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 20:14:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11625849#M8262</guid>
      <dc:creator>xroguiez</dc:creator>
      <dc:date>2022-12-16T20:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: [EC8 &amp; Python code]</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11625876#M8263</link>
      <description>&lt;P&gt;as indicated in the correspondence table, code 162 does not seem to have a functional interface among the three available&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 20:31:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/ec8-amp-python-code/m-p/11625876#M8263</guid>
      <dc:creator>Stephane.kapetanovic</dc:creator>
      <dc:date>2022-12-16T20:31:33Z</dc:date>
    </item>
  </channel>
</rss>

