Changing the default chosen elements for HyperMesh (Abaqus)
Answers
-
Hi Mickster,
the default element type can be reviewed by 1D/2D/3D > elem types (the panel you posted)
To change the default element type simply click on the full name or abbreviation to access other options.
0 -
Altair Forum User said:
Hi,
add below commands to file C:\Users\YourName\hmcustom.tcl
if {[string match -nocase *abaqus* [hm_framework getuserprofile]]} {
*elementtype 104 1
*elementtype 205 5
*elementtype 208 5
}
0 -
Altair Forum User said:
Hi,
add below commands to file C:\Users\YourName\hmcustom.tcl
if {[string match -nocase *abaqus* [hm_framework getuserprofile]]} {
*elementtype 104 1
*elementtype 205 5
*elementtype 208 5
Hi Tinh, is the file somehow protected, as I get this message, which prevents me from making changes:
Can you also tell me, if there is somewhere where I can find information about the different element types.
<?xml version="1.0" encoding="UTF-8"?>
Best regards
Mick
0 -
Please edit the file's properties and deactivate 'read-only' checkbox
0 -
Altair Forum User said:
Please edit the file's properties and deactivate 'read-only' checkbox
Hi Tinh, I have now gotten access to change the file. I have changed the script as you told. When I re-open HyperMesh it does not change the default set element-types. Can you see if I have inserted it wrong?
0 -
Hi, maybe initial profile was not abaqus
try this code:
hm_framework registerproc ::p_ChangeElemTypes after_userprofile proc ::p_ChangeElemTypes args { if {[string match -nocase *abaqus* $args]} { *elementtype 104 1 *elementtype 205 5 *elementtype 208 5 } } ::p_ChangeElemTypes [hm_framework getuserprofile]
0 -
Altair Forum User said:
Hi, maybe initial profile was not abaqus
try this code:
hm_framework registerproc ::p_ChangeElemTypes after_userprofile proc ::p_ChangeElemTypes args { if {[string match -nocase *abaqus* $args]} { *elementtype 104 1 *elementtype 205 5 *elementtype 208 5 } } ::p_ChangeElemTypes [hm_framework getuserprofile]
Hi again Tinh, I tried this code also and still same result. I always have to choose a user profile, when I open up HyperMesh, so it cannot be opened initially.
0 -
It worked on my hypermesh.
Please check it on other machine
0 -
Altair Forum User said:
It worked on my hypermesh.
Please check it on other machine
Tinh, do you put in on same location as me i.e. the bottom of the script?
0 -
I put it on C:/users/tinh/hmcustom.tcl
0 -
Hi Mr. Tinh. I sitll have noget found a solution for this - I cannot find the file hmcustom.tcl anywhere.
Also, if I create such a file I'd need to have a path to get this file into consideration.
0 -
you can create and save the hmcustom.tcl file into your 'Documents' folder.
The easiest way of getting these commands and codes, would be to look into the command.tcl file, also found (tipically) in the 'Documents' folder.
You can do the following:
1- close all HM
2- go to Documents, and delete command.tcl file
3- launch HM, and change whatever element types you need (make sure to do the least operations possible
4- once you hae what you want, open command.tcl in a good text editor, and check what commands have you changed manually
5- create a new text file, and save it as 'hmcustom.tcl' in 'Documents' and copy the script sent above and add the commands you've got from step 4, and paste them inside.
6- launch HM
Tipically HM will have the start-in directory in 'Documents'.
But you can also take a look at your HM shortcut, under properties, and it will show the start-in, if not 'Documents'.
0