Jump to content

Search the Community

Showing results for tags 'scripting'.



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 プロセスの自動化
    • エンタープライズソリューション
    • データアナリティクス
    • 学生向け無償版(Altair Student Edition)

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

  1. Hi all, I'm trying to put a script together which uses tickboxes but can't seem to find the command to produce a tickbox. Anyone have any ideas? Cheers Andy
  2. Hello, General question: Looking for ways to export 3D animations from Inspire Studio. Situation: exporting simulation animation from H3D file to graphics file ( .3ds or series of .obj) for later usage in blender Detailed questions: 1) Is it possible to export 3D animation in a .3ds format (keeping animation key frames)? 2) How to write and run a script that will export all the animation frames in separate .obj files ?
  3. Hi all, I have a script that isolates any elements from an initial batch mesh that have problems associated with them. It places them into a set but leaves them as the default yellow colour. It becomes a pain to 'isolate only' and rebuild the mesh up around them. So I have been changing the colour of these elements by hand. Does anyone know how I could write into my script a line that changes the colour for me? Thanks,
  4. Hi all, I'd like to create a script which selects 2d elements of less than 5mm and then displays the element numbers on screen. Any ideas anyone? Much appreciated Andy
  5. Hey guys, I'm writing a script, where I can set a value (e.g. for the Young's Modulus) for a material property. My problem is that I would like to have a default value in the window, like 210000 MPa, which I can take and proceed or change it if it doesn't suit my material. Is it somehow possible to set such a default value? Kind regards and thanks in advance Simon Attached you can find the part of my script and a screenshot of the window I'm talking about: *startnotehistorystate {Modified E of material} set youngs_modulus [hm_getfloat "Youngs Modulus (Steel)=" "Enter Youngs Modulus:"] *setvalue mats id=1 STATUS=1 1= $youngs_modulus *endnotehistorystate {Modified E of material}
  6. Hey guys, as the title already says I'm looking for a macro which saves the nodes of a whole component into a nodelist automatically. In the end the command *plotnodelist is used and needs a nodelist to execute the program. Do you have any ideas how this could work? Kind regards and thanks in advance, Simon
  7. Hey guys, I want to create several materials, properties and components automatically. The desired IDs of all the materials, properties and components are saved in an external file and then written into a variable. Each of these values should create an own material, an own property and an own component. For creating the first material, everything works fine. But when the second material should be created, an error is occurring. Do you have an idea how this problem can be fixed? Kind regards Simon Attached, you can find the file with the IDs (these are the values in column 1 saved into the variable "field1") and the .tcl-script I'm talking about. SKO_3.tcl SKO.strs
  8. Hey guys, is there a way to create a label in the utility menu? I only find command to create buttons etc., but no command for labels. Can you help me out somehow? Kind regards Simon
  9. Hi all, How to get nodes from free edges and drag it in particular direction using tcl? Regards, Sanket
  10. Hey guys, I'm trying to customize the output of a load step. Trying to run again the relevant parts of the command file, an error is occurring in this line. *startnotehistorystate {Updated string array} *setvalue loadsteps id=1 STATUS=2 4873={ } ROW=0 *endnotehistorystate {Updated string array} I'm pretty sure the empty brackets are the reason for the error, but I don't know how to get around them. Could you help me out with this problem? Kind regards Simon Attached you'll find my code. The relevant part starts after line 254. SKO_2.tcl
  11. Hey guys, after I have finished my work on a model, I start a new session in HyperMesh and want to delete the .fem-File from the previous model. This is not working, and a message appears saying that the .fem-file is still open in HyperMesh. If the command "file delete" is used, an error is occurring which says "permission denied". Do you know how I can solve this problem and delete the .fem-File without closing HyperMesh totally? Kind regards Simon
  12. Dear all, I am working right now on a topology optimization based on a tcl script. It is important to me to identify certain nodes in order for my load cases. Lets say I have in my script something like *createnode 0 0 0 0 0 0 *createnode 0 1 0 0 0 0 and then a section where I want to apply a load to it. I did it like this: *createmark nodes 1 1(that 1 is the node id) *loadcreateonentity_curve nodes 1 1 1 0 0 150 0 0 150 0 0 0 0 0 The problem I have is, that the block with the createnode part can vary so the Ids are not always the same. I did not find a way to include a specific ID in the *createmark line in order to work with it later.... it does more or less: id: 1,2,3,4 as you progress creating your nodes. I thought on selecting my nodes differently, maybe with *createmark nodes 1 "on plane" but I did not have sucess there either. How would you solve this problem? I must work with specific nodes I create but te nodes can vary so either I have to renumber it in a way I know which id it has, maybe based on coordinates or assign specific node Ids. Thanks in advance for discussing this topic with me, Best regards, Merula
  13. For more information, see www.altair.com/mbd2019 and www.altair.com/mbd2019/compose. To download a free 1-year license of this software, go to https://basicportal.altair.com/downloads. Do you want to do technical calculations, scripting, data visualization or data processing (especially involving CAE or test data)? If yes, then whether you are involved in academia or industry or are just a hobbyist/maker looking for cool & useful software, this no-cost Personal Edition software could help you achieve your goals. The multi-language environment of Compose enables the combined use of scripts written with its open matrix language (OML) with scripts written in Tcl/Tk or Python. And OML is compatible and inter-operable with Octave and MATLAB®. Altair has also expanded its support of open standards by open-sourcing its open matrix language (OML). Interested users and contributors can download source code from the OpenMatrix website and actively participate in this burgeoning R&D community. Give Altair Compose™ and OML a try today!
  14. Hi all, Am trying to find a line of code which will select a component / assembly / set etc, when the name contains a certain string... for instance the assembly name may read "apples-001001a" but I want a script to select that assembly if the name contains "apples" as the number could change in the future. Any ideas? Cheers Andy
  15. Hi all, I'd like to create a script which selects 2d elements of less than 5mm and then displays the element numbers on screen. Any ideas anyone? Much appreciated Andy
  16. Hi, I run a script in simlab (Project-->Autoplay-->Script) after importing the parasoild into it. But as the script meshes the bodies, cmd window pop ups for each activity (like meshing). Can i run this script in background using batch and avoid such pop ups? If yes, Please guide !!!
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. Hello everyone, I have to assign variable shell thickness to a structure. It is a single part and I have partitioned it into 7000 sections and I have to mesh and assign different thickness to each section. Can anyone help with scripting for element set creation? thanks in advance.
  25. Hey guys, I created a .tcl-script, which I normally open with the active-tcl program. The script works as it is supposed to be and opens a GUI, where several buttons can used to do calculations etc.. In the next step, I created a button in HyperMesh and want my .tcl-script to be started by pressing this button. The problem is that the window I used to have when I've started the script by active-tcl doesn't appear when I use HyperMesh. Can you help me out with this problem? Thanks in advance, kind regards and greetings from Germany Simon You can find the script here:convert.tcl
×
×
  • Create New...