poIPart GetColor
Gets the part color index.
Syntax
poIPart_handle GetColor
Application
HyperView Tcl Query
Description
This command returns the part color index.
Error
None.
View new features for HyperWorks Desktop 2022.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.
Sets the part material to default values.
Gets the part auto color index.
Gets the part color index.
Gets the part default color index.
Gets the part display option setting.
Gets the list of part display modes.
Gets the Euler angles with respect to the transform set by the call to poIModel SetRelativeTo.
Gets the part's ID.
Gets the part's ID visibility.
Gets the part's label.
Gets the internal locator string for a part (for internal use only).
Gets the part material ID (zero if none assigned).
Gets the ID of the material related to a component.
Gets the name of the material related to a component.
Gets the part's mesh mode.
Gets the orientation in the local coordinate system.
Gets the origin with respect to the transform set by the call to poIModel SetRelativeTo.
Gets the ID for the part assembly that contains a component.
Gets the part's parent assembly ID.
Gets the part's polygon mode.
Gets the part's pool label.
Gets the part's pool type.
Gets the position in the local coordinate system.
Gets the ID for the property related to a component.
Gets the positions relative to the parent assembly, local or global.
Gets the scale factors for each coordinate axis.
Gets the shading mode for a specific part and overrides the global setting that was set with poIRenderOptions GetShadeMode.
Gets the part's tracing mode.
Gets the part type's string.
Gets the part's visibility.
Rotates the part about the axis and angle.
Sets the part's auto color index.
Sets the part's color index.
Sets the part default color index.
Sets the part's display mode.
Sets the Euler angles (Z-X-Z) with respect to the system defined by the call to poIModel SetRelativeTo.
Sets the part's ID visibility.
Sets the part's label.
Sets the part's material index.
Sets the part's mesh mode.
Sets the part's orientation in the local coordinate system by the given Euler angles ZXZ.
Sets the part origin in the local coordinate system by the given vector.
Sets the part's polygon mode.
Sets the part position in the local coordinate system by the given vector.
Sets positions relative to the parent assembly, local or global.
Sets the part scale factors for each axis.
Sets the shading mode. This command overrides the global setting that was set with poIRenderOptions SetShadeMode.
Sets the part's tracing mode.
Sets the part's visibility.
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 and Model Library is a database of freely accessible scripts and models 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.
Gets the part color index.
Gets the part color index.
poIPart_handle GetColor
HyperView Tcl Query
This command returns the part color index.
None.
© 2022 Altair Engineering, Inc. All Rights Reserved.