-
How do i change the property name dynamically on HM2025.1
How do i change the property name dynamically. import hm import hm.entities as ent import prettytable as pt model = hm.Model() Create a collection of all properties in the modelprop_data = [] props = hm.Collection(model, ent.Property) assem = WHEEL_HOUSE_LHS compntnm = MUD_TOP Printing a table of properties and their…
-
Hypermesh python automation script
i am using below script in hypermesh 2025.1 , Abaqus as my solver profile. after running i see nothing is shown as output . import hm import hm.entities as ent import prettytable as pt model = hm.Model() Create a collection of all properties in the modelprop_data = list() props = hm.Collection(model, ent.Property) Printing…
-
Get H3D results file location of active model with Python
Hello, I am working on a python script that will organize some stress results in a dataframe and will save it as a .csv file. I need to know the location of the active H3D file on HyperView so I can save the .csv file to the same directory. The H3D results file is opened through the standard HyperView UI and the script is…
-
HyperMesh Python/Tcl: How can I distinguish green check vs red X/cancel in *editmarkpanel or selecti
Is there a supported way in HyperMesh Tcl, Python, ctx::selection, *createmarkpanel, or *editmarkpanel to determine whether the selection panel was closed with the green check/accept button versus the red X/cancel button? Ideally, I am looking for something like: set status [some_selection_status_command] # accepted /…
-
nCode Designlife Python Scripting ModuleNotFoundError
Hi, I inserted a Python Glyph in nCode DesignLife 2026 (Windows 11). The correct Python version (3.14.0) and NumPy are installed, and the environment variables are set correctly. However, when I run the process or compile a simple dummy script, I get the error shown below. Does anyone have any clue what the problem might…
-
I am trying to use the HyperMesh Python API function markprojectnormallytosurface, but I am getting
TypeError: in method 'HMAPI_markprojectnormallytosurface', argument 3 of type 'hwDescriptor::Collection &'
-
Running Python scripts in Extensions
I am trying to run a simple script from a custom extension using the "DemoExtensionwithPython" but getting an attribute error. extension.xml ribbion.xml test.py error -
-
Calculate iron losses in Flux2D via Python Script
If I run the script at the bottom in Flux2D via the PyFlux Command prompt, a curve is made with the name "CURVE_LOSS_REGION_V101". If I extract the curve, I obtain the data I need. If I embed this piece of code in a Python script, the code runs smoothly and the script is ran without errors. However, the actual curve is not…
-
Is the archive job.py legitimate?
Im working with Altair 2026 and my antivirus detects it as malicious. The route of the archive is: C:\Program Files\Altair\2026\common\access-embedded\exec\pas\momclientmodules\pas\wlmadaptor\pbs\job.py Is it a legitimate archive?
-
How can we access the ribbon group menu (cad/fe comparison) through python/tcl/context commands?
Especially i want to access CAD/FE Comparison option under Topology>Edits>CAD/FE Comparison - ribbon group menu through python/tcl/context commands
-
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 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
-
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…