-
Advanced Query with Multiple Query Rules in TCL
Hello everyone, I am working on a TCL script using the Advanced Query tool to retrieve the maximum and minimum values of a plotted contour in HyperView. I am using the ExtremeRule to obtain the TopN and BottomN values. However, it seems to me that the SetQueryLogic function only lets the Advanced Query use one rule at a…
-
TCL script to output CSV files containing queries from multiple result files
https://us.v-cdn.net/6038102/uploads/IN4IWS2EJ2UV/hyperview-qurey-with-node-formultih3d.tcl This is a TCL script for executing HyperView queries. Specifically, it uses a foreach loop to output the results from multiple h3d models. 1. Read the h3d file in the current working directory. If a node list already exists, simply…
-
Suggestion for reusing existing TCL/Tk scripts and migration to Python environment
Description: Are these statements correct? Virtually all features available in TCL/TK APIs are available in Python APIs. New features development has started happening more in Python APIs than in TCL/TK since the last two releases and will continue to happen so in future. Anyone using Python APIs will be future proof in…
-
Extract the Center of Gravity (CoG) and Mass Using Tcl Without Running the HyperMesh GUI
This script allows you to extract the cog and mass values of components in a FEM file without running the HyperMesh GUI. 1. Modify the fem file path in test_for_batch https://us.v-cdn.net/6038102/uploads/A3BA032YUI7D/test-for-batch.tcl .tcl file https://us.v-cdn.net/6038102/uploads/M3TXEPTAQ48X/image.png 2. Run the…
-
How to convert the recorded steps into a usable python script in hyper-mesh 2025
Hi, I'm new to Python scripting and currently exploring the recording feature in HyperMesh 2025 to capture the steps I’d like to automate. I’m wondering how I can convert these recorded steps into a usable Python script.
-
problem with importing hm.entities in 2024.1
https://us.v-cdn.net/6038102/uploads/V0U644Z6GMH7/image.png cannot import hm.entities in hypermesh 2024.1
-
Problem with hm.entites
Cannot import hm.entites https://us.v-cdn.net/6038102/uploads/S5Q4FO5GKRHD/image.png
-
How to prevent RBE2-only fastener realization when only one panel is present in nut CAD location?
https://us.v-cdn.net/6038102/uploads/YXD95TEU1RFL/screenshot-2025-08-01-101222.png I am using the Fastener tool for creating the FE representation of bolts (RBE2 for head, BAR2 for body with "bolt (washer 1)" connector control). While creating fasteners using solids (in my case, nuts) as identifiers for FE creation on an…
-
Move the part by selecting the desired vector direction. (Consider shell thickness)
Overview: You can move the entity by selecting the desired plane direction (the default is the normal direction of the selected entity). The movement will take into account the thickness of the shell. Release Version: 2025.1 https://us.v-cdn.net/6038102/uploads/N4DIAN202MX2/translation-bynormalvector.py
-
Hypermesh Python API: Getting elements by config
Hi, I'm wondering what the best way is to collect elements by type in the python API. I found how to collect all elements but I only want shells really which I can then feed into the next part of the script (creating a display model from a set of shells is the ultimate goal). Looking at the examples, it seems to suggest I…
-
HyperMesh Python Recording 기능 사용 방법 (2025.1 ver 기준)
https://us.v-cdn.net/6038102/uploads/TXBRHM9DDYYI/py-test.hm https://us.v-cdn.net/6038102/uploads/G7GEK9EJIBXY/py-test.py HyperMesh 2025 버전부터 사용 가능한 Python Recording 기능에 대해 안내드리겠습니다. 아래 글은 2025.1 버전 기준으로 작성된 점 참고바랍니다. Recording 기능을 사용하기 위해서는 기능 활성화를 해주셔야 합니다. → 상단 메뉴 View > Ribbons > Developer 활성화 > Recording 클릭 (Python 창을…
-
Automated scripts for consecutive analysis cases in SimLab
Overview: This is a script that can be run at once when there are multiple solutions that need to be interpreted. https://us.v-cdn.net/6038102/uploads/0YQQLHP6R8FT/image.png How To : Step 1) Check the analysis list you set in SimLab GUI. (ex. Steady, Steady_2_inlet++) Step 2) Define the analysis case you want to run.…
-
Compose IDE for HyperWorks Python
Starting with HyperWorks 2025.1, users can create, edit, and debug HW python scripts using the Altair Compose IDE. https://us.v-cdn.net/6038102/uploads/JLRRWHV6RCSZ/thumbnail.png How to ? From within the HyperWorks > Developer ribbon, you have a debugger Icon that launches Compose in 2 modes: with no file loaded, where one…
-
How to Create a Part in Hypermesh using python api
How to I create a part in Hypermesh Using python API. https://us.v-cdn.net/6038102/uploads/G2BPZB8GWIEZ/image.png https://us.v-cdn.net/6038102/uploads/Q0WCY4G57544/image.png If i dont give UID, https://us.v-cdn.net/6038102/uploads/9Z9TCG61RRC3/image.png I dont want to give a UID
-
HyperView/Graph 의 HWC console을 통한 Log/Copy to Tcl/Python 기능 활용 방법
WV console을 활용하여 Tcl/Python 언어 확인 방법 및 기록이 가능합니다. 사용 방법은 다음과 같습니다. 1. HWC console 창을 활성화 https://us.v-cdn.net/6038102/uploads/T7L9DSEG19GN/ec-8a-a4-ed-81-ac-eb-a6-b0-ec-83-b7-2025-06-30-125741.png 2. 기능 실행 후 기록 되는 commnad를 이용하여 HWC 언어로 바로 사용하거나, Copy to python/tcl을 클릭하여 python/tcl 언어로 작업하실 수 있습니다.…
-
Qurey csv file export tcl script.
This is the query csv file export tcl script. *hyperview_qurey.tcl When you execute the tcl file, a csv file is created in the pwd path. (You need to select the model file and result file in the GUI). 1. you can specify the file in advance through variableization. The first file is the model file, the second file is the…
-
How to take input from user in python api
How to i take input from the user using python api in Hypermesh. eg. while running the script a pop up window appears to select the required components or parts.
-
Use Batchmesh with python api in Hypermesh
While using Batchmesh in python, it shows a error of 'Input has inconsistent entity type'. Providing it the proper format parameters still shows the error. https://us.v-cdn.net/6038102/uploads/TWYM6ZNBBTXL/screenshot-2025-06-12-145724.png https://us.v-cdn.net/6038102/uploads/A6YQE30BD37M/screenshot-2025-06-12-145538.png
-
How to define local coordinate system and assign that system to node using python in hypermesh 2025?
I have written code to create system in the model. But the system is created randomly in the space. I want to define system according to user defined specific nodes (origin node, xaxis node, plane node). And also how to know what are the methods available for an object and what are the default parameters available for a…
-
Need help in Automation of Roller Bearing Creation
Overview: Automation of Roller Bearing Creation Prerequisite: The automation should scale with different bearing sizes and roller counts Usage/Installation Instructions: HyperMesh Optistruct Python automation Post-Requisite: A fully automated script for creating all RBE3 and RBE2/BUSH elements for the rollers Release…
-
Using External Parameter Files in PSIM
I am trying to automate my runs using Python and with the PsimCmd.exe. I have created the parameter files for my run and have checked that the generated file was working when loaded in the internal parameter file of the schematic. However, the thing is when I run it using python (with PsimCmd.exe) it seems that the…
-
Export inputdeck with assembly structure (OptiStruct, Nastran)
Overview: You can export .bdf and .fem files from Hypermesh in tcl. It exports the assemblies contained in one assembly as separate input files. Step 1. Import input file containing assembly structure https://us.v-cdn.net/6038102/uploads/XLFIV2VJIN8S/image.png Step 2. Load the script Step 3. Write the name of the assembly…
-
How to check the load value applied to an element
If a single Load Collector has loads of the same type at different locations, you can calculate the force and location for each element and return the calculated for each element. Step 1. Open the attached script file from File > Run > tcl/tk script and run it. Step 2. Save the data value as result.csv file in the document…
-
How to make automated comparison tool using Hypermesh model verification director
I want to make a model comparison automation tool/script using hypermesh MVD tool. Is there anyone who can tell me how to start making an automation tool, whether it is a script or a python module? It would be nice to tell you the script or python module that drives the mvd tool or is related to it.…
-
Altair Python Training Dedicated to Hypermesh / Hyperworks Automation
Hi. our organization want to develop the current team with Python training from scratch which dedicated focusing on HyperMesh Automation. I am curious to know, what should be our training path to follow and points to cover in training so as to get insides of the Automation using python. Also, If you know any Institute /…