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

  1. 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.
  2. 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.
  3. 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
  4. 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.
  5. 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??
  6. Hello All, I have two components say A and B, some nodes on part A are intersecting part B. I am cheking it with hm_collisioncheck but I dont want to fix it with *collisionfix_temp, I want to move entire component A away from B with the amount equal to the interference. Is it possible to "read the penetration value (max depth) from collision check command" so that I can translate the entire component by that amount in my TCL scripts. OR Any other way to find this by co-ordinates of nodes? Thanks in advance!
  7. Hi all, I am trying to produce a script which lists displayed entities. Specifically, I am looking to write a script which displays all loadsteps, then creates a list of all loadcollectors, hides then reshows them and deletes all non-displayed loadcollectors. it seems a bit long winded but my model contains loadadd loadcollectors and when I come to delete unused loadcollectors it doesn't identify any... despite there being a good number which are in no way used. Cheers in advance Andy
  8. Hi , I wanted to mesh a lot of lines with variable lengths in model by using tcl script, but I found the sample script in help is not intelligent, for example *createmark lines 1 15 18 *linemesh_preparedata lines 1 30 *linemesh_saveparameters 0 3 0 0 *linemesh_saveparameters 1 2 0 0 *linemesh_savedata1 1 5 0 0 The parameter "density" in line 3 and 4 are manually assigned, and the "segment" and "density" parameteres must be strictly matched. If the length of each line are different, the density are also different. So, a lot of *linemesh_saveparameters commands are needed. It is not acceptable for this meshing scripting. So, is there a way to mesh lines with constant element size?
  9. Hi All, I am trying to capture error MESSAGE in hypermesh using TCL. I have one model in which property is not referenced. But still its not showing using preview unused command. So when i isolate the same property it shows error. I want to catch the error in hypermesh menu bar in a string variable Can anyone please help me ? Best Regards, Dhairyasheel Desai
  10. 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
  11. Hi there, I have written a .tcl script that can be run in Hyperworks (File>Run>Tcl/Tk scripts)) is there a way such that I can run this script from the command window? I have tried the following: C:/altair/hm/bin/win64/hmbatch.exe -tcl H:/3.Stress/Stress_Strain Processing/animate_one_all_pages_RFaxis.tcl however, this does not seem to work. -tcl <file> must be used with the hmbatch option? Cheers, Rob
  12. Hello everyone, i am new to Tcl programming and worked little bit with command.tcl file to create simple scripts. But now I would like to create a script with the help of if loop. I wanted the script automatically create the solids with bounding surfaces option and if the solids already exist in the model then to return. Can someone help me with this? I could only come out with this. *createmark surfaces 1 "displayed" *solids_create_from_surfaces 1 4 -1 2 Thank s and regards, Punith
  13. 通常、HyperMeshでは、節点はサーフェスやソリッドジオメトリと関連性を持っています。 関連が付いている場合は、エンティティ選択時の選択オプションの"by geoms"でサーフェスやソリッドジオメトリに関連する節点/要素を簡単に選ぶことができます。 ただ、節点とジオメトリの関連が全く無い場合には、この方法で選ぶことが出来ません。 節点とジオメトリの関連が無い状態でも、ソリッドジオメトリの中にある節点を選びたいという時には、指定した座標値がソリッドジオメトリの内外かを返してくれる「hm_ispointinsidesolid」コマンドが便利です。 この「hm_ispointinsidesolid」コマンドを活用して、例えばユーザーが選択した節点群とソリッドジオメトリから、ソリッドの中にある節点だけを抽出したい場合は、下記のような記述で可能です。 set inlist ""; *createentitypanel solids "Select a solid"; set solidid [hm_info lastselectedentity solids]; *createmarkpanel nodes 1 "Select nodes"; foreach nodeid [hm_getmark nodes 1] { lassign [hm_getvalue nodes id=$nodeid dataname=coordinates] X Y Z; if {[hm_ispointinsidesolid $X $Y $Z $solidid] == "1"} { lappend inlist $nodeid; } } if {[llength $inlist] == "0"} { tk_messageBox -message "There is no node in selected solid geometry."; } else { tk_messageBox -message "Found the [llength $inlist] nodes,\nYou can call from retrieve option."; hm_createmark nodes 1 "by id" $inlist; *marktousermark nodes 1; } hm_markclearall 1; ※ファイルに保存して、"File→Run→Tcl/Tk Script"から実行できます。 ⇒Tclファイルのダウンロードはこちら:SelectNodesInsideSolidGeom.tcl ※ダウンロードには、必ずフォーラムへのサインインが必要です。 InsideSolid.mp4
  14. Hello Forum! I have been working on a project where it involves working of VBS as well as TCL. And before running the main logic in the TCL I want to run the VBS file from TCL using EXEC command but it was throwing some kind of error. I have a constraint of not using the batch file to run both the scripts individually. When I did a search on the internet I found that CScript or Wscript should be helping but while working with this command, it was of no help. Can someone share the approach of solving this issue. thanks and regards, Brahmadev.
  15. 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
  16. 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
  17. 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
  18. 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
  19. How to install these packages in tcl? WS::Server , WS::Client, WS::Utils
  20. 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
  21. Hi, Can anyone tell me what is tcl command to open mesh panel? Thanks, Sanket
  22. 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
  23. 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
  24. 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
  25. 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
  • Create New...