-
How can I retrieve the element ID as shown in the entity editor via *createmark
Hello, I have a model where the same element ID is used for structural elements (Cquad) and cweld elements. I want to retrieve the element IDs of all cwelds in the model in tcl, so I used *createmark elem 2 "by config type" 0 mass CWELD But now I retrieve other IDs than the ones visible in the entity editor for the cwelds.…
-
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…
-
change feature angle for the function *appendmark
Hello. I have created a TCL script where I split shell elements into different components. The script workflow is as follows: I specify a point and determine the ID of the node closest to the point using hm_getclosestnode. I find the elements connected to the node. Using the function *appendmark elems 1 "by face", I extend…
-
Automating PSIM with Hyperstudy vs Scripting
The primary goal of this article is to highlight the advantages of Altair HyperStudy over making scripts to process data produced by PSIM. This article does not delve into the implementation details of a script or a Hyperstudy file. If you are not familiar with these yet, please refer below for the Hyperstudy and here for…
-
Tool to visualize and adapt element orientation (node order)
Overview: With this tool, you can easily adapt the orientation of Quads or Hexas. Usually the goal is to get an aligned element systems, which means a regular orientation of the node order. Usage/Installation Instructions: The script header contains variables that can be changed by the user upfront. Use File -> Load -> Tcl…
-
How to post-process debris with HyperView
Overview: This script helps determining the different debris resulting from parts showing rupture. Once the debris are identified, they can be pushed back to hyperView as sets, then Measure can be used to determine debris mass and velocity Prerequisite: Usage/Installation Instructions: look at the video below for the full…
-
How can we get the normal vector of the surfaces obtained after mid surface extraction?
I am only able to plot the normal vector but not able to retrieve it as a vector.
-
mat8 E1,E2,G12 missing after import
'.fem' import file has mat8 all the properties and there's no duplicates but when imported into Hypermesh 2025 it's missing E1,E2,G12 but has NU12,RHO though. I'm confused why this is happening. My colleague checked on Hypermesh 2024.1 &2022.3 and it's working fine without any issues. I'm confused, please help me out.
-
How to use tcl command *createmark with option "contains value"
Hi, I am trying to select components via tcl whose name contains the string "DIN". I.e. I want to select all components with the following names: "DIN123", "something.1\DIN891", "this-is-a-component-DIN-2010" and so on. I tried the following line: *createmark comps 1 "contains value" name "DIN" 1 But when checking if any…
-
How to count the Number of Displayed components in hyperview (TCL Script)
Hi, I am trying to automate postprocessing through tcl scripting. Can someone help me with the code that would help me count the displayed components in Hyperview (Output should be the number of components displayed). Is there a function that directly does this, would really appreciate any help here. PS I use 2024.1 Version
-
Vim で OptiStruct や Radioss に縦ライン表示を入れて見やすくする例題
始めに Radioss や OptiStruct の入力ファイルを見るとき、このように縦ラインが入ると見やすいですよね。本例題は、このような縦ラインを入れるための Vim のスクリプトの例です。 Vim が使えること前提で、Vim の使い方のような話は一切しませんので、ご了承ください。 Vim スクリプト まず、次の関数を用意します。私は .vimrc に書いています。set cc は縦線を入れることのできる設定コマンドです。この関数を呼び出すごとに 8桁、10桁、表示なし、の切り替えをします。 set cc="" function! OreBBCCToggle() if &cc == "" set…
-
Inspire Python API - user interaction with mouse to get coordinates for sketching and modeling?
Hello! I'd like to create some custom sketching and geometry tools in Inspire. Does the Inspire API have any features that would allow me to create scripts/extensions that incorporate user input via mouse clicks on a sketch/plane? I've been unable to find a method that will collect the coordinates of a clicked point on the…
-
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 /…
-
Preference file example for extra StackMath operations
Overview: This is the preference file which is used in the video below: Please note the user expressions in the Preference file needs to be coded with Templex. Please feel free to reach us if you have any request related to functions you would like to implement. Prerequisite: Usage/Installation Instructions: Load this…
-
SimLab Automation, identyfying faces, bodies, creating groups
Hi everyone! I wanted to improve my quick scripts to enable submodelling procedures as well as to make the flow more accessible for other geometries. I've stumbled on some issues while trying to identify the ID of faces inside my model. Basically it is a housing part that is pre-cutted and therefore it has submodell…
-
Preference file to expose source file of the critical subcase for Envelope loadcases
Overview: This preference file can be used in case you create an envelope in HyperView from different files, where loadcases share all the same loadcase name (eg: hyp files from NCode). It helps to identify the critical loadcase by source name instead of loadcase label Prerequisite: Usage/Installation Instructions: Follow…
-
PSD to Time Series OML Utility
Overview: This OML utility generates a time-domain realization of a signal from a PSD given as an input and writes it in a CSV file. It allows for visualization of both PSD and realization of the signal. The input PSD must be stored in a CSV file containing two columns, frequency [Hz] and magnitude. E.g.: 5,1.41E-02…
-
Can anyone tell me how to increase the Variable j by clicking the Next button in GUI.
set i 0 set j 0 set win .window catch {destroy $win} toplevel $win -class TopClass wm title $win "Master GUI" wm geometry $win 400x200+900+650 wm resizable $win 0 0 wm deiconify $win button $win.01 -text "Next" -font {times 15 bold} -command {Script [expr $i + 1]} place $win.01 -x 230 -y 130 -width 140 -height 36 proc…
-
[HyperView] Tcl 명령어를 활용한 각 window 별 .gif 파일 일괄 저장 방법
HyperView에서 간단한 TCL 명령어를 사용해 각 window 별 애니메이션을 .gif 파일로 일괄 저장하는 방법에 대해 안내 드리겠습니다. 해당 명령어를 사용하면 각 window마다 일일이 File > Screen capture > Video to file 할 필요 없이 지정한 폴더에 지정한 파일 명으로 일괄 저장됩니다. hwc hwd page current activewindow=1 #1번 윈도우를 활성화하는 명령어 hwc save animation page C:/user_path/1.gif #저장경로와 파일명, 확장자 지정하여 애니메이션 저장하는 명령어 위…
-
Rainflow Counting Algorithm - Create Simple 3D Plot
Overview: This OML script shows how to create a 3D histogram from results from the rainflow OML command. These are the steps it takes: Create signal to analyze Evaluate rainflow counting algorithm Create 3D histogram from means & ranges Format histogram to show cycle count for means & ranges Prerequisite: Install Altair…
-
How to rotate view in HyperMesh using script?
Hi guys! In HyperMesh tcl I use command *rotate 0.0 15.0 to rotate model in HyperMesh. Which command should I use to do the same in HyperView? We have "view orientation" but how to rotate to user-defined view? Thank you!
-
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?…
-
由3d模型转换到winprop中,想请问如何使用api可以达到快速给不同建筑物材料设置不同的材料编号
winprop material api
-
Prop Creator by Comps name
Overview: This Script can reduce labor when you have a large number of components and need to assign the same Property. Logic that uses 2D shell thickness information from the Component name to create a corresponding Property and assign it to the Component. Step1) There is a "t" in the Component name. This is the shell…