-
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…
-
Does Hypermesh have a batch mode for running python scripts?
I am using Hypermesh 2025. I am migrating from .tcl scripts. I have a fully written python script that I want to run from the command console without the GUI. Previously, this was done with .tcl scripting but I don't see the python alternative for running Hypermesh in batch mode. Is there no option to run Hypermesh in…
-
Importing custom python modules for Hypermesh 2024
I am writing a python script that attempts to import custom python modulus that I wrote. When I run my main python script that imports these modules from within Hypermesh 2024, I get an error "ModuleNotFoundError: No module named 'module_name_here'". Do I have to place my custom module into hypermesh's python module file…
-
In HyperMesh is there a way to use the code gathered using developer>recording option in Python?
Hello everybody, Since HyperMesh has an internal kernel and import modules such as hm are recognized in this kernek but since python doesn't recognize such modules. The code gathered through recording can only be used on HyperMesh's Python environment. I was wondering if there was a way to somehow implement this code to…
-
MotionView model in MotionSolve Jupiter Notebook?
How to access the MotionView model in MotionSolve Jupyter Notebook Also in MotionSolve Jupyter Notebook command from hw import mview gives error no hw modules Does Current MotionSolve Jupyter Notebook supports only postprocess data and run model which is entirely build inside notebook?
-
PSIM simulation using Python
This guide aims to demonstrate how to install the Python API and run a PSIM simulation using Python. Altair Compose Installation First, download the Altair Compose Software from the Altair Marketplace and install it on your computer. Altair Compose is a numerical computer environment in which it’s easy to develop and…
-
Get references to a Connector in a python script
I'm trying to get the references to a connector in a python script. I can do it in Hypermesh's GUI, simply righ-click on the connector in the connector browser and select references from the pop-up. Is there a way to do the same from a script in python? I have tried to use hm_getcrossreferencedentities but I get nothing in…
-
Elements of a connector realization seem inconsistent from Python API
I'm trying to access the elements of a realization from a script in Python. I'm using Hypermesh 2025. The realization is of a fastener (type Hole) with a head made of CBUSH and a body made of CBAR. The body is extended with two more CBAR elements (number of body extensions 1, Body Ext Config:CBAR). In the GUI all goes…
-
Could you advise whether it is possible to directly import Python code into PSIM?
Description: I am attempting to implement a controller, originally written in Python, into PSIM. The idea is to use the controller's output to generate reference signals for my converter’s control circuit and run simulations. This controller is intended to function as a higher-level controller.Could you advise whether it…
-
How to get assigned Tag Label for a Surface using Python Script?
In HyperMesh 2024.1 I've assigned a tag label to several surfaces in my model. How can I get the tag label for these surfaces using a Python Script? Thanks.
-
How to set material orientation with hypermesh 2025 python API?
When I use the record function this is what I get import hm import hm.entities as ent def run(): model = hm.Model() collectiona = hm.Collection(model, ent.Element, False) collectionb = hm.Collection(model, hm.FilterByEnumeration(ent.Element, ids=[*range(1,201)])) model.markintersection(collectiona=collectiona,…
-
Read .h3d files with Python
Is it possible to access the contents of a .h3d file with Python? Or, do you plan to add support for that in the near future? I've seen this question asked in the past, and the response involves using Compose, but with the recent Python APIs being developed by Altair I wonder if it's in your plans to include .h3d support.…
-
Python API - Setting and deleting attributes
Hello all, Does anybody know if it is possible to set and/or delete attributes in Python API? In short, I wanted to assign a node to a beam element and for that I have my collector "element" and I wrote: element.directionnode.__setattr__("id",node) This only works if there is a prior node as reference for the orientation…
-
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.
-
Create a Python extension
Hi, I'm trying to create a Python extension for Hyperview (2024), with a button in the ribbon for an existing script. I got this error: Traceback (most recent call last): File "S:/GitLab-Runner/builds/TqqBBs8CP/0/altairengineering/modvis/common/common/framework/win64/hwx/bin/win64/hwsigslot.py", line 1620, in _Emit File…
-
Can I use save/load functions in the python API?
Hi there, I am working with the Psim-Python API, and I would like to use the PSIM "save" function to pause and save my state in the simulation, and then the "load" function to continue the simulation from where I left off. I am wondering if it is possible to set the save and load flags through python?
-
How to retrieve the entities contained in an include in Hypermesh?
Hello, I'm trying to create a Python function that takes as an argument either the ID or the name of an Include, and returns collections containing all the entities present in the Include. I haven't found any Python commands that operate on Includes. Is it possible to create such a function with the current Python API?…
-
How to integrate a SimLab Model with TwinActivate and Third-Party Software
Hello everyone, I have a SimLab model with established parameterization for physical parameters (current, voltage). My goal is to integrate SimLab with a third-party software via TwinActivate for a bidirectional workflow. The process I envision is as follows: after SimLab simulation, the new data is sent to the third-party…
-
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 /…
-
Doc Python API
Hello guys I'm currently exploring de python API of Hypermesh, and it seems more powerful and practical than the TCL API. I would like to translate TCL scripts in python; however, the documentation is sill quiete incomplete or missing. Do you have any idea when the documentation will be more complete like the TCL…
-
Python code in Hypermesh 2024.1 version
Hello, I am trying to execute a Python code in Hypermesh 2024.1 version. I am still quite new to Hypermesh. But what I find that the regular syntax for Python does not work in Hypermesh and I get several errors. Greatly appreciate if anyone can help what I am doing wrong. From a quick search online I found that the syntax…
-
Execute Python 'pandas module not found' when installed
I'm trying to use the Execute Python operator in RapidMiner. I have installed Python, pip and pandas: When I execute my rapidminer process I get the following error: 'Pandas module not found -- The pandas module for Python was not found. Please make sure that the pandas module for Python is installed in your execution…
-
Hypermesh Python problem
Hello, I'm trying to learn python in order to make script that I can use in hypermesh. I have a script with an input command (ID_node = input("\nEnter the ID of a node :\n \n") If I run this script with : file → load → python script, Hypermesh crashes but if I type the command directly in the Hypermesh python window, i can…
-
Implementing Higher Complexity Functions Through Python User Subroutines in MotionView
Overview: Using the Expression Builder in MotionView allows the User to write a variety of expressions to define Forces, Motions, and the positions of Points. However, higher level functions can be cumbersome in the Expression Builder, so a User Subroutine can be implemented to enable more complex and higher-order…
-
Location of files for HyperView python examples
Hi guys, I started to run some python examples for HyperView and HyperGraph. My version is not latest 2023.1. May be somebody knows where are those input/supporting files for python examples: aerobox.fem, aerobox-LC1-2.op2.. (see the screenshot). I guess these files are from some other tutorials - HyperMesh or OptiStruct?…