Innovation Intelligence ® 1 Chapter 7: The MotionView Client.

Slides:



Advertisements
Similar presentations
ROSI Express Training: Adding Additional Instructors to a Course Meeting Section.
Advertisements

Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
The Web Warrior Guide to Web Design Technologies
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Innovation Intelligence ® 1 Chapter 3: HyperMesh Automation with HyperMesh Macros.
Innovation Intelligence ® 1 Chapter 6: Interfacing with HyperMesh Solver Templates.
Viewbox 4 Tutorial How to create a Template Please view this tutorial as a Slide Show in PowerPoint, because it contains animations that will not appear.
1 Chapter 1 Tour of Access. 1 Chapter Objectives Start and exit Microsoft Access Open and run an Access application Identify the major elements of the.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Innovation Intelligence ® 1 Chapter 1: Introduction to TCL.
Web Technologies Website Development Trade & Industrial Education
Chapter 9 CAD & Parameters
Innovation Intelligence ® SimLab Automation Training Nirmal Subbaiah May, 2013.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
Innovation Intelligence ® 1 Chapter 5: Retrieving Data from HyperMesh Entities.
Copyright © 2010 Altair Engineering, Inc. All rights reserved.Altair Proprietary and Confidential Information Section 13 Loads and Boundary Conditions.
Using Visual Basic for Applications (VBA) – Project 8.
Chapter 8 iComponents and Parameters. After completing this chapter, you will be able to perform the following: –Create iMates –Change the display of.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Innovation Intelligence ® Section 6 Meshing in SimLab.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 3.1 Test-Driving the Welcome Application 3.2.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Copyright © 2010 Altair Engineering, Inc. All rights reserved.Altair Proprietary and Confidential Information CATIA import through CATScript.
Innovation Intelligence ® 1 Chapter 6: The Plotting Client.
Chapter 2: Introduction to HyperMesh Process Auomation
Copyright © 2010 Altair Engineering, Inc. All rights reserved.Altair Proprietary and Confidential Information Regeneration – Pro/Engineer.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 25.1 Test-Driving the ATM Application 25.2.
Innovation Intelligence ® Section 15 Contact Modeling.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
Innovation Intelligence ® 1 Chapter 4: Using TCL to Control the HyperMesh Session.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Innovation Intelligence ® Section 17 Material & Property Definition.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
XP Tutorial 8 Adding Interactivity with ActionScript.
CSx 4091 – Python Programming Spring 2013 Lecture L2 – Introduction to Python Page 1 Help: To get help, type in the following in the interpreter: Welcome.
Innovation Intelligence ® SIMLAB Updates: SimLab_13.3_Beta_WIN64_0529.
Innovation Intelligence ® 1 Chapter 4: The Animation Client.
Innovation Intelligence ® Section 20 Flux and Convection.
Four-bar Mechanism Model MotionView Example 1. Points Bodies Constraints(Joints) Graphics Input(Motion or Force) Output 2.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
3 Copyright © 2006, Oracle. All rights reserved. Building an Analytic Workspace.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
© 2015 Lexmark International, Inc. All rights reserved. December 8 – 16 th, x Enovia Upgrade Training.
Innovation Intelligence ® Feb Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. GUI design Controls Toplevel.
Innovation Intelligence ® 1 Chapter 2: The HyperWorks Desktop Environment.
Dive Into® Visual Basic 2010 Express
WORKSHOP 12 BOUNCING BALL
Chapter 7 - JavaScript: Introduction to Scripting
JavaScript: Introduction to Scripting
Introduction to EBSCOhost
T. Jumana Abu Shmais – AOU - Riyadh
Using Templates and Library Items
Copyright © 2012, Elsevier Inc. All rights Reserved.
Chapter 7 - JavaScript: Introduction to Scripting
Chapter 7 - JavaScript: Introduction to Scripting
CMPE 152: Compiler Design March 7 Class Meeting
Chapter 7 - JavaScript: Introduction to Scripting
Presentation transcript:

