-
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.
-
Generating Efficiency Contour Maps for e-Drives Using PSIM and Python
Introduction PSIM is widely used for generating e-drive efficiency maps due to its speed and reliability in such applications. So far, we have discussed automating such simulations with HyperStudy: Fast-Track eDrive Efficiency Maps in PSIM | Webinar June 2025 While tools like HyperStudy offer code-free automation, Python…
-
Generating Valid Torque-Speed Points for PSIM Efficiency Maps with Python
Introduction Efficiency map generation is common with PSIM, with users worldwide leveraging its speed and robustness to automate power electronics simulations and achieve consistent, reliable results. This webinar walks you through the process of generating an efficiency map for a motor drive using PSIM and HyperStudy:…
-
problem with importing hm.entities in 2024.1
cannot import hm.entities in hypermesh 2024.1
-
How to get outer FE free edge for any FE component ?
I tried different methods to get the outer FE free edge for given component like free edges with features by varying feature angles… I couldn't get solid logic for scripting.. please let me know if there is any shortcut or procedure to detect outer edge of FE component. Please consider this as a priority Best Regards…
-
Can the elements in a set or ply be highlighted via the Python API?
When updating a set, or even a ply, via the native buttons, elements currently in the set are highlighted so to give the user a clear look at what it's currently in and what's out. Can this behaviour be recreated via the Python API? Updating a collection via interactive selection doesn't achieve this behaviour… Any idea?
-
Problem with hm.entites
Cannot import hm.entites
-
How to run python script in hypermesh using batch mode?
I'm currently working on automating a process using the Python API for HyperMesh. When I run the script in GUI mode, it executes successfully using the following command: "C:\Program Files\Altair\2025.1\hwdesktop\hwx\bin\win64\runhwx.exe" -client HyperWorksDesktop -plugin HyperworksLauncher -profile HyperworksLauncher -l…
-
Solver Interface with Python API commands
Hello Developers, I have been trying to change the solver profile from "Abaqus" to "LsDyna" thru some python scripting. I used python API commands as follows: I get solvername from the hm_getsolver tcl command. After this, I executed the commands from the recording as follows and got the output for "hm_getsolver" to be…
-
LLM for HyperWorks Python API
Hello, are there any experiences with LLMs, which can answer best my questions regarding Python HW API coding? I tried MS CoPilot and received a lot of hallucination. __
-
TypeError Collection from model.translatemark after model.duplicatemark
Hello, this code stops with a TypeError on the last command line. How to assign correctly the duplicated collection to the translatemark method? How to save the duplicated element IDs to a list? import hm import hm.entities as ent model = hm.Model() visible_elements = hm.CollectionByDisplayed(model, ent.Element)…
-
Confusion Using PyCustomBlock with ReadImage/ReadVideo and ShowImage in Twin Activate
Hi everyone, I'm exploring PyCustomBlock in Altair Twin Activate and running into some confusion around data flow and input/output port parameters. Here's what I'm trying to do: Use ReadImage or ReadVideo as the input source Process the image/video in a Python block (PyCustomBlock) Display the result using ShowImage…
-
Post Processing Scripting [Flux 2D]
I am simulating a three-phase transformer made with interleaved foil windings in Flux 2D, using the transient magnetic solver. I would like to estimate the ac to dc joule losses in each conductor by calculating the time average joule losses in the conductor regions. There are many conductor regions in my transformer so I…
-
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
-
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…
-
Python IDE in Inspire Cast
Hello all, I am testing Inspire Cast 2025.1. I would like to explore the Python functionality, but it seems there is no proper IDE, just Jupyter Notebooks, is that correct?
-
How to use vscode's HyperworksPyAPI ??????
I installed HyperworkspyAPI in vscode, but when i try to import hm, hv module etc. module can not be founded. Json file was uploaded. I try many attemps, but…… failed I am an employee from BYD Auto Industry Company Limited. Our company has purchased the product, and we are eager to receive technical support from an…
-
Python API: obtain a Set of Elements associated with a LoadFlux
Hello, I am working in HyperMesh (OptiStruct). My model contains a LoadFlux load, which is referencing a Set of elements. I can see the reference in the 'References' tab (image attached). Is it possible to find this reference programmatically, using Python API? Thanks
-
Given a ply, what's the most efficient way of calculating its area using the Python API?
To tackle the above problem I'm doing: import hm import hm.entities as ent model = hm.Model() collection = hm.Collection(model, ent.Element, hm.Collection(model, ent.Set, f"Name={ply.name}")) area = model.hm_getmass(collection) This seems to work just fine but starts to run a lot slower when dealing with hundreds of plies…
-
Need to create python script to open .h3d files in HyperView
Hi All, I would like help to create a python script to open. H3d files in Hyperview 2024 Ask user folder path, collect all.h3d files make a list of the files. once list is created open each .h3d file in new page of HyperView session and set up a file name as model title
-
OMLPY - Seamless OML Access from Python in Altair Products
What is OMLPY? An extension that enables you to call OML (Open Matrix Language) built-in and user-defined functions directly from Python within Altair products such as Compose, HyperMesh, HyperGraph, HyperView, and Inspire. Extension is available starting in Compose 2025.1. Key Features: Access all OML built-in functions…
-
HyperMesh Python Recording 기능 사용 방법 (2025.1 ver 기준)
HyperMesh 2025 버전부터 사용 가능한 Python Recording 기능에 대해 안내드리겠습니다. 아래 글은 2025.1 버전 기준으로 작성된 점 참고바랍니다. Recording 기능을 사용하기 위해서는 기능 활성화를 해주셔야 합니다. → 상단 메뉴 View > Ribbons > Developer 활성화 > Recording 클릭 (Python 창을 활성화 필수) *Python 창 활성화는 상단 메뉴 View > "Python Window" 클릭 Recording 버튼을 누르게 되면, Graphic Area 하단 "Start Recording" 버튼이 활성화 된…
-
Running PSIM Simulations Using a Python GUI
This article discusses the development of a python Graphical User Interface that runs a PSIM simulation in two stages. If you have not experimented with python on PSIM applications before, you should read the relative article here. Furthermore, this is only applicable with PSIM v2025.1 or later. If you have not installed…
-
Compose IDE for HyperWorks Python
Starting with HyperWorks 2025.1, users can create, edit, and debug HW python scripts using the Altair Compose IDE. 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 can start to write scripts and execute them from scratch. From…
-
How to Create a Part in Hypermesh using python api
How to I create a part in Hypermesh Using python API. If i dont give UID, I dont want to give a UID