HM Arbeitsumgebung Mar25
-
Upload
puneet-bahri -
Category
Documents
-
view
216 -
download
0
description
Transcript of HM Arbeitsumgebung Mar25
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Audio Dial-in Instructions
aus D: 069-222-228-481 oder 0800-589-0689aus A: 01-253-021-429 oder 0800-006-223aus CH: 022-595-4756 oder 0800-900-114aus NL: 020-794-6379 oder 0800-023-4613Sonstige:+44-208-118-6013 (GB)
Conference Code: 810 896 782 0
heutiger Vortragender:Thomas Kowalewski
E-Mail: [email protected]
unser nchstes Thema: 8. April: Versagensmodelle in RADIOSS
www.altairhyperworks.de/BestPractice
heutiges Thema:Einrichten derHyperMesh-Arbeitsumgebung
HyperWorks Best Practice
Beginn um 11:00 Uhr Die Telefonkonferenz starten wir um ca. 10:50 Uhr.Wir informieren Sie dann rechtzeitig ber den Chat.Nutzen Sie fr Fragen ebenfalls einfach den Chat.
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Agenda
Overview: Files involved into HM startup
Search path
Detailed characteristics of the files
Examples
macro
hmcustom.tcl:
Keyboard shortcuts
Path settings
Q & A
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
hmmenu.set
hm.cfg
hmexec
Command file using startup option "-c"
hmsettings.tcl
hmcustom.tcl
Tcl Script using startup option "-tcl"
(userpage.mac)
(User Profile)
feconfig.cfg
Unix/Linux - variations are added wrapped in .
Overview: Files involved into HM startup
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Several files are looked up in a certain search order.
The search order is:
1) Current directory
2) %USERPROFILE% (overruled by %HOME% if exists)
3) "My Documents" (both overruled by %HW_CONFIG_PATH%)
4) "Bin"- directory in the installation tree
Search path
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Format: Binary
Start: Read from /bin and from search path
End: Written to current directory
Typical content: Panel modification, user profile, default settings
Version dependant: Yes
Future prospects: to be discontinued (long term)
hmmenu.set
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Format: *()
Start: Read once from search path
End: ---
Typical content: Post settings (legend, registered readers), graphic settings,
*batchmodeskipcommand()
Version dependant: No
Future prospects : to be discontinued (short term)
hm.cfg
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Format: Command file
Start: Read all files from search path (reverse order)
End: ---
Typical content: User defined
Version dependant: No
Future prospects : Due to expire (11.0)
hmexec
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Format: TCL
Start: Read once from "My Documents"
(overruled by %HM_SETTINGS_DIR%)
End: Written to location it has been read from.
Typical content: GUI definitions (like visible browsers, toolbars), last selected files
Version dependant: No (ideal case)
Future prospects : main file for "session settings"
hmsettings.tcl
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Format: TCL
Start: Read all files from search path (reverse order)
End: ---
Typical content: Customized defaults, keyboard shortcuts,
library functions for general usage in scripts
Version dependant: User dependant
Future prospects : "head quarter" of customization
hmcustom.tcl
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Format: Macro file
Start: Read if included in current macro file () following search path
everytime a new maco file (or User profile) is loaded.
End: ---
Typical content: Buttons & macros on "USER" and additional pages
Version dependant: User dependant
Future prospects : to be discontinued (long term, probably legacy support)
It's not AUTOMATICALLY performed, but due to an *includemacrofile(), which occupies the
search path if it's called with relative file path.
Every User profile related macro file contains
*includemacrofile(userpage.mac)
userpage.mac
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
- These two options cannot be used in conjuncion.
- In general, using TCL is more flexible.
- "-c" might be discontinued
Startup options "-c" versus "-tcl "
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Each macro is a pair of a button and a performed piece of command file.
*createbutton(,macroName)
*beginmacro(macroName)
*endmacro()
Example: Show numbers around a selection
- Select one or more elements (or nodes)
- show ids of attached nodes (or elements) and loads
Example userpage.mac
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
*createbutton(page, label, row, column, width, color, toolTip, macroName[, params])
*createbutton(5,"IDsByElem",0 , 0 , 10, BLUE, "whatever", "idsOn")
*beginmacro("idsOn")
*createmarkpanel(elements,1,"Select elements")
*marktousermark(elements,1)
*numbersmark(elements,1,1)
*createmark(elements,1) retrieve
*findmark(elements,1,1,1,nodes,1,2)
*createmark(elements,1) retrieve
*findmark(elements,1,1,1,loads,1,2)
*setdisplayattributes(0,0)
*endmacro()
Example userpage.mac
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
*createbutton(page, label, row, column, width, color, toolTip, macroName[, params])
*createbutton(5,"IDsByElem",0 , 0 , 10, BLUE, "whatever", "idsOn")
*beginmacro("idsOn")
*createmarkpanel(elements,1,"Select elements")
*marktousermark(elements,1)
*numbersmark(elements,1,1)
*createmark(elements,1) retrieve
*findmark(elements,1,1,1,nodes,1,2)
*createmark(elements,1) retrieve
*findmark(elements,1,1,1,loads,1,2)
*setdisplayattributes(0,0)
*endmacro()
Example userpage.mac
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
*createbutton(page, label, row, column, width, color, toolTip, macroName[, params])
*createbutton(5,"IDsByElem",0 , 0 , 10, BLUE, "whatever", "idsOn",elements,nodes)
*createbutton(5,"IDsByNode",0, 0 , 10, BLUE, "whatever", "idsOn",nodes,elements)
*beginmacro("idsOn")
*createmarkpanel($1,1,"Select $1")
*marktousermark($1,1)
*numbersmark($1,1,1)
*createmark($1,1) retrieve
*findmark($1,1,1,1,$2,1,2)
*createmark($1,1) retrieve
*findmark($1,1,1,1,loads,1,2)
*setdisplayattributes(0,0)
*endmacro()
Example userpage.mac
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
- Start explorer in current directory:
command:
exec explorer . &
- Reload macro file (and jump to USER page)
command:
*setmacrofile [hm_info macrofilename]; *setactivepage 5
- Convert the example macro to a TCL routine called by keyboard shortcutcommand (call for proc with entity as parameter):
::showIDs elements
file:
TCL file containing a proc
Example keyboard shortcut
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Saving multiple views
Though the Panel allows only five views,
the TCL command accepts any name for a view:
foreach m {1 2 3 4 5 6 7 8 9 0} {
set ::HM_Framework::Settings::Keys::p_normal_key_file($m) {}
set ::HM_Framework::Settings::Keys::p_normal_key_proc($m) [list *saveviewmask customView_$m]
set ::HM_Framework::Settings::Keys::p_control_key_file($m) {}
set ::HM_Framework::Settings::Keys::p_control_key_proc($m) [list *restoreviewmask customView_$m]
}
Example hmcustom.tcl
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Setting default paths
All file selection GUIs store the last selected path.
Resetting this to a default directory (or even "."):
Finding the involved setting, e.g. File -> Save as
- Save a file to a unique path
- Close HM
- Lookup the path in the hmsettings.tcl
- Save the adapted setting to hmcustom.tcl
Example hmcustom.tcl
-
Copyright 2010 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
One day Introduction to HyperMesh customizing
Kln 08.04.2011Mnchen 15.04.2011Mnchen 04.07.2011Hannover 05.09.2011Bblingen 18.10.2011Kln 21.10.2011Kln 01.12.2011
Registration via
www.altairhyperworks.de Support Training Modellaufbau Customizing
Further Information