Innovation Intelligence ® 1 Chapter 7: The MotionView Client

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 22 The MotionView Model Client – Overview Model Window Loading mdl model Creating blank model Export a model Running MotionSolve Model Object Getting the model handle Adding new entity Model Tree Grabbing Properties of an entity Interpret Properties of an entity

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 33 The MotionView Model Client – Model Window In any window, you can set the client type to Model Creates the model object Example: hwi OpenStack hwi GetSessionHandle session1 session1 GetProjectHandle project1 project1 GetPageHandle page1 1 page1 GetWindowHandle win1 1 win1 SetClientType Model hwi CloseStack

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 44 The MotionView Model Client – Model Window After setting the client type you can access the model client and get full access to its functionality using the GetClientHandle command page1 GetWindowHandle win1 1 win1 GetClientHandle client Object Hierarchy for mdlI The prefix “mdlI” is used internally for naming the classes within the model client. It stands for “model Interface”.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 55 The MotionView Model Client – Model Window Load an existing model (mdl) file into the model client CreateModel command is used Requires 2 arguments – the filename and type of file page1 GetWindowHandle win1 1 win1 GetClientHandle client client CreateModel full_car.mdl mdl Create a blank model CreateBlankModel command is used page1 GetWindowHandle win1 1 win1 GetClientHandle client client CreateBlankModel

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 66 The MotionView Model Client – Model Window Export an existing model ExportModel command is used Requires that a filename be given for the file that is bieng written out page1 GetWindowHandle win1 1 win1 GetClientHandle client client ExportModel “full_car.xml” Run MotionSolve RunSolverScript command is used Requires that a filename to which the results should be written to be given page1 GetWindowHandle win1 1 win1 GetClientHandle client client RunSolverScript “full_car.xml”

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 77 The MotionView Model Client – Model Object Getting the model handle using GetModelHandle command page1 GetWindowHandle win1 1 win1 GetClientHandle client client GetModelHandle mod Adding a new entity using InterpretEntity The InterpretEntity command adds a new entity using the MDL statement keyword, the variable name and label. client CreateBlankModel client GetModelHandle mod mod InterpretEntity p_handle Point p_new “\”Point 0\”” mod Evaluate Use Evaluate command on the model object to evaluate all the expressions in the model an update the values

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 88 The MotionView Model Client – Model Object Adding a new entity using AppendMdl Directly use an mdl statement as an input argument mdl statement to add a point: *Point (p_0, “Pivot”) In TCL using AppendMdl: client CreateBlankModel client GetModelHandle mod mod AppendMdl “*Point( p_0, \” Pivot \”)” mod Evaluate Notice the back slash “\” which needs to be used because the mdl statement has quotes “ “

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 99 The MotionView Model Client – Model Object Adding a new entity using AddEntity adds a new entity using the class varname from the MDF file MDF file contains the definitions of the attributes of a data member such as point, body, marker, etc client CreateBlankModel client GetModelHandle mod mod AddEntity p_handle point_ent p_new false mod Evaluate

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 10 The MotionView Model Client – The Model Tree Examine how MotionView Model Tree is organized Use Expression Builder to get the reference of an entity For an example, let’s add a point and a body using the MotionView interface Add a point at 10, 20, 30 using the Points panel 1. Go to the Points Panel 2. Add a point (leave label and variable set to defaults) 3. Set Coordinates to 10, 20, 30

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 11 The MotionView Model Client – The Model Tree Add a body using the Bodies panel Set Center of Mass Coordinate of Body 0 to Point 0 1. Bodies panel 2. Add a body (leaving the label and variable set to defaults) 3. Click on CM Coordinates 4. Check box for use center of mass coordinate system and specify Point 0 for Origin

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 12 The MotionView Model Client – The Model Tree From the Properties tab click in field for mass and then click f(x) to access Expression Builder 1. Click on Properties Tab 3. Click f(x) for Expression Builder 2. Click in field for Mass

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 13 The MotionView Model Client – The Model Tree Expression Builder Populated with model tree To refer to idstring of the point locate the parent point’ Expand the folder Points and then Points 0 By expanding the child you can now select idstring

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 14 The MotionView Model Client – The Model Tree Click Add, you will notice the Expression Builder will have the expression “the_model.p_0.idstring”. “the_model” references the system in which an entity is created. “p_0” is the variable name of the point “Point 0” “the_model.p_0.idstring” returns the idstring of the point. Notice that we require “dot” operator to refer to a property of an entity. Likewise, you may use the Expression Builder to refer to any property of an entity.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 15 Grabbing Properties of an entity Grab the properties of an entity using GetDataValue X coordinate of a point Mass of a body Stiffness value of a spring GetDataValue returns the current value for a data member To get the X co-ordinate of a point (with var name p_0) using GetDataValue : page1 GetWindowHandle win1 1 win1 GetClientHandle client client CreateBlankModel client GetModelHandle mod mod GetDataValue “the_model.p_0.x” mod Evaluate Use the Model Tree in the Expression Builder to get the required property (the_model.p_0.x)

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 16 Grabbing Properties of an entity Grab the properties of an entity using GetChildHandle To get the X co-ordinate of a point (with var name p_0) using GetDataValue : page1 GetWindowHandle win1 1 win1 GetClientHandle client client CreateBlankModel client GetModelHandle mod mod GetChildHandle xcord “p_0.x” xcord GetEvaluatedValue One other way of accomplishing this would be: page1 GetWindowHandle win1 1 win1 GetClientHandle client client CreateBlankModel client GetModelHandle mod mod GetChildHandle poi p_0 poi GetChildHandle xcor x xcor GetEvaluatedValue

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 17 Interpret the properties of an entity Interpret the properties of an entity using SetDataValue SetDataValue command changes the value for an item using a value or expression Change the X coordinate of a point (with var name p_0) using a value client GetModelHandle mod mod SetDataValue “the_model.p_0.x” 50 mod Evaluate Change the X coordinate of a point (with var name p_0) using an expression client GetModelHandle mod mod SetDataValue “the_model.p_0.x” “the_model.p_0.y+50” mod Evaluate

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 18 Interpret the properties of an entity Interpret the properties of an entity using InterpretSet InterpretSet command adds a new set statement to the system Change the X coordinate of a point (with var name p_0) using a value page1 GetWindowHandle win1 1 win1 GetClientHandle client client CreateBlankModel client GetModelHandle mod mod InterpretSet SetPoint p_0 “10” “20” “30” mod Evaluate The InterpretSet command requires us to specify the keyword of the new entity’s MDL statement ( SetPoint in the above example) and the remaining arguments for the corresponding mdl statement.

Copyright © 2012 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved. 19 The MotionView Model Client - Exercises Please reference exercises 7a, 7b, and 7c in your manual