<?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 Generate EC8 General seismic case through API in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7141517#M44961</link>
    <description>&lt;P&gt;Hello to everyone,&lt;/P&gt;&lt;P&gt;I have a problem when I want to generate a seismic case according to EC8 General via VBA.&lt;/P&gt;&lt;P&gt;The code I wrote is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim EQLoad As RobotSimpleCase
    Dim ECParams As RobotSeismicAnalysis_EC8_General_Params
    Dim ModalParams As RobotModalAnalysisParams
    
    
    If Not Robapp.Visible Then
        Set Robapp = Nothing
        MsgBox "Open Robot and load Model", vbOKOnly, "ERROR"
        Exit Sub
    Else
        
        Set EQLoad = Robapp.Project.Structure.Cases.CreateSimple(100, "Modal", I_CN_EXPLOATATION, I_CAT_DYNAMIC_MODAL)
        Set ModalParams = EQLoad.GetAnalysisParams
        ModalParams.ModesCount = 20
        EQLoad.SetAnalysisParams ModalParams
        
        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")
        ECParams.B = 0.2
        ECParams.BehaviorFactor = Foglio2.Range("F14")
        ECParams.DirectionType = I_SADT_HORIZONTAL
        ECParams.Direction.Set 1, 0, 0
        ECParams.ExcitationDir.ResolutionActive = True
        ECParams.S = Foglio2.Range("F5")
        ECParams.Spectrum = I_SAST_DIMENSIONING
        ECParams.Tb = Foglio2.Range("F6")
        ECParams.Tc = Foglio2.Range("F7")
        ECParams.Td = Foglio2.Range("F8")
        
        Set EQLoad = Robapp.Project.Structure.Cases.CreateSimple(201, "EarthQuake+Y", I_CN_SEISMIC, I_CAT_DYNAMIC_SEISMIC)
        Set ECParams = EQLoad.GetAnalysisParams
        ECParams.Ag = Foglio2.Range("F9")
        ECParams.B = 0.2
        ECParams.BehaviorFactor = Foglio2.Range("F14")
        ECParams.DirectionType = I_SADT_HORIZONTAL
        ECParams.Direction.Set 0, 1, 0
        ECParams.ExcitationDir.ResolutionActive = True
        ECParams.S = Foglio2.Range("F5")
        ECParams.Spectrum = I_SAST_DIMENSIONING
        ECParams.Tb = Foglio2.Range("F6")
        ECParams.Tc = Foglio2.Range("F7")
        ECParams.Td = Foglio2.Range("F8")&lt;/PRE&gt;&lt;P&gt;What is it wrong in it?&lt;/P&gt;&lt;P&gt;I receive a Type Mismatch error when the line&lt;/P&gt;&lt;PRE&gt;Set ECParams = EQLoad.GetAnalysisParams&lt;/PRE&gt;&lt;P&gt;try to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has someone the solution or an example which explain how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2017 15:59:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-09T15:59:18Z</dc:date>
    <item>
      <title>Generate EC8 General seismic case through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7141517#M44961</link>
      <description>&lt;P&gt;Hello to everyone,&lt;/P&gt;&lt;P&gt;I have a problem when I want to generate a seismic case according to EC8 General via VBA.&lt;/P&gt;&lt;P&gt;The code I wrote is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim EQLoad As RobotSimpleCase
    Dim ECParams As RobotSeismicAnalysis_EC8_General_Params
    Dim ModalParams As RobotModalAnalysisParams
    
    
    If Not Robapp.Visible Then
        Set Robapp = Nothing
        MsgBox "Open Robot and load Model", vbOKOnly, "ERROR"
        Exit Sub
    Else
        
        Set EQLoad = Robapp.Project.Structure.Cases.CreateSimple(100, "Modal", I_CN_EXPLOATATION, I_CAT_DYNAMIC_MODAL)
        Set ModalParams = EQLoad.GetAnalysisParams
        ModalParams.ModesCount = 20
        EQLoad.SetAnalysisParams ModalParams
        
        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")
        ECParams.B = 0.2
        ECParams.BehaviorFactor = Foglio2.Range("F14")
        ECParams.DirectionType = I_SADT_HORIZONTAL
        ECParams.Direction.Set 1, 0, 0
        ECParams.ExcitationDir.ResolutionActive = True
        ECParams.S = Foglio2.Range("F5")
        ECParams.Spectrum = I_SAST_DIMENSIONING
        ECParams.Tb = Foglio2.Range("F6")
        ECParams.Tc = Foglio2.Range("F7")
        ECParams.Td = Foglio2.Range("F8")
        
        Set EQLoad = Robapp.Project.Structure.Cases.CreateSimple(201, "EarthQuake+Y", I_CN_SEISMIC, I_CAT_DYNAMIC_SEISMIC)
        Set ECParams = EQLoad.GetAnalysisParams
        ECParams.Ag = Foglio2.Range("F9")
        ECParams.B = 0.2
        ECParams.BehaviorFactor = Foglio2.Range("F14")
        ECParams.DirectionType = I_SADT_HORIZONTAL
        ECParams.Direction.Set 0, 1, 0
        ECParams.ExcitationDir.ResolutionActive = True
        ECParams.S = Foglio2.Range("F5")
        ECParams.Spectrum = I_SAST_DIMENSIONING
        ECParams.Tb = Foglio2.Range("F6")
        ECParams.Tc = Foglio2.Range("F7")
        ECParams.Td = Foglio2.Range("F8")&lt;/PRE&gt;&lt;P&gt;What is it wrong in it?&lt;/P&gt;&lt;P&gt;I receive a Type Mismatch error when the line&lt;/P&gt;&lt;PRE&gt;Set ECParams = EQLoad.GetAnalysisParams&lt;/PRE&gt;&lt;P&gt;try to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has someone the solution or an example which explain how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 15:59:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7141517#M44961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-09T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generate EC8 General seismic case through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7144992#M44962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These Params are implemented for EN 1998-1:2004/A1:2013&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim EC_Params  As RobotSeismicAnalysis_EC_8_Params
