- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I am using the Robot API to extract modal data directly to Excel to save time. My code selects the modal load case as below
RobotSelection LoadCase_selection = robot.Project.Structure.Selections.Create(IRobotObjectType.I_OT_CASE);
LoadCase_selection.AddText(Convert.ToString(ModalLoadCase));
result_params.Selection.Set(IRobotObjectType.I_OT_CASE, LoadCase_selection); //Setting Load Case to ModalLoadCase
Is there a similar way to call a specific mode? My code currently scrolls through rows of results till it finds the correct mode as such (which is very slow as I have many mode shapes)
while (query_return != IRobotResultQueryReturnType.I_RQRT_DONE)
{
query_return = rserver.Query(result_params, row_set);
bool ok = new bool();
ok = row_set.MoveFirst();
while (ok)
{
int curr_mode = (int)row_set.CurrentRow.GetParam(IRobotResultParamType.I_RPT_MODE);
if (curr_mode == Mode)
{.........
Many Thanks
Solved! Go to Solution.