Jump to content

Search the Community

Showing results for tags 'scripts'.



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

  1. Hello all, In a part of my script the vector coordinates are pulled for a later use. When I execute I have the following error message --------------------------------------------------------------------------------------- Error: can't read "vx1": no such variable while executing "*createvector 1 $vx1 $vy1 $vz1" --------------------------------------------------------------------------------------- Code: *vectorcreate_twonode $x $y set vectorList [ hm_getmark vectors 1 ]; foreach vct $vectorList { set vx1 [ hm_getentityvalue vectors $vct "xcomp" 0 ] set vy1 [ hm_getentityvalue vectors $vct "ycomp" 0 ] set vz1 [ hm_getentityvalue vectors $vct "zcomp" 0 ] return "{ $vx1 } { $vy1 } { $vz1 }" } *createmark nodes 1 $x *duplicatemark nodes 1 25 set r [hm_entitymaxid nodes 1] *createvector 1 $vx1 $vy1 $vz1 *translatemark nodes 1 1 10 ------------------------------------------------------------------------------------------------------------- Would be great if someone could tell how to reference the coordinates vx1, vy1 and vz1 in the other parts of the code. Thanks in advance
  2. hello, i am new to make scripts. i am trying to do a script to delete empty assemblies and sub assemblies in one action. i need a loop format of script to do this. but i dont know the structure. please help me out.
  3. Hello all. I have a question. Is it possible to create with .tcl commands general surfaces, but for all solids. It is very tedious to constantly perform repeated commands. And script could solve this problem. For example this detail: This surfaces were made by next commands: add_button "Make boolean surfaces" { *createmark solids 1 1 *createmark solids 2 5 *boolean_merge_solids 1 2 14 2 *createmark solids 1 1 *createmark solids 2 5 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 3 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 4 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 5 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 2 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 3 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 4 *boolean_merge_solids 1 2 14 2 *createmark solids 1 2 *createmark solids 2 5 *boolean_merge_solids 1 2 14 2 *createmark solids 1 3 *createmark solids 2 1 *boolean_merge_solids 1 2 14 2 *createmark solids 1 3 *createmark solids 2 2 *boolean_merge_solids 1 2 14 2} But if we have about 100+ solids and more? How to solve this question\problem? Thanks!
  4. Hi, I need to create nodes for elements of user specified sizes. For eg, If the user specifies size 6 for the element, the nodes should be created at (0,0), (0,6), (6,0), (6,6). If the user specifies size 8 for the element, the nodes should be created at (0,0), (0,8), (8,0), (8,8). This is to be repeated to generate a geometry 830 mm*450 mm . therefore, if the element is of size 8, 830/8 elements must be created along the length and 450/8 elements along the width with their corresponding nodes. Please tell me how to automate this? Also, I need flexibility to change 830*450 mm dimensions to user specified dimensions (say 500*250 or 1000*600 etc etc). How do I incorporate this?? Currently for an element size 10 I've to write *createnode 0 10 0 0 0 0 *createnode 10 0 0 0 0 0 *createnode 10 10 0 0 0 0 *createnode 0 0 0 0 0 0 thanks, Kushal.
  5. Hi! I am new in python scripts and I would like to know if someone knows how to make a script that allows to hide everything that the model and let see for example a certain range of ids. That is ... a code that filters and leaves in sight only a certain range of IDS qe. thank youu!!
  6. 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
  7. 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
  8. Hi all, Am trying to create a script which instantly creates a set with all the beam and bar elements in my model... this is how far I have gotten. *createmark elems 1 "by config" bar2 *createentity sets cardimage=SET_ELEM name=set1 *setvalue sets id=2 ids= elems 1 {this is where I am getting it wrong} *setvalue sets id=2 name="test" I can create the set easily but it is getting the beam and bar elements into that set which is proving troublesome. Also, is there a list of all Hypermesh TCL script commands? Cheers Andy
  9. Hi, I need to create nodes for elements of user specified sizes. For eg, If the user specifies size 6 for the element, the nodes should be created at (0,0), (0,6), (6,0), (6,6). If the user specifies size 8 for the element, the nodes should be created at (0,0), (0,8), (8,0), (8,8). This is to be repeated to generate a geometry 830 mm*450 mm . therefore, if the element is of size 8, 830/8 elements must be created along the length and 450/8 elements along the width with their corresponding nodes. Please tell me how to automate this? Also, I need flexibility to change 830*450 mm dimensions to user specified dimensions (say 500*250 or 1000*600 etc etc). How do I incorporate this?? thanks, Kushal.
  10. Hi, Is it possible to find all the mesh nodes that lie on a plane (defined by 3 points - A,B,C) through the use of .tcl or command script? Many thanks, Wensong
  11. hi, hm_appendmark nodes 1 "by adjacent" Since nodes cant be marked by adjacent. But I need to get adjacent nodes . Is there anyway that I can use
  12. 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.
  13. No need to answer this one!!!! Just ignore as I cannot find the delete post button!!!
×
×
  • Create New...