hwIPage GetActiveWindow
Returns the active window index.
Syntax
hwIPage_handle GetActiveWindow
Application
HyperWorks Tcl Query
Error
Success (0) or an error code.
View new features for HyperWorks Desktop 2021.1.
Learn the basics and discover the workspace.
Discover HyperWorks Desktop functionality with interactive tutorials.
Start HyperWorks Desktop and configure the applications.
Create, open, import, and save models.
Control the view and display of your model in the modeling window.
Use the Session Browser to view the current session and all the pages and windows it contains in a hierarchical display.
Publish your HyperWorks Desktop session to HTML, PowerPoint, or Report files.
Use the Parameters Browser to parameterize the contents of a session file or report template and automate a variety of analysis processes.
Automate common workflows using the Process Manager or Automate tool.
Explore, organize and manage your personal data, collaborate in teams, and connect to other data sources, such as corporate PLM systems to access CAD data or publish simulation data.
Overview of external readers and the Altair Binary Format, the generic ASCII reader, running HyperWorks in batch mode, using Tcl/Tk commands, translators, and result math.
Extensions are programs integrated with HyperWorks to enhance or extend the user experience.
Altair Binary Format (ABF) is the standard binary format read by the program. A library called abflib allows you to create files in ABF.
A generic ASCII reader is now available which allows you to bring custom results directly into HyperView. The Altair ASCII format is useful for reading the results of any in-house or propriety codes which are saved in a generic format.
Batch mode allows you perform a series of operations outside the program interface.
External resources can be registered in preference files, session files, or Templex files. If an external resource is registered in a program session, it is automatically registered in the session file when the session is saved.
The HyperWorks Desktop scripting interface is a set of Tcl/Tk commands that follow a simple and consistent syntax.
APIs can be used to perform various actions in HyperWorks. For example, the AddPage API can be used to add a page within the project.
Overview of object hierarchy for HyperView, HyperGraph, HyperWorks Desktop, MotionView, MediaView and TextView.
Links to the introductory pages for the Tcl/Tk commands that can be used in HyperView, MotionView, HyperGraph, HyperGraph 3D, TextView and MediaView.
Examples of script uses cases.
Learn more about Tcl/Tk with this basic example.
Learn more about programming with HyperWorks Tcl/Tk commands with this tutorial.
Tcl/Tk classes for the following HyperWorks Desktop applications.
Adds a reference to an existing layer to the page.
Adds a window synchronization group.
Copies a window.
Forces each window to draw itself.
Returns the active window index.
Indicates whether the active window on the page is expanded or not.
Returns the page animation mode.
Returns an animator object.
Gets the average animation framerate, in frames per second.
Returns the correlation difference for this page.
Gets the current animation frame rate, in frames per second.
Finds the default page layout.
Gets the page’s ID.
Gets whether a page is written out when running hwlSession_handle PublishSession.
Returns a list of layer ID's referenced by this page.
Returns the page layout type.
Gets the sync block ID of the master, if it is set.
Gets the model step state.
Returns the number of layers referenced by this page.
Returns the number of sync blocks associated with this page.
Returns the number of windows.
Gets the percent of maximum speed currently used by the animator.
Returns an animator object for a single sync block in the page.
Returns a list of the sync blocks on this page.
Gets the flag that indicates whether the animation is enabled for the sync block.
Gets the offset for the sync block identified by the sync block ID.
Gets the scale of the sync block identified by the sync block ID.
Gets the sync table generation policy.
Gets the animation sync tolerance for the page.
Returns the page title.
Returns the page title visibility flag.
Gets a handle to an hwIFont interface for the font of the page title.
Returns the window associated with the given window index.
Gets a list of the window IDs.
Gets a list of window IDs in the synchronization group.
Gets the current state of an existing window synchronization group.
Returns the current animator's animation state.
Combines windows.
Pastes a previously copied window.
Removes a window synchronization group.
Resets the average animation frame rate tracker.
Sets the active window.
Expands or reduces the active window on the page.
Enables the animation frame rate tracker.
Set the page’s animation mode.
Sets whether or not the page is exported.
Sets the page layout type.
Sets the new master sync block ID and recalculates the master sync table. This command is ignored if the sync table generation policy is not set to MASTER_BLOCK first.
Sets the model step state to on or off.
Sets the percent of maximum speed to be used by the animator.
Enables or disables animation for the model or page area containing the sync block ID identified.
Sets a new offset for the sync block identified by the sync block ID
Sets a new scale for the sync block identified by the sync block ID.
Sets the sync table generation policy.
Sets the animation sync tolerance for the page.
Sets the animation sync tolerance for the page in seconds and nanoseconds for better accuracy.
Sets the page title.
Sets whether or not the page title is displayed.
Changes the state of an existing window synchronization group.
Starts the animation.
Stops the animation.
Swaps the contents of two windows on a page.
Translators are utilities that are run from the command line of the operating system to convert various types of files into different formats.
XML commands in the Result Math Module.
Record playback workflows in HyperView.
The Script Exchange is a database of freely accessible scripts posted by users and Altair engineers.
Overview of external readers and the Altair Binary Format, the generic ASCII reader, running HyperWorks in batch mode, using Tcl/Tk commands, translators, and result math.
The HyperWorks Desktop scripting interface is a set of Tcl/Tk commands that follow a simple and consistent syntax.
Tcl/Tk classes for the following HyperWorks Desktop applications.
Returns the active window index.
Returns the active window index.
hwIPage_handle GetActiveWindow
HyperWorks Tcl Query
Success (0) or an error code.
(c) 2021. Altair Engineering Inc. All Rights Reserved.