Jump to content

Search the Community

Showing results for tags 'tcl'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Altair Support Forum
    • Welcome to Altair Support Forum
    • Installation , Licensing and Altair One
    • Modeling & Visualisation
    • Solvers & Optimization
    • Multi Body Simulation
    • Conceptual design and Industrial design
    • Model-Based Development
    • Manufacturing Simulation
    • CAE Process Automation
  • Academic Partner Alliance Forum
    • APA - Composites
    • APA - CFD & Thermal
    • APA - Vehicle Dynamics
    • APA - Manufacturing
    • APA - Crash and Safety
    • APA - Noise, Vibration and Harshness
    • APA - System Level Design
    • APA - Structural and Fatigue
    • APA - Marine
    • APA - Optical Design
  • Japanユーザーフォーラム
    • ユーザーフォーラムへようこそ
    • Altair製品の意外な活用例
    • インストール / ライセンス / Altair One / その他
    • モデリング(プリプロセッシング)
    • シミュレーション技術(ソルバー)
    • データ可視化(ポストプロセッシング)
    • モデルベース開発
    • コンセプト設計と工業デザイン
    • 製造シミュレーション
    • CAE プロセスの自動化
    • エンタープライズソリューション
    • データアナリティクス
    • 学生向け無償版(Altair Student Edition)


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 320 results

  1. Hi, I would like to know if I can write a batch file to run a tcl script through the HM platform without actually needing to open Hypermesh .? My code is written such that it can run via Wish console, but in my office where this macro will be used, only hypermesh is available to run tcl codes. Also as this work does not require HM to be open, I don't want to use the FILE -> RUN option in hypermesh (making it more user friendly by not asking him/her to open hm). Is there any way to create a batch to execute this file ?
  2. Hi , I have following the posts in the forum, this time I have a question regarding a problem I'm facing. I am currently working on bringing several checks we do for a full vehicle in Primer to HM. One of them is the C.O.G of the vehicle and the total scaled mass. I have checked the F10-> Time option and after checking for the set dt2ms value, I'm getting the total added below as shown in the picture. I want to get that value (0.0809878) directly. Is there any method/command for accessing that output displayed there?? I have tried hm_getelemchekbounds and hm_getelemcheckvalues but after that I will required to do a lot of work to get the total added mass. Any suggestions...
  3. Hey guys, I've created a GUI where the user can choose if he wants to apply a pressure load in x-, y- or z-direction by clicking on a button. By clicking on one of the buttons, a variable called "vector" will be created. This variable should later be used in the command that creates the load. Trying to select this variable with $vector on the position that is marked in yellow in the end of the screenshot, nothing happens. Could you somehow help me out with this problem? Kind regards Simon
  4. Hey guys, I'm trying to customize the setting up of simulation, so I'm using the command *createmarkpanel nodes 1 "Choose the relevant nodes for the constraints." to create the constraints. Later on, I use the same command for creating the load. If, for any reasons, I don't want to use this program for creating the constraints and click on proceed without marking any nodes, an error is occurring and the program stops directly. Thus, it's not possible to use the program to mark the nodes for the load afterwards. Is it possible to somehow avoid this error? Here you can find the relevant part of my script for creating the constraints: *createentity loadcols name=loadcol1 *drawlistresetstyle *setvalue loadcols id=1 name="Lagerung" *startnotehistorystate {Created Constraints} *createmarkpanel nodes 1 "Wählen Sie die Knoten der Lagerung aus." *loadcreateonentity_curve nodes 1 3 1 0 0 0 0 0 0 0 0 0 0 0 *endnotehistorystate {Created Constraints} Kind regards, Simon
  5. How to know the line direction of given line ? Regards, Brahmadev.
  6. Hey everybody, running the script attached, the following error is occuring: I have absolutely no clue why this is happening. Can you maybe help me out? Kind regards Simon convert_short.tcl
  7. Does anyone know how to use HWTK studio to develop guis? I can't get my head around the positioning of buttons and text boxes so was hoping the HWTK gui toolkit doesn't seem to have anything like that in it. When I click file, all it offers me is Exit.... which isn't exceptionally useful.
  8. HI, I'm new to hypermesh customization, I'm trying to create custom button in hypermesh to run particular Tcl script. thank you, sixz
  9. Hello, I am attempting to open HyperView and a model and run a TCL script to extract the displacement results from the model that has been loaded. I have been able to open HyperView from HyperMesh and load the correct model, however when it attempts to run the TCL script in HyperView I get the following error message Command line Tcl script read failed. invalid command name "mpo-9999766" while executing "m$t AddSelectionSet node" invoked from within "m$t GetSelectionSetHandle s$t [m$t AddSelectionSet node]" (file "C:/Users/Alec/Desktop/DispVer_HM/results/ExportDisp.tcl" line 6) invoked from within "source "C:/Users/Alec/Desktop/DispVer_HM/results/ExportDisp.tcl"" When I run ExportDisp.tcl just in HyperView and the code works perfectly. I have searched the forums to find out why when both pieces of code are run together it does not work. I have attached both scripts and a model in case that will help anybody troubleshoot. ExportDisp.tcl is the script that is designed to be run in HyperView and extract displacement results, and RunHyperView.tcl is run from HyperMesh and used to open HyperView, load model and run ExportDisp.tcl. Thank you in advance for your help. - Alec ExportDisp.tcl RunHyperView.tcl vf1_min3_dead_s1.h3d
  10. Hello all I'm have a question How I can add a button to tab area\menu with a tcl\tk script? P.S. "View ->Toolbars" and then i don't have "Options".
  11. hi, when I am running my macro if the number of nodes is higher am getting the above error. Any idea about this. I used lists and 2 inner for loop for iterating through nodes.
  12. hi, hm_appendmark nodes 1 "by adjacent" Since nodes cant be marked by adjacent. But I need to get adjacent nodes . Is there anyway that I can use
  13. How to convert .tcl to .tbc? Thanks, SriGanesh.
  14. Is there a list of tcl commands that exists for use with TableView ? I was able to find some for the TextView and other HyperWorks modules but could not find any commands for TableView in the HyperWorks Reference Guide on the Knowledge Base ? Thanks.
  15. I am trying to debug TCL code through hypermath tool in Hypermesh. But, i don't know why it doesn't work properly like other IDEs. I don't know how to debug it step by step, so that i can come to know the workflow. It doesn't even shows the values at breakpoints. Any idea?
  16. Hello, i just start to use Tcl script on hypermesh. I've a script who create a simple geometry and mesh on hypermesh. And i need to create boundary conditions. with the commande file I've : *startnotehistorystate {Created Force } *createmark nodes 1 1-19 1920-1945 4553-4559 *loadcreateonentity_curve nodes 1 1 1 -0 -0 50 0 0 50 0 0 0 0 0 *endnotehistorystate {Created Force } The problem is that the nodes are not always the ame (depend on my geometry). Can I create boundary conditions without the number of the nodes ? Like with lines ? Something like : *startnotehistorystate {Created Force } *createmark nodes 1 Line 3 *loadcreateonentity_curve nodes 1 1 1 -0 -0 50 0 0 50 0 0 0 0 0 *endnotehistorystate {Created Force } Thanks Sorry i'm really a beginner with TCL.
  17. Hi everybody, I'm programming a macro which attempts to build a bearing. I try to drag some elements in TCL but don't know how. If i create faces and drag them in hypermesh and copy the command.cmf lines to the script, macro selects the ID faces. I can't do it in this way because if I change the geometry probably ID faces may change too. Anyone know what to do?
  18. Hello at all, My Problem: have got two nodes (node 1 and node 2) --> node 1 is the reference for current position; node 2 is the reference for target position when using hm_getdistance nodes 1 2 0 , i get the following answer: 573.68267674323 495.66721 3.8981341703782e-014 288.8353 total distance x-distance y-distance z-distance I´ll put the values for total distance and x-, y-, z-distances in a subsequent command for translate a hole component from node1 to node 2. Therefore i need to create a vector with *createvector 1 $x $y $z *translatemark components 1 1 $total_distance 1 How can i get access or refer to the single values? Thanks for your help My latest try: *createmark components 1 "displayed" # *createmarkpanel nodes 1 "choose node 1" *createmark nodes 1 # *createmarkpanel nodes 2 "choose node 2" *createmark nodes 2 # set xVal [hm_getdistance nodes 1 2 dataname=x] set yVal [hm_getdistance nodes 1 2 dataname=y] set zVal [hm_getdistance nodes 1 2 dataname=z] set totVal [hm_getdistance nodes 1 2 dataname=tot] # *createvector 1 $xVal $yVal $zVal *translatemark components 1 1 $totVal the problem is the "dataname="
  19. Hey guys, maybe one of you can help me completing the following task: I need to know the IDs of the attached elements of elements. From a topology optimization I selected the elements: #Querry Elements set set_id [myModel AddSelectionSet element] myModel GetSelectionSetHandle elem_set $set_id elem_set Add "contour >= $isoValue" myQuery SetSelectionSet $set_id myQuery SetQuery "element.id element.centroid contour.value element.connectivity" myQuery WriteData $outPath/ElemsCentroid.txt This gets me a list with ELEMENT ID, CENTROID coordinates, and the nodes associated with the element. One way of solving my issue is to get a Node ID Element ID list. in order to find the attached elements. I really cannot find the script to do this, as there is no node.connectivity query option. Thanks in advance and best regards, Merula
  20. Hey guys, I'm trying to write a script which deletes elements of a model, that have a young's modulus under a certain value ("Grenzwert"). Running the following Code, this is working as it is supposed to for the first 5 iterations. Afterwards the number of elements deleted stays the same all the time. The problem is, that there are still elements with a youngs modulus lower than 100. Do you know what's the problem here? Some annotations which may help to understand the code: lStressValue_1 = list containing the young's modulus of every element delete_id = element id which should be deleted # Suchen aller Werte unter Grenzwert set delete_id "" set delete_index {} set Grenzwert 100 set y -1 set Element "" # y gibt den Index des Felded unter Grenzwert an wird zu einer Liste zusammengefügt foreach Element $lStressValue_1 { incr y if {[expr $Element < $Grenzwert]} { lappend delete_index "$y" } } # Die Element-Ids aus der Liste der lIDs mit den Elementen unter Grundwert herauslesen foreach Element_C $delete_index { append delete_id "[lindex $lID_1 $Element_C] " } *createmark elements 1 {*}$delete_id *deletemark elements 1 Kind regards, Simon
  21. Hello all How I can run .tcl script using a button? I searched a lot of information, but can't found I have a procedure: proc add_button {title command} { global frame count button $frame.$count -text $title -command $command -font "arial 10" pack $frame.$count -side top -pady 1 -padx 1 -fill x incr count } Then I call it: add_frame "TCL" add_button "test open file" {*readfile "C:/temp/11.tcl"} add_button "test open file 2" {*readfile "C:/temp/clip.hm"} But opening a .hm file works good, but .tcl does not work and I have an error: 0 0 while executing "*readfile "C:/temp/11.tcl"" invoked from within ".buttons.frame15.18 invoke" ("uplevel" body line 1) invoked from within "uplevel #0 [list $w invoke]" (procedure "tk::ButtonUp" line 24) invoked from within "tk::ButtonUp .buttons.frame15.18" (command bound to event) Can everyone explain me how correct this error or how can I run a .tcl file using buttons?
  22. Hi All, I want to Create a dictionary of Node Ids And their corrosponding coordinates using tcl. How can i create it? Regards, Sanket
  23. Hi All, what is closet node and how to use it for drag command using tcl commands? Regards, Sanket
  24. Hello everyone, I would like to know if someone has already defined class objects in hyperview in a TCL script. I saw in the install path (C:\Program Files\Altair\14.0\hw\tcl\hwie\init.tcl) that oriented objects are used from the hwie package ::hwie::oo:: and I wonder if we can use this package to add user-defined class. Tkanks in advance for your help Michael
  25. Hello, I have created a simulation file in TCL script. If i use loops in the file and wish to create a queing sequence of Radioss. How should the queing be done in TCL. Generally, In 2017 full version i can run Radioss from desktop and just go on running the .rad files individually it is queued automatically. But how should i do it with a TCL script in hypermesh. yours sincerely, kartik kanugo
  • Create New...