Am I doing this right? I get the same Frequency even if I add loads?
Solved! Go to Solution.
Solved by jokiller70. Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
In all loadcases only SW is considered so the results are the same
Important - masses are added to case -1
Private Sub CommandButton1_Click() Dim robapp As RobotApplication Set robapp = New RobotApplication Dim cas As RobotSimpleCase Dim rec As RobotLoadRecord Set cas = robapp.Project.Structure.Cases.Get(-1) Set rec = cas.Records.Create(I_LRT_MASS_ACTIVATION) rec.SetValue I_MARV_FACTOR, 1.3 rec.SetValue I_MARV_CASE_NUM, 3 rec.SetValue I_MARV_ACTIVATION_DIR, 2 rec.SetValue I_MARV_SIGN, 1 End Sub
Shall I use -1 as loadcase?
-1 is a loadcase number to which you convert loads onto masses
eigval = robapp.Project.Structure.Results.Advanced.Eigenvalues.Value(icomb, ncomb)
ncomb 1 is always hig and ncomb 10 is very low. (Does not match our tested values)
No idea what you are talking about.
These results comes from the model you attached - load case 1
You can not add converted masses case to anything.
So I figured it out. But now it wont calculate. When i modify the "Load to mass coversion" with the exact same values it works...
https://screencast.autodesk.com/main/details/d2cc0bad-66f5-49a6-b376-f819c69e1f2e
Example code (model generation is required to be run (forced to be run))
Private Sub CommandButton1_Click() Dim robapp As RobotApplication Set robapp = New RobotApplication Dim cas As RobotSimpleCase Dim rec As RobotLoadRecord Dim ModalParams As RobotModalAnalysisParams Dim ModalCase As RobotSimpleCase Set ModalCase = robapp.Project.Structure.Cases.CreateSimple(robapp.Project.Structure.Cases.FreeNumber, "Modal", I_CN_EXPLOATATION, I_CAT_DYNAMIC_MODAL) Set ModalParams = ModalCase.GetAnalysisParams ModalParams.DisregardDensity = True ModalCase.SetAnalysisParams ModalParams Set cas = robapp.Project.Structure.Cases.Get(-1) Set rec = cas.Records.Create(I_LRT_MASS_ACTIVATION) rec.SetValue I_MARV_FACTOR, 1.2 rec.SetValue I_MARV_CASE_NUM, 2 rec.SetValue I_MARV_ACTIVATION_DIR, 2 rec.SetValue I_MARV_SIGN, -1 rec.SetValue I_MARV_INPUT_DIR_X, 1 rec.SetValue I_MARV_INPUT_DIR_Y, 1 rec.SetValue I_MARV_INPUT_DIR_Z, 1 robapp.Project.CalcEngine.GenerateModel End Sub
or
robapp.Project.CalcEngine.GenerateModel or robapp.Project.CalcEngine.AutoGenerateModel = True
When i add automaticaly generat to mass to load conversion, thoose works.
Can't find what you're looking for? Ask the community or share your knowledge.