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 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 プロセスの自動化
    • エンタープライズソリューション
    • データアナリティクス
    • 学生向け無償版(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 319 results

  1. 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
  2. Hey guys, I got a question concerning the following model. I want to move all the elements, which are surrounding the holes, into a component. Do you know a command how to mark them? Thanks in advance, Simon
  3. Hello everyone, I want to create a script, which takes data from binary files (e.g. binout from LS-Dyna, it stores curve data), computes it (e.g. find the maximum value of a curve) and create a result file, which can be used in HyperView (e.g. as a result for a contour plot). To be more specific, I want to create a contour plot for spot weld elements, which contains maximum values (constant over time) of spot weld forces, which are given in a binary output file from LS-Dyna. I did not find an easy solution for this task, therefor I tried to break it down. This describes my plan backwards from the finish to the start: - To create a contour plot from custom data, I can use an XML file, which defines my datatype (see "HyperWorks Result Math/Creating New Datatypes") - To access data, which will be used for the new datatype, I can create a TCL Plugin or use TCL commands respectively - The data is contained in a binary file. I want to either use HW TCL commands to access the LS-Dyna binary output directly or use the commands to access an Altair Binary Format file (ABF), which might be easier - If I want to use the ABF file, I have to translate the LS-Dyna binary output file via HGTRANS first Further applications could be the storage of the computed values as *.csf file, therefor I am really interested in the reading of this data. Since I am really new to this topic, I would need some opinions and tips for this. Makes the whole process sense or is there an easier way? Which TCL or HW TCL commands can I use to access data in a binary file (LS-Dyna Binout or ABF)? Thank you. Update 1: I wrote a script to access curves, which are plotted in HyperGraph, and store them in a database array. Then I write the data into a CSV file, to evaluate it with Excel. I think this was the easy part. The next question is, how do I read curve data from binary files? Can anyone help?
  4. hello everyone, Can anyone tell me how to convert RBE2 elements to RBE3 elements or reverse too (i.e RBE3 to RBE2). Thanks, Sanket
  5. 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
  6. What is tcl command to select elements by configuration (Especially Free Edges(PLOTEL))? Thanks.
  7. Is there a command to get indepedent/master node details (id) of a selected RBE2/RBE3 element?
  8. Hi , Could someone tell me how to remove the errors of Penetration. I already used penetration tools. ERROR ID : 612 Also I created the whole file using TCL script Could someone help me on How to implement contact between pulley and Rope as seen in the figure in it. I donot know which command to use to select the top face elements of the pulley. (In the TCL script it in the last line about contacts ) tt.hm tt_0000.rad tt_0000.out tt_0001.rad V4.tcl
  9. Dear all, We are trying to set a HyperStudy simulation. We have a batch process which calls a tcl file and the we read outputs. The problem goes as follows: In the batch process we need to know at which folders we are currently. When Hyperstudy runs the nominal run for instance, it creates folder C:/Users/user1/Desktop/Gen02/approaches/nom_1/run__00001/m_1/ and copies there our .fem file (input) In our batch we are using param %HST_APPROACH_RUN_PATH% to get the path of that folder. But we are getting the parent folder: C:/Users/inasiopo/Desktop/Gen02/approaches/nom_1/run__00001 So .../m_1/ is missing!!!! How can we get the correct path? Hope we explain it in a good way. Many thanks in advance
  10. Hi all, User profile : Ansys I need to find the components which has ettype and element config mismatch through code. is there any way. In this as per now I got the ettype "Solid 95" of sensor. I don't know how to compare . Can u plz hlp. Thanks, mahes
  11. Hi all, hm_getentitycardimagedictionary props 1D When I m using above command in optistruct its wrking. How can I use it in Ansys profile. What is the type that can be used. Thanks, Mahes
  12. hi all, set a "1 2 3 " set b " 4 1 3 8 2" i need to compare these two lists ...not on the basis of order of arrangement only difference output i need is 4 8 i tried using using *markintersection its not working
  14. hi all, any good book or online link or pdfs for having a good command over tcl tk language.
  15. 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
  16. 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
  17. 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.
  18. 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!
  19. 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!
  20. 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.
  21. 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.
  22. 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
  23. 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.
  24. 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??
  25. 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!
  • Create New...