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 307 results

  1. hi all, any good book or online link or pdfs for having a good command over tcl tk language.
  2. hi, In a macro I written I have 3 for loop nested. the 1st one iterates for up to 3000 times .so my execution time is long. Is there any way to reduce time. Thanks and regards, Mahes
  3. Hi , how to open a already existing powerpoint file using exec command. i tired exec "C:/Program Files (x86)/Microsoft Office/Office14/POWERPNT.EXE" "C:\VSURES33\ppt_documents\CAE.pptx. its working. but i need i will use the command in any system i should not bother about office14 or office10 etc. beacuse each user will different office system so it should support for that. thanks in advance suresh vijayan
  4. I'm trying to write a tcl script to do an import of a Moldex3D Mesh and an export of this Mesh as a HyperMesh-File. If I use the GUI of Hypermesh everything ist working fine. I can Import the Moldex3D-Mesh and export it as a HyperMesh-File. For the TCL script I watched up the commands whitch are stored in the command.cmf file in the working directory. The stored commands I transfered to TCL command by using spaces insted of parenthesis () and commas ,. But it cant get it work for the import command. The export is working fine. The follwoing import command does not work. *feinput "C:/Program Files/Altair/13.0/io/model_readers/feinput/bin/win64/moldex3D.exe" "C:\\Users\\Willems\\Desktop\\HyperMesh_Files\\Testplatte.mfe" 0 0 0 1 0 The following export command works fine. *feoutput "C:/Program Files/Altair/13.0/templates/feoutput/hm/general" "C:/Users/Willems/Desktop/HyperMesh_Files/Export_HMASCII.hmascii" 0 0 1 1 0 Can someone help me with this problem? Thanks a lot.
  5. Hi, I have a tcl script and the tcl is using Hyperworks(Hyperview) library, so I must run it with Hyperview. I check the help doc and found the following command to load tcl: <altair_home>/hw/bin/<platform>/hw.exe -clientconfig hwpost.dat -tcl example.tcl But I cannot pass an argument to the tcl. For example, I can run this tcl using: tclsh example.tcl arg1 arg2 ... The arguments arg1, arg2 will be passed to tcl script, Can I do this using hw.exe -tcl command? Thanks!
  6. Hi, I have a tcl script and the tcl is using Hyperview library, so I must run it with Hyperview. I want to run this script in another program, is there a way to start Hyperview and run tcl script using command line? And I also want to close the Hyperview when the script end. Thanks!
  7. Hi all, I am searching for a Tcl command, that can allow me to save the component ids into a mark while I click on the components in HM window/display. In a model with more than 600 components, I need to create a list of component ids by clicking, then write those component ids (and property ids they have) to an external text file. Is it possible to create mark interactively by clicking on entities in display? Best regards, Mubeen.
  8. Hi all, Is there a way in Hypermesh to import parameters from a spreadsheet or a ascii file format? e.g. Type,PartName,SectionName,MatId,MatName,MatTypeName.... If so, please direct me to sources where I can read up on it. Also I have difficulty finding information on how to interact with a tcl script. Please direct me to sources as well. Thank you.
  9. Hi Guys, I'm trying to automate the creation of CBEAM elements along a node path wrt to a given "template" element which is already in the model. What I could achive so far is the creation of the CBEAM elements with help of the *feature_add command to create plot elements along a given nodepath and then switch the configuration of the created PLOTEL. These PLOTEL can now be "switched" to CBEAMs utilizing the *attributeupdateint, *attributeupdatedouble and *attributeupdateentity command. The correct property assignment can be done with the *propertyupdate command. So far so good. In the next step, the orientation and offset vectors of the newly created CBEAM elements have to be adjusted with the *barelementupdatewithoffsets command. But the questions is, how can I extract these vectors from the "template" element. I already tried to use the hm_attributevalue / hm_atttributearrayvalue and hm_getentityvalue, but I don't know the correct keyword, to access the needed information. This leads me to two questions: Does anybody know the correct command / keyword to obtain the orientation and offset vector data from a CBEAM element oris there any possibility / a list to get all the possible query options to make on an element.Thanks for you help, Sven CODE: # get nodes along beam path *createlistbypathpanel nodes 1 "Select nodes for the beam:" # save nodes in list set lstNodeList [hm_getlist nodes 1] # create plot element along node path *features_add 1 0 0 # put newly created element in element mark 1 *createmark elms 1 "by comp name" "^open features" # save plot element in list set lstPlotElementList [hm_getmark elms 1] # switch configuration to bar for all elements in list *configedit 1 "bar2" foreach numPlotElementID $lstPlotElementList { *attributeupdateint elms $numPlotElementID 4841 1 2 0 0 *attributeupdatedouble elms $numPlotElementID 3273 1 0 0 0 *attributeupdateentity elms $numPlotElementID 3271 1 0 0 nodes 0 *attributeupdateentity elms $numPlotElementID 3272 1 0 0 nodes 0 } # choose template element *createmarkpanel elms 2 "Select template CBEAM element" # save element id in list set numTemplateElementID [hm_getmark elms 2] # get property from template element set numHMPropertyID [hm_getentityvalue elms $numTemplateElementID property 0] # get property name set strHMPropertyName [hm_getentityvalue props $numHMPropertyID name 1 -byid] # put new beam elements to mark *createmark components 1 "^open features" # assign properties on component *propertyupdate components 1 "$strHMPropertyName" now the part with getting the element properties (X1 X2 X3 W1A W2A W3A W1B W2B W3B) from the "template" element should come
  10. Hi all, I am using tcl commands for evaluating element quality checks in batch meshing (which are accessible via F10 key in hypermesh interactive mode). The histograms/graphs for element edge max. lengths, element edge min. lengths, and element aspect ratios can be created using the commands: set aspect_ratio 5 *createmark elements 1 "all" *createmark elements 2 *elementtestaspect elements 1 $aspect_ratio 2 4 2 "Tetra Altitude Aspect" http://www.altairhyperworks.com/hwhelp/Altair/hw12.0/help/hwdref/hwdref.htm?_elementtestaltitudeaspect.htm as explained in the documentation. These commands generated the plots in interactive mode. However in batch meshing via tcl scripts I want to export these graphs, and there is no such "command image" created in command.cmf when I export these graphs in interactive mode, neither such export commands are found in the documentation. Anyone having experience/information related to this task, kindly help. Best regards, Mubeen.
  11. Hi all, I started with 2nd order tetra meshing (Tetra10 or configuration 210) in batch mode i.e. writing tcl script employing Tcl commands for meshing a CATIA solid geometry. Unfortunately, it seems that it is not possible to set criteria and parameters for 3D meshing (e.g. tetra meshing), and even if the criteria file and parameter file is used (which only provides options for tria and quad elements), it doesn't affect the Tetra mesh quality and only the surface mesh is monitored by criteria and parameter files. I am creating Tetra elements by two methods: 1. Directly meshing the solids with Tetra10 elements 2. First creating a skin of Tria6 elements and then creating Tetra10 elements from this skin mesh. I used the *tetmesh command with suitably selected parameters, so that I can get a nice mesh (with minimum distortion) but finally NASTRAN found that there are some tetra elements with very low internal angles and it marks these elements as "FAILED" elements and stops the analysis. I checked the quality parameters for 3D elements (short key: F10), and found that many elements simply fail, and are well far away from the limits e.g. max. size, min size, entered in the tcl script. Is there any proper way to force HM to respect the limits of 3D mesh properties??
  12. Hi, I am trying to change the animation mode in hyperview to "Set Modal Animation Mode" using tcl command.will be great if some can help me out. Thanks in advance Regards, Emil
  13. Hello All, I am using Hypermesh 2017 and using below link for tcl scripting, https://www.sharcnet.ca/Software/Hyperworks/help/hm/hmbat.htm?hm_createmark.htm Can anyone give me link of updated tcl commands which will work in hypermesh 2017? Regards, Sanket
  14. Hello I required to position impactors at 50 different positions on component. I can do it manually but I am look forward to do it automatically. How can we do that? Thanks for your support. Best Regards, Vijay Bondar
  15. Hi All, I have one .csv file which contains part numbers in one column and their FE model (.bdf) file paths in another column. Now i want to write a tcl script that will read all part same numbers and their corresponding paths and it will give a pop-up window that "which part you want to import?". How can i do this? Please help regarding this. Regards, Sanket
  16. Hey guys, I created a .tcl-script, which I normally open with the active-tcl program. The script works as it is supposed to be and opens a GUI, where several buttons can used to do calculations etc.. In the next step, I created a button in HyperMesh and want my .tcl-script to be started by pressing this button. The problem is that the window I used to have when I've started the script by active-tcl doesn't appear when I use HyperMesh. Can you help me out with this problem? Thanks in advance, kind regards and greetings from Germany Simon You can find the script here:convert.tcl
  17. Hey guys, my .tcl-script creates different filetypes and saves all of them into the document folder. In order to not create a mess of files, I want them to be saved in a specific folder. I copied the path of my folder and read it by opening a script, which saves the path into a variable. At the moment, I'm using the following command to create a new file: set f [open path.txt w] How can I save the file into a specific path? Kind regards, Simon
  18. Hi, Can anyone tell me what is tcl command to open mesh panel? Thanks, Sanket
  19. 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
  20. 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
  21. 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
  22. 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
  23. Hello, Is there any command to get nodes on free 1d elements? Thanks, Sanket
  24. 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
  25. 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
×
×
  • Create New...