Contour Min/Max for Sets, Components, displayed entities

Sebastian_Karp
Sebastian_Karp
Altair Employee
edited December 2023 in Altair Exchange

Overview

This script loads procedures that can be used to print the Min/Max values to the TCL Console of a Contour.

It allows using parameters as specific Sets or Components to define for which entities the Min/Max values should be accessed.

NOTE: this script accesses the automatic Min/Max values of the Contour legend.

Pre-Requisite

For most of the script procedures, the Contour plot of interest needs to be applied before using the procedures.

If procedures are used, that access info based on sets, the entities contained by these sets must be visible before procedure execution.

Usage/Installation Instructions

Run script e.g. from DropDown  File > Load > Script  

Contour Plot needs to be applied before procedure usage.
Exception: proc  MinMax_Set_Ident  allows Result Type as Argument.

Then in TCL Console (open from View dropdown) below procedures can be used. See also video.

 

Script uses Min/Max of Legend to access Min/Max of Comps, Sets, Displayed entities by isolating Comps, Sets upfront. Min/Max will be output to TCL Console.

image

 

Prodecures  (potential parameters in CAPITAL):

      GetMinMax_L::MinMax_Legend
      GetMinMax_L::MinMax_Display
      GetMinMax_L::MinMax_Comp COMP-LABEL
      GetMinMax_L::MinMax_Set SET-LABEL
      GetMinMax_L::MinMax_Set_Ident SET-LABEL CONTOUR-RESULT-TYPE
      GetMinMax_L::MinMax_SetElem_Iso SET-LABEL

 

Description:

      GetMinMax_L::MinMax_Legend
          Outputs Min/Max of current legend

      GetMinMax_L::MinMax_Display
          Refreshes current result on displayed entities and outputs Legend Min/Max

      GetMinMax_L::MinMax_Comp COMP-LABEL
          Isolates Component handed over as parameter and re-applies current Contour to it.
          Argument Comp by ID or by Label.

      GetMinMax_L::MinMax_Set SET-LABEL
          Usable for Node Sets, too.
          Argument Set by Label, not ID.
          Does not isolate Set content, but contours only according entities with current contour.
          Means, Set entities must be visible already before using procedure.

      GetMinMax_L::MinMax_Set_Ident SET-LABEL CONTOUR-RESULT-TYPE
          Usable for Node Sets, too.
          Argument Set by Label, not ID.
          Does not isolate Set content, but contours only according entities with current contour.
          Means, Set entities must be visible already before using procedure.
          Uses Result Type as procedure argument.
          Other parameters like Result Layer are not handed over and used with HV default values.

      GetMinMax_L::MinMax_SetElem_Iso SET-LABEL
          Not usable for Node Sets.
          Argument Set by Label, not ID.
          Isolates Set content.

 

 

Examples for attached result file  "gehaeuse-done_Export-2022.3.h3d":

GetMinMax_L::MinMax_Legend
GetMinMax_L::MinMax_Display

GetMinMax_L::MinMax_Set Set6_Elem

GetMinMax_L::MinMax_Set_Ident Set5_Elem Displacement
GetMinMax_L::MinMax_SetElem_Iso Set7_Elem
GetMinMax_L::MinMax_Comp t2.2

 

image

image