-
How to answer this pop-up automatically in python scripting in HyperGraph?
I have a script that imports a binout file into HG. But after importing, the below attached window pops up. I want to answer this window automatically as I always choose the default values of this popup.
-
EDEMpy automated queries
I created a script to run a series of simulations (64 in total) starting from a template deck, which had 3 queries to save the X, Y and Z particle position. However, the queries were not created for the rest of the simulations. Is there a way using EDEMpy to create the queries and extract the data I want without opening…
-
Creating curves in Hypergraph with Python
I am currently attempting to write a Python script in Hypergraph to create 2D curves. I have loaded a few curves from an Optistruct PCH file and am writing my own Python module to calculate summary curves…. I think I should be able to get this far but am wondering: How do I pass in a Python list of x & y values into a…
-
Creating Custom Metadata attributes for entities
I am working on a traceability issue, which requires me to assign custom made IDs to Parts and Components(on Hypermesh Python API Hyperworks 2025.1). Manipulating already existing attributes is possible through set_attribute_value() method but making our own custom attribute (custom IDs) throws an AttributeError 'NoneType'…
-
Set id assignment in python API
Hello, I am facing an issue in assigning an id to my created node set using python API. This syntax doesn't work: node_set=ent.Set(model,cardimage="SET_GRID", name="node_set_name", id=9999) I noted that when I try recording my commands and generate a python code from tcl, the command *setvalue sets id=1 STATUS=2 id={sets…
-
hm.Collection is very slow
Hi everyone, I need to batch-process 450 different regions. For each region, I generate from node ids an RBE2. With a Python solution (hm.Collection), this operation is very slow : for a sample of "only" 85 regions, the process takes 160 seconds (around 3 minutes) and usesa lot of RAM. However, using TCL marks in Python…
-
I want to use python API to read out strain data
https://us.v-cdn.net/6038102/uploads/Z6XGNB42JBO0/strain.py https://us.v-cdn.net/6038102/uploads/TBGAC7DPKN7N/strain-gauges.csv I have a model with strains. I am interested in the strains in certain elements, but I don't want to manually check every element becuase I have to do quite some simulations. The script is suposed…
-
Setting Up a Python MotionSolve File in HyperStudy
In multibody dynamics, design exploration helps identify how different model parameters influence system performance. Altair HyperStudy is a powerful multidisciplinary design exploration and optimization tool that enables engineers to improve product performance and robustness through intelligent design analysis. Some…
-
New eLearning Courses - HyperMesh Python API
We recently released two new eLearning courses including, Introduction to the HyperMesh Python Interface. Introduction to the HyperMesh Python Interface is an introductory course designed for new users to familiarize themselves with the basics of the HyperMesh Python API. After the introduction, continue with another new…
-
PSIM on Autopilot Exploring Different Ways to Automate Your Power Electronics Simulations
Recorded webinar covering all possible PSIM automation options. In this session, you’ll gain practical insights into scripting-based and scripting-free approaches that can help accelerate your simulation workflows and decision-making. We'll explore the three scripting-based methods: C Language – The classic, legacy…
-
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