Chapter 2: Introduction to HyperMesh Process Auomation

Slides:



Advertisements
Similar presentations
Interaction Design: Visio
Advertisements

Lesson 10: Starting Windows Applications start an application program move between open application programs start an application using the Run command.
Copyright © 2009 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. Introduction in Altair ® HyperMesh ® The Fastest, Solver Neutral.
Using Macros and Visual Basic for Applications (VBA) with Excel
Tutorial 8: Developing an Excel Application
Getting Started: Ansoft HFSS 8.0
The Web Warrior Guide to Web Design Technologies
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Miscellaneous Windows 2000 Desktop Features Windows 2000 Intermediate.
Interfacing with Computer Associate Degree in Education (ADE) Lecture 04 Sajid Riaz.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTION Lesson 1 – Microsoft Office XP Basics and the Internet.
FIRST COURSE Getting Started with Microsoft Office 2007.
1 Visual Basic.NET Application Overview. 2 Objectives Discuss what a typical Visual Basic.NET application looks like Configure the Visual Studio.NET Integrated.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
FIRST COURSE Getting Started with Microsoft Office 2007.
Division Example 2x - 3y + 4z = 10 x + 6y - 3z = 4 -5x + y + 2z = 3 A*X = B where A = B = >> X = A\B X =
University of Southern California Enterprise Wide Information Systems Getting Started in R/3 Instructor: Richard W. Vawter.
Innovation Intelligence ® 1 Chapter 3: HyperMesh Automation with HyperMesh Macros.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
MCT260-Operating Systems I Operating Systems I Customizing the User Interface.
Chapter 2: Exploring the Desktop The Complete Guide to Linux System Administration.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Access Tutorial 10 Automating Tasks with Macros
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
A First Program Using C#
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Introduction to Shell Script Programming
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
Data Analysis Using SPSS
Getting Started with Application Software
Innovation Intelligence ® SimLab Automation Training Nirmal Subbaiah May, 2013.
Innovation Intelligence ® 1 Chapter 5: Retrieving Data from HyperMesh Entities.
Website Development with Dreamweaver
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Innovation Intelligence ® 1 Chapter 7: The MotionView Client.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
Session Objectives • Login to PeopleSoft Test Framework(PTF)
Key Applications Module Lesson 21 — Access Essentials
Performance Basics Exploring Microsoft Office 2007 Lesson 1.
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
FIRST COURSE Getting Started with Microsoft Office 2007 COM111 Introduction to Computer Applications.
Innovation Intelligence ® 1 Chapter 6: The Plotting Client.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Lesson No: 6 Introduction to Windows XP CHBT-01 Basic Micro process & Computer Operation.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Adobe Photoshop CS5 – Illustrated Unit A: Getting Started with Photoshop CS5.
Lesson: 2 Common Features and Commands After completing this lesson, you will be able to: Identify the main components of the user interface. Identify.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Innovation Intelligence ® 1 Chapter 4: Using TCL to Control the HyperMesh Session.
S11-1 ADM , Section 11, August 2005 Copyright  2005 MSC.Software Corporation SECTION 11 MACROS: OVERVIEW.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTION Lesson 1 – Microsoft Office 2003 Basics and the Internet.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
30 Copyright © 2009, Oracle. All rights reserved. Using Oracle Business Intelligence Delivers.
Adobe Photoshop CS4 – Illustrated Unit A: Getting Started with Photoshop CS4.
1 Lesson 11 Exploring Microsoft Office 2010 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Microsoft Excel 2007 Noris Bt. Ismail Faculty of Information and Communication Technology Tel : (Ext 8408) BCOMP0101.
OVERVIEW OF WINDOWS BCOMP0101 Introduction to Information Technology Noris Bt. Ismail Faculty of Information and Communication Technology Tel :
Innovation Intelligence ® 1 Chapter 2: The HyperWorks Desktop Environment.
Lesson 11 Exploring Microsoft Office 2007
Excel Tutorial 8 Developing an Excel Application
Grauer and Barber Series Microsoft Word Overview
Tutorial 10 Automating Tasks with Macros
Microsoft Excel 2007 – Level 2
Presentation transcript:

Chapter 2: Introduction to HyperMesh Process Auomation

Fundamentals of HyperMesh Automation - Overview Topics Presented: What is HyperMesh automation? Levels of automation, from basic to advanced The HyperMesh Utility Menu Files associated with the Utility Menu Running macros and Tcl/Tk scripts from the Utility Menu Exercise: Create Utility Menu button to run a user-created Tcl script In this chapter we will discuss what HyperMesh automation is and the different levels of automation available within HyperMesh. We will also examine the HyperMesh Utility menu, the files that are associated with it, and how to run macros and scripts from it.

What is HyperMesh Automation? In general, it is an automatic or semi-automatic execution of a series of HyperMesh commands, steps or processes. Levels of Automation, from Basic to Advanced Level 1: HyperMesh macro Level 2: HyperMesh Tcl/Tk script Level 3: Altair Process Manager

Level 1: HyperMesh macro Performs a HyperMesh action. It is a command file containing HyperMesh, mouse, and Templex commands. Some benefits Reduces user time and mouse clicks for lengthy and repetitive tasks. Creates custom HyperMesh environments Application examples One click shortcut to automesh panel, cleanup sub-panel, add point: point button One click tool turning on/off all of the geometry One click tool creating a component collector with a hard-coded name Limitations Cannot cancel execution or reject results of a macro A macro is not recursive; it cannot call itself

