Robot API - Setting Analysis Parameters

Robot API - Setting Analysis Parameters

milczarekuba
Participant Participant
633 Views
2 Replies
Message 1 of 3

Robot API - Setting Analysis Parameters

milczarekuba
Participant
Participant

Hi,

How could I set some Paraameters of Buckling Analysis through Robot API. I've created new buckling analysis:

app = RobotApplicationClass()
NewBucklingCase = app.Project.Structure.Cases.CreateSimple(cases_new_number,BucklingCaseName,IRobotCaseNature.I_CN_EXPLOATATION,IRobotCaseAnalizeType.I_CAT_STATIC_BUCKLING)

 

then I'd like to change  number of modes

@Rafal.Gaweda i saw that you are into  Robot API, can i have some help from you?

0 Likes
Accepted solutions (1)
634 Views
2 Replies
Replies (2)
Message 2 of 3

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Hi @milczarekuba 

 

Example code

    Dim Simplecase As RobotSimpleCase
    Dim CaseServer As RobotCaseServer
    Dim BucklingParams As RobotBucklingAnalysisParams
    
    Set CaseServer = robapp.Project.Structure.Cases

    Set Simplecase = CaseServer.CreateSimple(1, "Buckling", I_CN_EXPLOATATION, I_CAT_STATIC_BUCKLING)
    
    Set BucklingParams = Simplecase.GetAnalysisParams
    BucklingParams.ModesCount = 50
    Simplecase.SetAnalysisParams BucklingParams


Rafal Gaweda
0 Likes
Message 3 of 3

milczarekuba
Participant
Participant

@Rafal.Gaweda 

Thanks a lot.

In Python it works as well.

0 Likes