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, I am trying to break down a 3d mesh to resolve it down to a single plane of elements generated by finding faces, such that I can then find the hole centroids in this 3d mesh. I ask the user to select a component, the Z dimension representing the offset X-Y plane that the circles are in, and then proceed to start marking / selecting / organizing elements such that I end up with planar surface elements in a new component. All of these commands work when I play with them manually in hypermesh however when I try to call the process in tcl: set CompIDFaces1 [Test1 $CompIDList1 $Z $tol] I get the error: invalid command name "Test1" My code is below, I suspect this is some kind of syntax error. Would be much appreciated if anyone help out with this issue. #Ask for user to select Bolt component *createmarkpanel components 1 "Select Bolted Flange Components." #Retrieve component IDs in Array set CompIDList1 [ hm_getmark components 1 ] #Unselect components *clearmark components 1 set Z 152.525 set tol 0.01 set CompIDFaces1 [Test1 $CompIDList1 $Z $tol] Proc Test1 { CompIDList1 Z tol } { #Select component previously provided by user *createmark comp 1 $CompIDList1 #Find Faces *findfaces components 1 #Hide everything but ^Faces *isolateonlyentity comp "by name" ^faces #Locally select faces in flange plane *hm_createmark elems 1 "by box" "-999 -999 [expr $Z-$tol] 999 999 [expr $Z+$tol] 0 inside 1 0 0" #Hide all other elements *isolateonlyentitybymark 1 *createentity comps cardimage=Part name=Hole_Surface *createmark elements 1 "displayed" *movemark elements 1 "Hole_Surface" *createmark components 1 "^faces" *deletemark components 1 return "Hole_Surface" } Thanks, Tyler
  2. Is there any way using tcl commands that we can create a custom layout for a HyperView page apart from these pre-existing 20 layouts that HyperView supplies ?
  3. Hello So I am capturing a image for the perticular step And I want it to get the name of the load step So how can I get the name of step?? Like loadstep1-thermal So I want thermal name tobe included in the image name Thank you
  4. Hello everyone I am new to hyperview scripting I dont have much Idea about commands used I have gone through previous posts Also trying to read Template file and session file Still I will appreciate If everyone attach there own script in reply. It will accelerate process of learning Beginner like me can refer to those files and create a new script with help of those commands Thank you
  5. Hi, I am writing a tcl script and I am trying to get the user to inform the script of where the script should be taking place. I want to request this by having the user select (pick) a node. From this node I would want to retrieve the X,Y,Z locations of that node, and store them in a variable and proceed with the rest of the script. How might I do this? Thanks in advance for the help! Tyler
  6. Hey guys, I want to export the elementstresses calculated in HyperMesh using a .tcl-file. I found a way using a results curve but I can only manage to export nodal stresses. Do you know a way how to export also the element stresses? Kind regards Simon
  7. Hey guys, I'm trying to implement an algorithm for the Soft Kill Option in HyperMesh. An important step is to vary the Young's Modulus of each element depending on the element stress. As a consequence of the different stresses of every element, do I need to create a new material and a new property for every element? Or do you have another way to solve this problem? Kind regards and thanks in advance Simon
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  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. 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?
  15. hello everyone, Can anyone tell me how to convert RBE2 elements to RBE3 elements or reverse too (i.e RBE3 to RBE2). Thanks, Sanket
  16. 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
  17. What is tcl command to select elements by configuration (Especially Free Edges(PLOTEL))? Thanks.
  18. Is there a command to get indepedent/master node details (id) of a selected RBE2/RBE3 element?
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. HI ALL, HOW TO MARK ONLY SPOT WELDS REGARDS, HARISH
×
×
  • Create New...