Level 2: HyperMesh Tcl/Tk Script Publicly available, open-standard, interpreted scripting language Tcl/Tk is embedded in HyperMesh Some benefits Add logic and conditional control to HyperMesh macros Develop custom applications, including user-defined panels A Hypermesh Tcl/Tk script file contains HyperMesh macro commands HyperMesh Tcl commands Core Tcl/Tk commands Application examples Tool creating a solver material database Tool defining a HyperMesh panel Tool requesting user to specify load collector name and then creates the collector with that name if one does not already exist

Level 3: Altair Process Manager Enables rapid development and deployment of process automation applications in the CAE domain It is a programmable personal workflow manager that guides users through standard work process Some benefits Standardize CAE processes Minimize CAE analysis set-up time Rerun previously-conducted CAE processes Provide integration with CAD, PDM systems, databases, intranets, and job submission systems Streamline CAE activities Establish and distribute “Best Practice” processes corporate wide

The HyperMesh Utility Menu It contains HyperMesh-supplied macros and Tcl/Tk scripts It is customizable Add to it buttons with associated, user-created macros and Tcl/Tk scripts Located in the Tab area (View -> Utility Menu) Contains page selection buttons at bottom of menu A macro file (hm.mac) controls the display and available operations of the Utility Menu Attributes that you can change include: The Utility Menu page on which the operations appear. Text to be displayed on each control. Location and size of the menu. The help string to be displayed on the menu bar. The macro to call when each control is used.

Files Associated with the Utility Menu hm.mac and [solver].mac files Base definitions file for default HyperMesh Utility menu or a solver user profile’s Utility menu, respectively The default hm.mac file sources the following additional macro files: disppage.mac Populates the Display page of the Utility Menu geommeshpage.mac Populates the Geom/Mesh page of the Utility Menu globalpage.mac Creates the button group that allows you to switch pages qamodelpage.mac Populates the QA/Model page of the Utility Menu userpage.mac Populates the User page of the Utility Menu The userpage.mac file is specifically reserved for user defined macros. May exist in the installation directory or in the directory from which HyperMesh launches. HyperMesh first looks for the userpage.mac file in the directory from which it launches and then in the installation directory. The userpage.mac is where we will be adding our macro definitions

Running Macros and Tcl/Tk Scripts from Utility Menu Location for User-Created Macros Save them to your user-created userpage.mac file By default, macro menu’s User page is blank; it is reserved for user-created macros Location for User-Created Tcl/Tk Scripts Set environment variable, TCL_INCLUDE, containing list of path names to search before looking in default folder HyperMesh macros consist of valid command file or templex commands. To call a macro from the Utility menu, a button needs to be created. Button is located in the Utility menu. Button calls the appropriate macro using the *createbutton command.

*createbutton() Syntax: *createbutton(page, name, row, column, width, COLOR, helpstring, macroName, [arg1…]) Page: page where button appears, values 1-n Name: text displayed on button Enclose with quotes (“ “) Use 12 to 24 characters depending on screen’s font scale or resolution Row: where button appears, values -1, 0, 1-n -1 is next available row plus one 0 is next available row # of visible rows depends on screen resolution Column: where button starts, values 0-10 Width: button’s width, values 1-10 COLOR: button’s color Colors: RED, BLUE, GREEN, CYAN, BUTTON, and MAGENTA Color’s spelling must be in uppercase Helpstring: string displayed in the bubble help for the button. MacroName: name of macro to call when button is selected Arg1…: list of one or more optional arguments passed to macro May have as many arguments as computer’s memory allows

Examples of Defined Macro Menu Buttons Button calls user-created HyperMesh macro *createbutton(5, “Create force”, -1, 0, 10, GREEN, “Create force on selected nodes”, “createForce_macro”) Button calls HyperMesh-provided macro “EvalTcl” to evaluate user- created Tcl script *createbutton(5, “Create force”, -1, 0, 10, GREEN, “Create force on selected nodes”, “EvalTcl”, “create_force.tcl”)

Examples of Defined Macro Menu Buttons Button calls user-created macro to evaluate user-created Tcl script *createbutton(5, “Create force”, -1, 0, 10, GREEN, “Create force on selected nodes”, “createForce_macro”, “create_force.tcl”) *beginmacro(“createForce_macro”) *evaltclscript($1,0) *endmacro() where *evaltclscript() runs a Tcl/Tk script *evaltclscript(filename, flag) Filename Tcl/Tk filename to run Flag flag to run command end functions, default = 0

Online Help

Practical Exercises Exercise 2a Description Add a button to the User Page on the Utility Menu which executes the macro modeltour.tcl. This macro is located in the installation under hm\scripts, so a path is not needed. The name of the button should be “Model Tour”. The help string should be “Explore HyperMesh Session”. The color and location are up to you. HyperMesh commands used *createbutton() TCL/TK commands used none Hints On Windows, the working directory is located in the My Documents folder. Create a new text file called userpage.mac in this location and add the appropriate commands to make the button evaluate the tcl file.