[Robot RSA API 2022 / Python] Unable to enable "Description" and "Lower Envelope" via ParamsFeMap / SetVisibilityStatu

[Robot RSA API 2022 / Python] Unable to enable "Description" and "Lower Envelope" via ParamsFeMap / SetVisibilityStatu

samuel_de-kleuverSM76J
Participant Participant
141 Views
2 Replies
Message 1 of 3

[Robot RSA API 2022 / Python] Unable to enable "Description" and "Lower Envelope" via ParamsFeMap / SetVisibilityStatu

samuel_de-kleuverSM76J
Participant
Participant

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:

  1. Check the "Description" box (to display numerical value labels on the FE mesh) under the Maps tab.

  2. 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

  1. Is there a specific method or property in IRobotViewFeMapParams or IRobotView that must be called to commit/apply the Description checkbox toggle?

  2. What is the exact API constant or method to switch the envelope component selection (Upper vs Lower) on an active FE map view?

  3. 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?

 

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

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

maps result with bottom envelope and select characteristic point as the description position(API) Help screen capture of results Maps(Panels)(API) Command VBA Projection Capture of a view

var viewMngr = new RobotApplication().Project.ViewMngr;
var view = viewMngr.GetView(1); view.ParamsFeMap.WithDescription = true;
viewMngr.Refresh();

To zoom in on a specific panel, you need to understand both 2D and 3D transformations.

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
0 Likes
Message 3 of 3

lauri_barnhart
Autodesk
Autodesk

Hello, @samuel_de-kleuverSM76J.

 

Checking to see if the information provided by Stephane.kapetanovic provided the information you needed to resolve your question. If it did, please consider clicking on the 'Accept Solution' button. If you still need additional assistance, please provide an update here.

 

Thanks,


Lauri | Community Manager
0 Likes