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
  • Japanユーザーフォーラム
    • ユーザーフォーラムへようこそ
    • Altair製品の意外な活用例
    • インストールとライセンス
    • モデリング(プリプロセッシング)
    • シミュレーション技術(ソルバー)
    • データ可視化(ポストプロセッシング)
    • モデルベース開発
    • コンセプト設計と工業デザイン
    • 製造シミュレーション
    • CAE プロセスの自動化
    • Student Edition(学生用無償版)

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


Location

Found 243 results

  1. Hey guys, I want to catch a mistake concerning the mesh. when this mistake is occuring, the user should be able to fix the mesh. During a while loop i have sometimes an error in the command *plotnodelist, because it needs the inputs "results of a analysis" and "nodes id". Sometimes the analysis fails and *plotnodelist leads to a break down of Hyperworks because of the missing results. Here is the relevant part of my code: while {} {...... if { [catch {*plotnodelist 1}] } { puts "analysis failed " break } else { *plotnodelist 1 } ....} Kind regards Simon
  2. AlexanderP

    Add button script

    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".
  3. Hello, Can anyone tell how to create spring elements between two components? Thanks, Sanket
  4. Hey guys, I'm looking for a .tcl-command to completely close a program. The program starts with a messagebox where you can choose yes or no. If you select yes, the program runs as it is planned. If you choose no, the whole program should stop. There for I used the exit 2 command. But instead of closing the whole program it only closes the message box and tries to run the code afterwards. Do you have an idea how to fix that problem? This is the relevant part of the code: set starting [tk_messageBox -message "Möchten Sie eine vorhandenes Modell verwenden?" -type yesno -icon question -title "Einladen des Modells"] switch -- $starting { yes { set basedir {C:/} set filetypes {{{Text} {*.fem}} {{Alle} {*}}} set par [tk_getOpenFile \ -initialdir [pwd]\ -title "Startdatei wählen..."\ -filetypes $filetypes ] *feinputwithdata2 "\#optistruct\\optistruct" "$par" 0 0 0 0 0 1 9 1 0 } no { exit 2 } } *createentity mats cardimage=MAT1 name=material1 ... Kind regards, Simon
  5. Hey guys, is there a .tcl-command which shows the maximal node stress of a structure after a simulation? Kind regards and thanks in advance Simon
  6. Tcl言語では、openコマンドでファイルハンドルを取得して、getsコマンドでハンドルを指定すると、1行ずつ読むことができます。 openコマンドの最後を「r」にすると読み込みモード、「w」にすると書き込みモードで開きます。 openコマンドで開いていると、他からの書き込みなどができないロック状態になりますので、最後に忘れずにcloseコマンドで閉じて下さい。 -簡単なサンプルを用意しました。tk_messageBoxを使ったサンプルなので、sample.csv←のような短いCSVファイルで試してみて下さい。 set ft {{"CSV Files" .csv} {"All Files" *}}; set fn [tk_getOpenFile -filetypes $ft]; set fh [open $fn r]; while {![eof $fh]} { gets $fh line; set line [split $line ,]; tk_messageBox -message "Gets = ${line}\nLength = [llength $line]"; } close $fh; -表示イメージ-
  7. AlexanderP

    Mesh script

    Hi all I'm new in hypermesh and scripting and interested in creating a mesh using scripts. Is it possible? Are there any ready-made scripts? thanks
  8. Hi, Can anyone tell me what is tcl command to open mesh panel? Thanks, Sanket
  9. Hey guys, in order to set up a model, I want the user to choose in which degrees of freedom he wants to constrain his model. Is there a .tcl-command that opens a panel automatically where the user can enter specifications, especially the degrees of freedom, for the constraints? Kind regards, Simon
  10. Hey guys, I'm working at a customization problem. During a loop an automesh should be executed when the mesh criterium "aspect ratio" exceeds a specific value. Do you have an idea how I can get access to the aspect ratio values after each iteration? Kind regards Simon
  11. 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
  12. 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
  13. Hey guys, I want to create a .tcl-script, that opens an input mask in HyperMesh where the user can select if he wants to mark elements or nodes (e.g. for force or pressure creation). So by clicking on Nodes he should be able to mark the relevant nodes, by clicking on Elements he should be able to mark the relevant elements. Could you help me out with that problem? Kind regards Simon
  14. set original " 1 min length 1 1.0 10.00 7.750 3.250 1.000 0.000 0"; 上記のような、文字列の変数があった場合に、「split $original」を実行すると、下記のように返ってきます。 {} 1 min length {} {} {} {} {} {} {} {} 1 1.0 {} {} 10.00 {} {} 7.750 {} {} 3.250 {} {} 1.000 {} {} 0.000 {} {} {} {} {} {} 0 空白のリストだけを消したい場合は、下記のようにlremoveコマンドを使うと消すことができます。 lremove -all [split $original] ⇒1 min length 1 1.0 10.00 7.750 3.250 1.000 0.000 0
  15. Hi, There are many bolts in assemebly and they are connected by 2 beam elements (there are two elements between one bolt). I want to add one node to that center of it using Tcl if there is no other element is attached to it. How can i do that? Regards, Sanket
  16. Hello, Is there any command to get nodes on free 1d elements? Thanks, Sanket
  17. Hi all, I am trying to create my first GUI for an old script I did, and I don't know if I am doing in the best way. The GUI has a progress bar indeterminate (in the future I would want to do determinate), which should start when the user press a button and should stop when the script finish. However, when the script is running, GUI freezes and progress bar doesn't update. I have the GUI and the script in two different procedures, like this (only the relevant info is showed, but I can show the whole script): proc interface {} { # ------------------------------------------------------------------------------------------------ # set progress_frame [hwtk::labelframe $gui.progress_frame -text "Progress" -padding 5] pack $progress_frame -padx 1 -pady 3 -anchor n -fill x -side top set progress [hwtk::progressbar $progress_frame.progress -mode indeterminate -length 350] pack $progress # ------------------------------------------------------------------------------------------------ # set button_start [hwtk::button $bottom_frame.button_start -text "BURN IT!" -width 10 -command [list BarCommand start $progress_frame.progress]] pack $button_start -pady 1 -padx 3 -anchor e -side right -ipadx 4 -ipady 2 } proc BarCommand {op args} { foreach w $args { $w $op } update main } proc main {} { # A lot of commands here } I have only found two topics related with problem: Unfreeze the HyperMesh GUI (I added command "update" in the proc) Progress bar / status bar creation inside HM But the GUI is still not working. I add command "update" in the proc which is changing the progress bar, but it doesn't work. The GUI is like the one I show in the image below. I think I am missing something but I don't know what... Thanks in advance, Alex
  18. brahmadev

    tangent coordinate..

    Hello Everyone! Recently I have come across with an HM API i.e. "*tangentbetweennodeandline". Syntax for the HM API --- *tangentbetweennodeandline is "node id line id checkpoints lineselected" for using this command it asks us NODE id and a LINE id, also the checkpoint where I generally use "20" for better accuracy. But the only thing which I don't get is what to use in "lineselected" When I use the same option through GUI I was able to select the required line, but when I want to use the above mentioned HM API it is requiring me to hardcode the line number beforehand which I'm not sure of the correct line. So I would be glad if anyone can help me with this specific problem of selection of lineselected. Thanks in advance. Regards, Brahmadev.
  19. Hi, all, When I import the LS-DYNA solver deck into hypermesh and output one component as a solver deck isolately, the other unreferenced nodes will also be output simultaneously. As the following picture, the white nodes are unreferenced nodes showed in LS-Prepost, and I need to use " Node edit" to cleanup every time. So I would like to know if there any method that can help me to cleanup the nodes automatically. https://imgur.com/a/RIdGahq
  20. How to know the line direction of given line ? Regards, Brahmadev.
  21. Hi everyone, I have problem obtaining the TCL command of auto contact pair finding. My model contains 6 components, I use the Abaqus contact manager to automatically find contact pairs for me. Manually, I can successfully find contact pairs. Since I want to run this process automatically by TCL script, I do the process manually and check out the code added in the command.cmf file. Unfortunately, the code are very long, approximately 50000 lines. Also, the code are about nodes' data and surface set, which is not I am looking for. I am looking for the command that represents the buttons "auto", "components: all", "find", "create". I will show these buttons in the figures attached. By the way, the file: raw.hm is my model. Again, my goal is to get the TCL code for finding contact pairs. Please help me, thanks! raw.hm
  22. Can we get command file for hyperview also as we get "command.tcl" file for hypermesh? Regards, Sanket
  23. Andy@LamteqSolutions

    HWTK GUI TOOLKIT Studio

    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.
  24. What is tcl command to select elements by configuration (Especially Free Edges(PLOTEL))? Thanks.
  25. Hey guys, is it somehow possible to start and execute an OptiStruct Solver Run automatically by a .tcl command or script? The aim of this is to create the .h3d-File and .res-File automatically without pressing any buttons. I'm working with the 2017.2 student version of HyperWorks. Kind regards and thanks in advance, Simon
×