Example script for Apply Style to other HW windows

Sebastian_Karp
Sebastian_Karp
Altair Employee
edited December 2023 in Altair Exchange

Overview

Example script to apply styles like Contours, Measures, Orientations etc. to other windows of the same HyperWorks session.

Pre-Requisite

Style to apply to a different window needs to be active in current window (as this script is designed).

 

Info:

There are 2 ApplyStyleTo commands, depending on which attribute you want to apply. See Online help.
"destination" must be a model/post handle.

poIModel ApplyStyleTo  
    and 
poIPost ApplyStyleTo


Other API directly usable without handles is:
::post::applystyle::ApplyStyle "all" 1 resultsteps

 

Needed parameters can need to be edited / changed in TCL.

image,

 

image

Usage/Installation Instructions

Open attached example session and execute script by e.g. DropDown  File > Load > Script