-
Filtering query() in HyperView Python API
Dear Altair Team and Community, My name is Daniele, and I am currently working with HyperView and an OP2 file generated by MSC Nastran. I’m using the Python API to extract results from specific element types such as CBAR, CBUSH, and CQUAD. I’m currently using the QueryResultsTool module and would appreciate clarification…
-
Is there a way to export a PNG of the geometry/Temperature isovalues map using terminal?
When I run Flux in the GUI, I can export the visual representation of the geometry or the heat map using printGraphicToFile(fileName=img_path, width=1280, height=1024). However, when I execute the same script in batch mode from the terminal, the image is not exported. Is there an alternative method to generate the PNG in…
-
Creating node set in Python API Hypermesh2025
I am using Hypermesh 2025.1 version that includes Python API. I am trying to create a set of nodes. When I record this GUI actions to translate to python code, I get this in the python console: import hm import hm.entities as ent model = hm.Model() def main(): set = ent.Set(model, config=201, includeid=0, name="set1",…
-
Applying Loads in Ls-dyna with python command in Hypermesh 2025
Hello, I am trying to apply velocity to a rigid component with card *boundary_prescribed_motion_rigid & want to specify rigid component ID in TYPEID. When I am using following code, it is creating different card but dont take Rigid comp id as input. import hm import hm.entities as ent model = hm.Model() loadcol =…
-
Altair SLC does not yet allow PROC IML; SUBMIT / PYTHON; ... ENDSUBMIT; QUIT;
Currently SLC is copying SAS Software by emulating PROC IML; SUBMIT / R; ... ENDSUBMIT; QUIT; However, SLC has equivalent functionality for Python, but does not yet allow PROC IML; SUBMIT / PYTHON; ... ENDSUBMIT; QUIT;, probably because SAS Software does not include it. Can this functionality be added to SLC?
-
pythonによるScreenをキャプチャし、pptxに貼付けする際の最適な方法について
reportによってpptxに貼付ける際、思うように貼付けることができません。(大体は小さめに貼付されます。)何か最適な方法はありますでしょうか。 具体的には、CaptureVideoTool Classのtop,bottom値の考え方,width,heightの値の意味について、ご教示お願い致します。 また、プレースホルダの順序について、screenキャプチャが最前面にきてしまうのは変更することは可能でしょうか。(テキストの方が必ず後ろになってしまいます。) 以上、何卒よろしくお願いいたします。
-
Changing a property to multiple elements at a time in python (hyperworks 2025)
I have a situation where I need to change a property to thousands of elements at a time. Recording the same step using hyperworks GUI I get a code that looks like this: def run(): model = hm.Model() elements_collection = hm.Collection(model, hm.FilterByEnumeration(ent.Element, ids=[3761243, 3762452])) MCID =…
-
In HyperMesh, programmatically obtain the path/filename of the current model
Hello, I'd like to programmatically get the path/filename of the model .hm file which is currently loaded in the session using python or tcl script. Is it possible? Thanks.
-
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 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…
-
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…