Dim RCase As RobotSimpleCase

Set RCase = Robapp.Project.Structure.Cases.CreateSimple(Robapp.Project.Structure.Cases.FreeNumber, "Modal", I_CN_PERMANENT, I_CAT_DYNAMIC_MODAL)

Set RCase = Robapp.Project.Structure.Cases.CreateSimple(Robapp.Project.Structure.Cases.FreeNumber, "Seismic EC", I_CN_SEISMIC, I_CAT_DYNAMIC_SEISMIC)
aaa = RCase.GetSeismicCode

Set EC_Params = RCase.GetAnalysisParams

EC_Params.BehaviorFactor = 1#
EC_Params.Direction.Set 1, 1, 1
EC_Params.DirectionType = I_SADT_HORIZONTAL
EC_Params.SoilClass = I_SAST_EC_8_SOIL_A
EC_Params.SpectrumType = I_SAST_DIMENSIONING
EC_Params.StructureType = I_SAST_EC_8_B
EC_Params.ZoneType = I_SAZT_EC_8_IA

RCase.SetAnalysisParams EC_Params&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7144992#M44962</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2017-06-12T08:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generate EC8 General seismic case through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145021#M44963</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/589195"&gt;@Rafal.Gaweda&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you for your reply. However, I asked for the General EC 8, not the standard. This because I need to define the Tb, Tc, Td (and so on) parameters instead of the parameters given in the other EC8 parameters.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:27:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145021#M44963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T08:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generate EC8 General seismic case through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145038#M44964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim EC_Params  As RobotSeismicAnalysis_EC8_General_Params
Dim RCase As RobotSimpleCase

Set RCase = Robapp.Project.Structure.Cases.CreateSimple(Robapp.Project.Structure.Cases.FreeNumber, "Modal", I_CN_PERMANENT, I_CAT_DYNAMIC_MODAL)

Set RCase = Robapp.Project.Structure.Cases.CreateSimple(Robapp.Project.Structure.Cases.FreeNumber, "Seismic EC", I_CN_SEISMIC, I_CAT_DYNAMIC_SEISMIC)

Set EC_Params = RCase.GetAnalysisParams

EC_Params.Ag = 1
EC_Params.B = 1
EC_Params.BehaviorFactor = 1
EC_Params.DirectionType = I_SADT_HORIZONTAL
EC_Params.Tb = 1
'......
RCase.SetAnalysisParams EC_Params
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 08:36:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145038#M44964</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2017-06-12T08:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generate EC8 General seismic case through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145076#M44965</link>
      <description>&lt;P&gt;Yes, exactly what I wrote before. the problem was that when running, the program gave me an error of type mismatch.&lt;/P&gt;
&lt;P&gt;But I found the solution: in the model, in job preferences, the code for loads was set to EC8 and not the General one. Changing this setting, the program runs correctly. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 09:02:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145076#M44965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T09:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Generate EC8 General seismic case through API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145105#M44966</link>
      <description>&lt;P&gt;It is sufficient to add the following code before creating loads:&lt;/P&gt;
&lt;PRE&gt;Robapp.Project.Preferences.SetActiveCode I_CT_SEISMIC_LOADS, "EN 1998-1:2004/A1:2013-General"&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 09:22:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/generate-ec8-general-seismic-case-through-api/m-p/7145105#M44966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T09:22:08Z</dc:date>
    </item>
  </channel>
</rss>

