Jump to content

Search the Community

Showing results for tags 'script'.

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 86 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. Hello, I am trying to automate a task and need some guidance. In a model with various components, I have the guide points of the fasteners. Some fasteners connect more than two components. I am looking to create the connectors automatically by selecting the points and export the connectors' information (cfast id and coordinates, attached elements). The final goal is to create automatically more than 8000 fasteners and extract their information, in order to use them for fastener analysis. Thanks for your help N.
  3. Linear/Transientアニメーションモードの場合であれば、キーボードのPage Up/Downキーを押すと、複数ウィンドウ同時にアニメーションステップを増減させることが出来ますが、Modalアニメーションの場合はPage Up/Downキーは位相角の増減となります。 そこで、アニメーションモードを問わず、次のモード/時刻が表示されるボタンを作ってみました。 プルダウンメニューFile⇒Run⇒Tcl/Tk Scriptから、このスクリプトを実行すると、上図のような2つのボタンが追加されます。 ボタン押すと、アクティブページ内の全HyperViewウィンドウが次/前のアニメーションステップ(モード/時刻)表示に切り替わります。 HV_SyncModeButton_v2019.tbc ※HyperView2019のみ動作確認 ※ファイルのダウンロードには、当フォーラムサイトへの「Sign in」が必要です。
  4. HyperViewのResultsブラウザには、読み込んでいる結果の周波数リストや時刻暦リスト(Simulationリスト)が表示されます。       このリストを、テキスト形式で出力したいという場合には、「File⇒Run⇒Tcl/Tk Script」から、下記のファイルを実行してみて下さい。 HV_SimulationLabelToTextFile.tcl ※ファイルのダウンロードには、必ず当フォーラムへのサインインが必要となります。サインインしない状態でファイルをダウンロードすると、ファイルが存在しないといった旨のメッセージが表示されますが、実際にはサインインするとダウンロードが可能になります。
  5. I have a 1D beam with nodes N1 and N2 known. Need to position the rigid patch (blue elements) perpendicular to D element as shown in image 2. The free node of rigid element inside the rigid patch will get equivalence to node N2 of beam. Kindly help in building the logic. @tinh
  6. Hello every one. I need help. How to generate shear flow at velocity inlet & nodal initial condition at AcuSolve (as attach picture). For now, i only want to simulate shear flow in empty domain. After shear flow successfully generate, i want to put riser in the domain.
  7. Hello, I am facing a problem while creating a 2D surface mesh in TCL Code in hypermesh. The settings done in "*interactiveremeshsurf" and "set_meshfaceparams" seem to be ignored for all surfaces and overwritten by the settings written the GUI at 2D-->Automesh-->Edge deviation. The code can be seen below: *setedgedensitylinkwithaspectratio -1 *elementorder 2 *startnotehistorystate {Automesh surfaces} *createmark surfaces 1 [lindex $List_OP($i) 0] for { set ii 1} {$ii <=[llength $List_OP($i)-1]} { incr ii} { *appendmark surfaces 1 [lindex $List_OP($i) $ii] } if { 1<=$i && $i<=3 } { # markmask, elementsize, elem_type (0 trias, 3 rtrias) *interactiveremeshsurf 1 0.25 3 3 2 1 0 set i_am 0 foreach Element $List_OP($i) { # index (von 0), elem_type, alg_type, elem_size *set_meshfaceparams $i_am 2 3 3 0 1 0.5 1 0 *automesh $i_am 1 3 incr i_am } *storemeshtodatabase 1 *ameshclearsurface *clearmark surfs 1; *endnotehistorystate {Automesh surfaces} Am I missing some command? Thanks and best regards, Henrik
  8. Hello, I am doing the "SPM_Motor_Flux_3D.pdf" tutorial, and in page 15 there is a file named "Create_NonMesh_Coils_SPM.py" that I have to Run. I can not find it in my PC. Could you please tell me the exact directory where I can get it?, or much better, if you could send it to me I would appreciate it. (and let me know if I need another file to finish the tutorial) Thank you in advance.
  9. Hello All, I want to delete elements on YZ plane. How can i delete elements using tcl commands? Regards, Sanket
  10. Hi, I have written a script in TCL that changes the material properties using an automatic number generator. The script works when I write it into the console, (The interpreter at the bottom of the page, not sure of the correct name). But when I run the script using the run TCL script button nothing happens. I have attached the script. It changes the material properties of a MAT9ORT card. Can someone take a look at my script and give me some advice on how it can be changed to run correctly. I have also attached my hm file for which I am attempting to change the material properties. Kind Regards, Laurence Maskell YMbeamchanger.tcl clevis2.0run.hm
  11. Hello hyperview users, I am new to hyperview and I want to create a template that could export images on a separate file (.txt .ppt etc..). For the moment I have create a template that generates 8 windows, and I use the copy/past tool on each window to export images. Any suggestion to use improve my template and export every windows ? Pierre
  12. Hello, I would like to create a script that helps me to set the name of layer created by report template to be the same as my curve name. Does anybody knows if such a script already exist or maybe somebody knows how to implement it in Hyper Graph? Thanks in advance. Piotr
  13. Hi, Is there a way using tcl commands by which I could split the HyperView page window layout into more than 4 parts ?
  14. is there a reason why, when i run optimization via the script in the command file, the hyperworks solver view doesn't pop up? The solver view only shows up when i manually click on run options> OptiStruct
  15. how to set and read two values in one variable using TCl?
  16. Hi all, Is there any book or document about HyperWorks scripts for beginners? Roy
  17. Anybody can help me for creating scripts for below tasks- How to create properties and materials according to component name? How to assign it to respective component? Thanks!
  18. Hello, I would like to know how to create a macro (script) using OptiStruct and HyperStudy for dynamic analysis (modal, harmonic and transient) of a free cantilever beam 1D. How to create / import geometry, put materials and properties, meshing, put loads and run the analysis. Thank you
  19. Hello, i'm new to Hypermesh but i need to solve a problem which mush be very simple for a veteran user. I just need help on how to make a simple batch script that given and input file containing triangle surface mesh of a solid, output the entire tetra volume mesh of that solid. I'd like to do that from shell without using any gui. That's it! I would really appreciate any help. P.S. Could you please include which file format it accept as input and which as output? Thank you for your time.
  20. 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!!
  21. Please mention any material or reference sites for maco/script writing for hypermesh. Thank you.
  22. Hi, everyone. I encountered a problem when I record tcl command of "Drape Estimator" in the GUI. In command.tcl file, it gives the the command: *calculateElemDrapingAngles 1 "./draping1001/draping1001.res" "DrapeTable_PLY1001" 1 2 1001 While in the help files, the explanation of the command of "*calculateElemDrapingAngles" is *calculateElemDrapingAngles mark_id result_file table_name fiber_vector stamping_vector ply_id result_file: Reserved for future use. Must be set to "". (1) How is the result file "./draping1001/draping1001.res" generated? (the generation process of the result file was not recorded in the "command.tcl" file ) What's the full directory path of the result file? (in HyperWorks 14.0) (2) The parameter of result_file in the command cannot be blank when executing this command. The software throws a error: A results file must be specified in the files panel. So, is there a problem with the explanation of the help files to this command? Can anybody gives me some advices? Thanks.
  23. In order to define a plane containing a circle, I need the center of the circle and the normal of the plane. Getting the center is simple using hm_getbestcirclecenter. I have not been able to find a means of getting the normal. If it were possible to get the coordinates of two points on the circle, I could use those with the coordinates of the circle center to calculate the normal. However, I haven't been able to find a means of getting those two points.
  24. HyperMesh上で、選択した節点の座標値をタグとして表示したい場合は、プルダウンメニューFile⇒Run⇒Tcl/Tk scriptからファイルを実行して下さい。 CreateCoordinateTagForNodes.tcl ↓実行イメージ↓
  25. 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 ?
  • Create New...