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. Hello all I created a graphical interface (piece of them in the picture below): I am interested in the following questions: 1. How can I bind running a .tcl file to a button click? (see the fourth question) 2. How to change the font size on the background? (in HyperView) *TitleFont("Arial", 1, 0, 12) do not work 3. While I work in HyperMesh, i have command.tcl, where all my operations are recorded. But in HyperView I don't find such file. Then I try to "File- Save session - open it in notepad". But it is not log file Is there such a file to see the commands being invoked? 4. I'm try to change legend and notes in HyperView. After wrote a .tcl to "legend file" But it is don't work from button. And worked, if we choose in manual mode (as picture in this topic): add_button "legend" {proc ::post::LoadSettings { legend_handle } { $legend_handle SetType user $legend_handle SetFilter Linear $legend_handle SetPosition upperleft $legend_handle SetNumericFormat "fixed" $legend_handle SetNumericPrecision "0" $legend_handle SetReverseEnable false $legend_handle SetSeparatorWidth 0 $legend_handle SetNumberOfColors 11 $legend_handle SetColor 0 "255 255 255" $legend_handle SetColor 1 " 0 0 255" $legend_handle SetColor 2 " 0 227 255" $legend_handle SetColor 3 " 0 255 170" $legend_handle SetColor 4 " 0 255 57" $legend_handle SetColor 5 " 57 255 0" $legend_handle SetColor 6 "170 255 0" $legend_handle SetColor 7 "255 227 0" $legend_handle SetColor 8 "255 113 0" $legend_handle SetColor 9 "255 2 0" $legend_handle SetColor 10 "255 0 0" $legend_handle SetColor 11 "255 255 255" $legend_handle OverrideValue 0 -36 true $legend_handle OverrideValue 1 42 true $legend_handle OverrideValue 9 140 false $legend_handle GetHeaderAttributeHandle attr_handle attr_handle SetVisibility false catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle $legend_handle GetTitleAttributeHandle attr_handle attr_handle SetVisibility true catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle $legend_handle GetNumberAttributeHandle attr_handle catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle $legend_handle SetMinMaxVisibility false max $legend_handle SetMinMaxVisibility false min $legend_handle SetMinMaxVisibility false max_local $legend_handle SetMinMaxVisibility false min_local $legend_handle SetMinMaxVisibility false entity $legend_handle SetMinMaxVisibility false bymodel $legend_handle SetTransparency true $legend_handle SetBackgroundColor "255 255 255" $legend_handle GetFooterAttributeHandle attr_handle attr_handle SetVisibility false catch { attr_handle SetFont "Arial"}; attr_handle SetHeight 10 attr_handle SetColor "255 255 255" attr_handle SetSlant "regular" attr_handle SetWeight "regular" attr_handle ReleaseHandle } } Thank you in advance for your help
  2. Hi All, I have changed Id of a component in hypermesh and i have a .csv file which contains component's Ids and their thicknesses. Now i want to search component,s id in .csv file and corrosponding thickness value from csv. Can anyone tell me how to do this using tcl? Thanks, Sanket
  3. 通常、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
  4. Hello All, i trying to automate leaf spring meshing with hex mesh using tcl. anybody have any idea related to this? anybody worked on this? @tinh Regards, PD
  5. Hey guys, I created a .tcl-script which opens a window where I can put in a reference temperature. After the value is entered, I would like the window to be closed automatically and hence to exit the program. I can't find any commands (like an exit-command) that work the way I want them to. Can you help me out on this topic? Kind regards, Simon Attached you can find the script: convert.tcl
  6. Hello all, I'm working on a script to duplicate elements from a reference component containing a solid to a new component with the same exact solid, but in another position and orientation. The translation part was easy as the hm_getcentroid function provides the solid centroid position, so I can use the command *translatemark to translate the desired mesh to the correct position. But to match the orientation, it has been a task more difficult that I was expecting. My approach has been to extract the moment of inertia of the reference solid and the target solid using hm_getmoiofsolid. Once I get these values, I compute the principal moment of inertia for each solid, so I have a comparable reference to use. Then I calculate the Euler parameters (or Quaternions) to obtain the rotation angles that I can use to rotate the elements from the reference solid to match the target solid orientation. The problem I'm facing is that it seems that the inertia calculation performed by hm_getmoiofsolid seems not to be consistent, in a sense that even extracting the principal moments of inertia from them, these principal directions do not coincide with the solid orientation. What could be done in this case? Thanks in advance, Jefferson Vieira
  7. 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
  8. 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
  9. 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?
  10. hello everyone, Can anyone tell me how to convert RBE2 elements to RBE3 elements or reverse too (i.e RBE3 to RBE2). Thanks, Sanket
  11. 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
  12. What is tcl command to select elements by configuration (Especially Free Edges(PLOTEL))? Thanks.
  13. Is there a command to get indepedent/master node details (id) of a selected RBE2/RBE3 element?
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. HI ALL, HOW TO MARK ONLY SPOT WELDS REGARDS, HARISH
  21. hi all, any good book or online link or pdfs for having a good command over tcl tk language.
  22. 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
  23. 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
  24. 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.
  25. 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!
×
×
  • Create New...