- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am currently developing a Python script (using pywin32 / win32com.client) to automate the generation and screenshot capture of finite element (FE) map results on panel elements in Robot Structural Analysis 2022.
The overall workflow works smoothly (COM connection, panel selection, creation and detection of sub-structures, switching between $M_{xx}$ and $M_{yy}$ results using ParamsFeMap.CurrentResult). However, I am stuck on two specific display settings that refuse to apply to the view:
1. Context and Goal
I am trying to programmatically configure two display options for FE maps:
Check the "Description" box (to display numerical value labels on the FE mesh) under the Maps tab.
Switch the active envelope component to "Lower Envelope" (under the Component of... dialog for envelope combinations/cases).
2. Code & Methods Tested
Here is the Python snippet I am using to apply parameters to the active view (IRobotView):
3. Issue Encountered
For Description: Even when executing params_map.WithDescription = True (whether called before or after setting CurrentResult), the "description" checkbox remains unchecked in the UI, and no numerical values appear on the rendered mesh.
For Lower Envelope: Even when the active load case is an envelope combination (e.g., 101to107), the view remains stuck on the Upper Envelope, and the "Component of..." dialog does not switch to Lower Envelope.
4. Questions
Is there a specific method or property in IRobotViewFeMapParams or IRobotView that must be called to commit/apply the Description checkbox toggle?
What is the exact API constant or method to switch the envelope component selection (Upper vs Lower) on an active FE map view?
Is a specific refresh sequence required beyond vue.Redraw(1) and ViewMngr.Refresh() for these visual parameter changes to take effect in the rendering engine?
Solved! Go to Solution.