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


Forums

  • Altair Support Forum
    • Welcome to Altair Support Forum
    • Installation and Licensing
    • 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製品の意外な活用例
    • インストールとライセンス
    • モデリング(プリプロセッシング)
    • シミュレーション技術(ソルバー)
    • データ可視化(ポストプロセッシング)
    • モデルベース開発
    • コンセプト設計と工業デザイン
    • 製造シミュレーション
    • CAE プロセスの自動化
    • エンタープライズソリューション
    • データアナリティクス
    • 学生向け無償版

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Interests


Organization

Found 311 results

  1. How to know the line direction of given line ? Regards, Brahmadev.
  2. 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
  3. 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.
  4. HI, I'm new to hypermesh customization, I'm trying to create custom button in hypermesh to run particular Tcl script. thank you, sixz
  5. 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
  6. 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".
  7. 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.
  8. 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
  9. How to convert .tcl to .tbc? Thanks, SriGanesh.
  10. 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.
  11. 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?
  12. 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.
  13. 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?
  14. 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="
  15. 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
  16. 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
  17. 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?
  18. Hi All, I want to Create a dictionary of Node Ids And their corrosponding coordinates using tcl. How can i create it? Regards, Sanket
  19. Hi All, what is closet node and how to use it for drag command using tcl commands? Regards, Sanket
  20. 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
  21. 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
  22. Hi All, Is there any command to popUp the Color Window at component model? To change the color of component please see attachment.. Regards, PD
  23. Hi All, I have a cylindrical model in which there are nodes present at the center of each axial location. Is there a way to filter center nodes from whole set of nodes available in the model? Imagine, I have no inputs or reference to find the center node available in the hm session? When my tool is opened, I wanted to collect all the center nodes available in the model. Please suggest me a way to achieve this... Regards Gopal
  24. Hi all, I have a node , say 659801 and I have coordinates as (138, 150 ,0) and coordinate system id =345 Now, I want the above coordinates with respect to some other coordinate system say, 400. I am not able to locate HM-APIs which does this transformation? Please suggest me a way or API to do this transformation of coordinates.. Regards Gopal
  25. Hi, I am trying to change the Result type in the Deformed shape in hyperview to "EigenVector(v)" using tcl command. The default option is Displacement . Need to change that to Eigen vector. IT will be great if some can help me out. Thanks in advance Regards, Emil
×
×
  • Create New...