Jump to content

Search the Community

Showing results for tags 'tcl/tk'.

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

  1. Hello, I have a tcl script that uploads an FEM using ossmooth into hypermesh. Then two shrinkwraps are applied on the new iso-surface and the resulting mesh is exported as an stl file. The problem is when I call my script from the command prompt; hypermesh fails to locate elements by their property id. When I run the script in the hypermesh console no errors occur. Can anyone help me determine what is causing this strange behavior? The string sent to the command prompt is written as: "C:\Program Files\Altair\2019\hm\bin\win64\hmopengl.exe" -tcl "C:/Users/Eric/Documents/script.tcl" I cannot post the model because of work reasons. The script is below, the path names need to be updated with local file names: #the property id to locate design elements set design_id 23 #the voxel size for shrink wrap set wrap_size 0.0500000000 # .fem file path set fem_name "temp_name" # shape file results set sh_name "temp_sh_name" # the stl output path set stl_name "tmp_stl" #upload the file for fea re-anlalysis *createstringarray 2 "isosurf: 3 3 0.500000 0 -1 0 0 10 30 1 0" "other_params: 1 0 0 0 10 0" if { [ catch {*ossmooth_12 0 1 0 1 $fem_name $sh_name "" 1 0 1 2} ] } { puts "Error Extracting ISO-Surface..." } #mask all puts "Creating New Component" #create a new compoenet for the shrinkwrap set comp_name_1 "component1_lattice_wrap1" *createentity comps includeid=0 name=$comp_name_1 puts "Applying Shrinkwrap 1" #do the shrink wrap on the displayed elements *currentcollector components $comp_name_1 # # Script Error from command prompt # *createmark elems 1 "by property id" $design_id # # Script Error # *shrinkwrapmesh elements 1 2 $wrap_size 30 3 0 0 0 0 0 0 puts "Applying Shrinkwrap 2" #make another component for the second wrap set comp_name_2 "component1_lattice_wrap2" *createentity comps includeid=0 name=$comp_name_2 *currentcollector components $comp_name_2 *createmark elems 1 "by component name" $comp_name_1 *shrinkwrapmesh elements 1 2 $wrap_size 30 3 0 0 0 0 0 0 #divide the elems into triangles *createmark elems 1 "by component name" $comp_name_2 *splitelements 22 1 #export to STL into the predefined path puts "Printing the STL file" *createmark elems 1 "by component name" $comp_name_2 *createstringarray 2 "CONNECTORS_SKIP" "HMMATCOMMENTS_XML" hm_answernext yes *feoutputwithdata "C:/Program Files/Altair/2019/templates/feoutput/misc/triasto.stl" $stl_name 0 0 0 1 2 Thank you, -Eric
  2. I would be nice if someone can explain the following command line *createstringarray 3 "pars: post_cln" "tet: 355 1.2 2 0 0.8" "2d: 1 0 1 3 0.15 30 1" I want to write a program inorder to automate the tetmesh operation using *tetmesh. But in *tetmesh command an input string array is required which is mentioned above. I am unable to understand the above mentioned command line. I would be nice if someone can explain above line part by part for eg. *createstringarray 3 means an array of size 3 is created. Later what is the function of "pars: post_cln" and "tet:..." "2d:...". Just for the reference below is the command line used to create a automatic 3d tetmesh for a solid. Please comment on the same *createstringarray 3 "pars: post_cln" "tet: 355 1.2 2 0 0.8" "2d: 1 0 1 3 0.15 30 1" *createmark solids 1 1 *tetmesh solids 1 0 elements 0 -1 1 3 Thank you so much
  3. Hello everyone! I have 3D tetra mesh and in the middle of any particular element of the mesh I have a dot. It seems that this dot means nothing, couldn't find any information about it. But for my project I need to get coordinates of those dots, without coordinates of the mesh. As an example we can get .txt file with coordinates of elements of the mesh. What I need to get is the same .txt file with coordinates but with coordinates of those dots only. Should I use some TCL commands or is there any way to do that? Very grateful for any help!
  4. Hi all I created a table with Fx,Fy,Fz values with many load cases. I would like to get the max value for each column. How can i get the max value of a table's column with TCL? Best Regards Seçkin
  5. Hi all I would like to get a list of thickness for selected elements. I wrote these codes but it gives just one thickness as a result. Could you please help me ? *createmark elements 1 179 79 150 279 35 ... set test [hm_getthickness elements 1] foreach elements $test { puts "$test" }
  6. Hi all I wrote this code for combobox. However when i change the list the results not. I expect when this list's value changes, get the area and moi for selected beam sections. Could you please help me? hwtk::labelframe $w.lf3 -text "Defined List Only" hwtk::combobox $w.lf3.cb -values $beam_list -help "BEAM SECTIONS" -textvariable beam_sect switch -regexp -- $beam_sect { I { set Inertia [hm_getvalue beamsects name=I_beam dataname=results_Icentroid0] set dim_1 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim1] set dim_2 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim2] set dim_3 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim3] set dim_4 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim4] set dim_5 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim5] set dim_6 [hm_getvalue beamsects name=I_beam dataname=beamsect_dim6] set aera [hm_getvalue beamsects name=I_beam dataname=results_area] set Icog [hm_getvalue beamsects name=I_beam dataname=results_centroid0] } C { set Inertia [hm_getvalue beamsects name=C_beam dataname=results_Icentroid0] set dim_1 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim1] set dim_2 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim2] set dim_3 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim3] set dim_4 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim4] set dim_5 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim5] set dim_6 [hm_getvalue beamsects name=C_beam dataname=beamsect_dim6] set aera [hm_getvalue beamsects name=C_beam dataname=results_area] set Icog [hm_getvalue beamsects name=C_beam dataname=results_centroid0] }
  7. Im new in TCL TK and macros also pls guide me
  8. I want to read the node and element data from an fem file to python. Can I do this?
  9. Hi all, I am looking out for any examples to write stress/node id data to excel sheet TWAPI in Tcl/Tk. Thanks in advance, Regrads, Girish C Hirekerur
  10. Hi Experts, I want to automate the assembly creation, I can go in 2 ways. 1. Create an assembly hierarchy in excel file and use the script to implement in my hm file. 2. Create a script to create the assembly hierarchy in hm itself using the user input (selecting the sub-assemblies and components together to form an assembly). Which option would be easier and feasible. I am just a beginner in TCL. Thanks in advance!!
  11. HI All, I'm a beginner to Hypermesh customization ,I have this idea to defining topology for better querying the lines or edges by name so please help me out is it possible to define topology by naming by lines with numbers->in Black color surface with numbers ->white color as below image no particular sequence is necessary while naming.
  12. once the xyz procedure has been executed ,the yellow button should change in some other color.
  13. Hi, I am currently working on creating a macro just to learn the process. I want this macro to check the components and see if a component labeled "^2D" exists. If it does not, I want the macro to create this component. The macro will then move all 2D quad and tria elements to this collector. The reason for this is I like to save my 2D mesh in a collector that I can turn export off before output to a .inp. I have used this code to verify that I am able to create the collector and move the elements: *beginmacro("Move2D") *createentity(comps,name=^2D) *createmark(element,1) "by config" tria3, tria6, quad4, quad8 *movemark(elements,1,"^2D") *endmacro() However I am having trouble when attempting to do a loop check. I am 99% sure that my formatting for Tcl is completely wrong (I just began learning the code yesterday). When attempting to load the userpage.mac hyperworks freezes with the code how it is. *beginmacro("Move2D") set exists "False" set entitylist (hm_entitylist comps name) foreach title $entitylist { if {$title == "^2D"} { set exists "True" return } if {$exists == "True"} { *createentity(comps,name=^2D) } *createmark(element,1) "by config" tria3, tria6, quad4, quad8 *movemark(elements,1,"^2D") } *endmacro() Thank you in advance for any help, -Clay
  14. 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
  15. hi, i have interest to learn TCL scripting on hyper mesh. i have downloaded several tcl documents to learn it. the commands and structures on hypermesh are totally differs from the document. how do i learn it easily. please help me. regards MEIYARASU19
  16. Hi, I am writing script in hypermesh tcl command to create 3D meshing. for these i not understand what the numbers mention here (8,0). it is working in HM_13 and not in 14 *solidmap_prepare_usrdataptr "SOURCE" 8 *solid_prepare_entitylst elements 0 Let me help to solve the issue. Thanks, C.Jude Antro
  17. Hello, How to get the point list on the boundary of a selected surface? My goal is to get the distance between the points and set the element density accordingly.
  18. Is there a way to put notes in HyperMesh, the same way as its done in HyperView. Please help in doing the same.
  19. How to create a "set" using script? for example I want to create a set which contain RBE2 element and its adjacent elements
  20. Hi, After generating mesh for any assembly, it will be very difficult to check which elements are not projcted to surface. This is even more difficult to check when Geometry and CDB files are imported seperately. Is there is any script or a method to hilight the elements/node which are not on the surfaces/not projected to surfaces. Regards, Sagar
  21. Hi All, I am trying to write a tcl/tk script wherein I need to export .csv for each component's Advanced Query results. I am not able to find the handle to to control this option. I have attached the screenshot for clear understanding of the problem. Thanks and regards. Saumya Mishra
  22. Hi, I had planned to learn TCL/TK via online tutorial (tutorialpoint). When starting the tutorial, basics are easy to understand. But when getting deeper inside the tutorial after basics, it is very difficult to understand. So kindly help me with following questions. 1) Is there any easy way to learn this language??? 2) Online tutorials are like in coding format and their teaching also in same way. But written Hyper-mesh scripts are in different way. I am not getting this thing. 3) Any suggestion for TCL/TK books, videos and website for learning? Thanks in advance. Regards, Saravanan
  23. Hello forum, I have been trying to capture the center line of any given pipe/tube. But I don't find any readily available API. So, how should I proceed so that I can create one for myself ? Regards, Brahmadev.
  24. Hi, I have a meshed cylinder (2d) on which i want to give an option to select a node to user. Once the node is selected, and clicked on proceed button it should display all the circumferential grids having a user defined number to the grids. Let's say i select a grid having ID as 122. Now, i want to display all the circumferential grid starting from 123 on the same station location where user has picked the node. I want to do it using TCL/ TK. Thanks
  25. Hello, Is it possible to work on hypermesh when we are running a Tcl/Tk script? I would like to use "after 10000" command to halt the execution of the script for some time and I would like to work on hypermesh meanwhile. Thank you.
  • Create New...