-
CTX Manager Command Scripting - Re
Greetings, I am utilizing ""ctx::manager enter 2DMeshRebuild"" to call 2DMeshRebuild ribbon in 2D Section of HyperWorks. But I am not able fetch "Autoquality" & "Move (Edit)" from the "ctx::manager". Requesting suggestions and solutions for the same. Best Regards, Thirukumaran S
-
Fringe Criteria Setup Scripting - HyperWorks
Greetings, Requesting assistance in the "1D & 3D Fringe Criteria Setup Customization" with respective API Commands. We could customize the 2D fringe using "model.setqualitycriteria" but not the 1D & 3D configurations. Best Regards, Thirukumaran S
-
Bushing definition in Inspire motion
I use the following python code in the API of Inspire Motion v2025.1 to create a bushing between two imported parts. I applied a force to this system and the bushing displacement was according to the defined stiffness. I use the same type of definition in a more complicated model, and the solution does not converge. Is…
-
Python API Support for collecting entity list
Greetings, I would like to identify the element configurations & element types present in a particular component. I identified a python API based command as follows: _, elembycomp = model.hm_entityincollector_byname( collector=ent.Component, collector_name="compname", entity_type=ent.Element, config_num=0, type_num=0 )…
-
Flux 2024 Topology optimization through PyFlux
Hello, I have a question related to topology optimization in Flux 2024. I would like to launch the optmization manually, by writing a .py script and running it in the Python editor zone of Flux. I need to run it manually because I would like to use an input .fem file that is not automatically generated, rather written by…
-
Custom Python modules not re-imported when re-running script in Hypergraph?
Had a look round the discussion forums and can't find anyone else who has asked this… I have a main Python script which I am running on the command line in Hypergraph to operate on curve data. The main script imports my own Python module which calculates curves as functions of other curves. When I run the script for the…
-
3D penta elements combine in hypermesh 2025
Overview:To combine 3d penta elements in single click https://us.v-cdn.net/6038102/uploads/3R4NFXMNP8BI/combine-3d-full-row-fin.py Prerequisite: Usage/Installation Instructions: Post-Requisite: Release Version: 2025
-
Element Modify with S-direction update
Overview:Element Modify with S Direction update Prerequisite: Usage/Installation Instructions:Please cehck the powerpoint Post-Requisite: Release Version: 2025.0 https://us.v-cdn.net/6038102/uploads/RZ86TN66D1G6/tshell-s-direction.pptx…
-
CollectionByInteractiveSelection by choice of entity selection
Hi, With TCL, I can write *createmarkpanel [list comps solids part_assembly ] 1 "Select solids or comps or parts" But in Python (with Hypermesh 2025.1), when I tried col = hm.CollectionByInteractiveSelection(model=model, entity_class=[ent.Solid, ent.Component, ent.Part], message="coucou", ) I get TypeError Traceback (most…
-
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キャプチャが最前面にきてしまうのは変更することは可能でしょうか。(テキストの方が必ず後ろになってしまいます。) 以上、何卒よろしくお願いいたします。