(API) Reaction table configuration

(API) Reaction table configuration

lucasgiacomet
Explorer Explorer
183 Views
2 Replies
Message 1 of 3

(API) Reaction table configuration

lucasgiacomet
Explorer
Explorer

Hello,

 

Is is possible to activate the following option "For all objects" through the API?

Envelope_option.jpg

 

 

Thank you.

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

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

Not exactly, the process via the API is to assign a full selection to the RobotTable.

Sub GetFullReactionTable()
  Dim Robapp As RobotApplication, rt As RobotTable
  Set Robapp = New RobotApplication
      Set rt = Robapp.Project.ViewMngr.CreateTable(I_TT_REACTIONS, I_TDT_DEFAULT)
          rt.Select I_ST_NODE, "ALL"
          rt.Select I_ST_CASE, "ALL"
  Set Robapp = Nothing
End Sub

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

Stephane.kapetanovic
Mentor
Mentor

Even though it is implicit in the case of a reaction table, you can start from a dedicated selection to obtain the list of supported nodes.

  Dim supSel As RobotSelection
  Set supSel = Robapp.Project.Structure.Selections.CreatePredefined(I_PS_NODE_SUPPORTED)
  rt.Select I_ST_NODE, supSel.ToText

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