[EC8 & Python code]

[EC8 & Python code]

xroguiez
Enthusiast Enthusiast
2,572 Views
25 Replies
Message 1 of 26

[EC8 & Python code]

xroguiez
Enthusiast
Enthusiast

Hello
I am trying to transform VBA code into Python from the example provided here: https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-seismic-case-definition/m-p/33578...
But I can't access the GetAnalysisParams() methods :

 

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

Can someone help me?
Thanks for any help

Xavier

0 Likes
2,573 Views
25 Replies
Replies (25)
Message 21 of 26

xroguiez
Enthusiast
Enthusiast

-

0 Likes
Message 22 of 26

xroguiez
Enthusiast
Enthusiast

Hello

 

Thanks to @Stephane.kapetanovic and @JacquesGaudin for their solution.


One partial (not defintitive ?) solution they found is to :

  • first set the environnement which is recongnize via the API in Python like that

 

 

Preferences.SetActiveCode(RobotOM.IRobotCodeType.I_CT_SEISMIC_LOADS, "EN 1998-1:2004/A1:2013")​​

 

 

  • make the settings for the parasismic case

 

 

EC8.Ag = 0.4
EC8.BehaviorFactor = 1
and so on...​​

 

 

  • But I'm still unable to use the "NF EN 1998-1/NA:2013 DECEMBRE 2013" code in this context in Python.

Does anyone have an idea or tip ?

Thanks
Xavier

Message 23 of 26

JacquesGaudin
Advocate
Advocate

@Romanich @xroguiez @okapawal @Rafal.Gaweda 

 

Would you be able to confirm whether "NF EN 1998-1/NA:2013 DECEMBRE 2013" is implemented in the API? It looks like it isn't, but hard to know without someone from Autodesk confirming.

 

Thanks.

0 Likes
Message 24 of 26

JacquesGaudin
Advocate
Advocate

Hi @gwizdzm,

 

I hope you're well.

 

@xroguiez was trying to use the following code for seismic load "NF EN 1998-1/NA:2013 DECEMBRE 2013" and it seems that it isn't implemented in the API.

Would you be able to confirm whether it's already implemented or if we just need to be patient for a little while?

 

Thanks.

Jacques

Message 25 of 26

gwizdzm
Autodesk
Autodesk

Hi @JacquesGaudin 

At the moment I can't say when EC8 will be available via API. I'm sending your ask to person responsible for range of development in the next version. He will answer you soon but because of his days off, probably after New Year.

Best Regards

Michal

0 Likes
Message 26 of 26

JacquesGaudin
Advocate
Advocate

Thank you @gwizdzm for looking into this. It would be great to hear back from the person who's working on this. Much appreciated!

0 Likes