Femap API Introduction

Slides:



Advertisements
Similar presentations
Agenda Challenges in production environments. MicroPress solution. MicroPress value. What’s new?
Advertisements

Product Configurator for Marketing to Manufacturing design automation.
Developing an Excel Application
Tutorial 8: Developing an Excel Application
Microsoft Office Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Unrestricted © Siemens AG 2014 All rights reserved.Smarter decisions, better products. What’s New Femap /
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Word Lesson 16 Working with Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Digital Image Processing Lecture3: Introduction to MATLAB.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Languages and Environments Higher Computing Unit 2 – Software Development.
Macros n Macros are little programs that you can create to automate particular tasks that you may want to execute more easily than having to specify all.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
EXCEL 2007 MACROS.  TOM FARRAR OF CNEXTWAVE INC.  GOAL : LEARNING ABOUT EXCEL MACROS.  PRESENTATION INCLUDES DISCUSSION AND DEMONSTRATION.  QUESTIONS.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
Microsoft Excel Macros & Excel Solver (IENG490)
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Exploring Microsoft Office XP - Microsoft Word 2002 Chapter 71 Exploring Microsoft Word Chapter 7 The Expert User: Workgroups, Forms, Master Documents,
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
CHAPTER TEN AUTHORING.
Advanced Lesson 5: Advanced Data Management Excel can import data, or bring it in from other sources and file formats. Importing data is useful because.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
Key Applications Module Lesson 21 — Access Essentials
MS Access: Introduction 1Database Design. MS Access: Overview MS Access A Database Management System (DBMS) designed to create applications that organize,
Creating Macros in Excel Adding Automated Functionality to Excel & Office Applications.
March 2004 At A Glance autoProducts is an automated flight dynamics product generation system. It provides a mission flight operations team with the capability.
FEMCI Workshop Advanced FEMAP Programming with Applications to Structural Analysis William L. McGill
Excel Macros 1 Macros or, How to Automate Part of Your Spreadsheet or Worksheet.
Introduction to Microsoft Excel Macros COE 201- Computer Proficiency.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Take Your Data Analysis and Reporting to the Next Level by Combining SAS Office Analytics, SAS Visual Analytics, and SAS Studio David Bailey Tim Beese.
Guide for Excel Integration Fusion CRM ADFdi
1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
June 17, 2009 Office 2007 Tips & Tricks.
Exploring Excel Chapter 7 Automating Repetitive Tasks: Macros and
Autodesk Inventor 2008 Essentials Plus
PC-DMIS Introduction to GD&T Selection
SECTION 1: Add-ons to PowerPoint
Business Directory REST API
Practical Office 2007 Chapter 10
BricsCAD BIM Training Session Documents:
Microsoft Dynamics.
Understand Windows Forms Applications and Console-based Applications
Microsoft Access Illustrated
Microsoft Office Illustrated
Exploring Microsoft® Word® 2016 Series Editor Mary Anne Poatsy
Femap Structural Analysis Toolkit (SATK)
Social Media And Global Computing Introduction to Visual Studio
Creating Macros in Excel
Exploring Microsoft Excel
Lesson 12 -Maintaining Documents & Macros Lesson 13 - Protecting & sharing documents Lesson 14 - Advanced Options #1.12, #1.13, & #1.14.
What's New in eCognition 9
Digital Image Processing
Lesson 9: GUI HTML Editors and Mobile Web Sites
Network Analyst – Automating Workflows with Geoprocessing
Together we are Advancing Infrastructure
Games Development 2 Tools Programming
What's New in eCognition 9
Introduction to ASP.NET Parts 1 & 2
What's New in eCognition 9
Chapter 4 Enhancing the Graphical User Interface
Visual Basic for Applications: Introduction
Presentation transcript:

Femap API Introduction B A Pierre-Luc Messier, ing. FEMAP SYMPOSIUM 2018 May 22nd 2018

Agenda API Overview API vs Program File Why use API? API Programming Interface The Type Library Resources Demo 1: Create user commands and keyboard shortcuts Demo 2: Drive Femap from Excel (extract from Femap to Excel, modify in Excel, then update to Femap) Example 1: Path Length calculation on an antenna dish Example 2: Calculate in-plane displacements

Overview - Application Programming Interface (API) Femap provides a robust set of finite element modeling and post-processing functionality. Femap API lets you customize Femap to meet your specific needs. Femap API is an OLE/COM-based programming interface to Femap. It contains hundreds of functions that can be called from Visual Basic, VBA, C, or C++. This allows Femap to become a powerful integration program for third party solutions (Excel, Word, Matlab, SolidEdge, Catia, ... ) and significantly increases the portability of data into and out of the program. Many useful programs are delivered with Femap in an ever expanding library that can be found in the Custom Tools toolbar. Code is provided! FEMAP includes development environment that allows for the creation of custom programs to extend and enhance FEMAP functionality Programs can be scripts or stand-alone programs FEMAP can be viewed as a development platform Out-of-the-box functionality may fit the FEA needs of 95% of the users 95% of the way It’s not possible to be a perfect Pre-Post for everyone Different companies / people have different FEA needs Each company has their own methods of doing analysis Each individual within a company may have their own style

Overview - Femap API “Our goal is to use Femap and its API to eventually automate the model development process, reducing the time by half through the use of templates, automation and improved access to CAD information.” Glenn Harris, EADS Astrium Satellites UK Custom user interfaces can be created and used with FEMAP programs Simple custom dialogs an be created in the API Programming Window More complicated dialogs or programs can be created as separate programs and used as FEMAP add-ins Programs can range in complexity from basic scripts to add-ins / standalone programs

API vs Program Files As well as the API, Femap also offers a macro capability (program) that allows a series of commands to be recorded, edited and debugged, and played back. This way, you can create custom programs that automate repetitive tasks. Common usages: Repetitive sequences of commands can be recorded and played back. Program File macros are easily created by the non-programming engineers. Program files can be modified to accept user input and executed from API scripts. Program Files (PRG) are a mouse and keystroke emulator. PRG is similar in functionality to the MS Office macro recorder Benefits Simple to create Can emulate all functionality Drawbacks Customization is very difficult Slow Very limited potential Unlikely to remain compatible between major versions

Why use API? Ultimately, this is what we want: …but we all know that this is utopic.

Why use API? Real benefits: Automate routine tasks Interact with model data in ways that are not natively available Provide “canned” analysis routines Ensure consistency in analysis methods between engineers by providing a consistent method Enhance the functionality of FEMAP by creating add-in applications Automate generation of analysis reports Reduce the learning curve for newer users Integrate FEMAP with existing methods Modify results data Create nodes from a CSV file Create a custom meshing algorithm FEMAP Add-ins can also be created that behave like standard dockable panes These are the benefits

API Programming Interface Full-featured BASIC programming environment inside the UI IntelliSense function descriptor auto completion Step through interactive program debugging Syntax Highlighting Object Browser Debugging Debugging – Additional toolbar

API Programming Interface Full-featured BASIC programming environment inside the UI Custom User Dialogs Editor

Type Library

Ressources – Custom Tools Element Update Grouping Meshing PostProcessing Show list in Femap Talk about most useful tools Hole to Hole Fastener

Resources – Custom Tools All Custom Tool commands are documented in FemapInstallDir/pdf/CustomTools.pdf Most useful tools Element Update - Divide Beam Grouping - Group expand Meshing - Hole to Hole Fastener Model Query - Multi Dependent Rigid Check PostProcessing - Nodes Move by Deform with Options View - View Swap

Resources – Custom Tools All Custom Tool commands are documented in FemapInstallDir/pdf/CustomTools.pdf Meshing - Hole to Hole Fastener Adjust the

Resources - Custom Tools Model Query - Multi Dependent Rigid Check Adjust the

Resources – Help and Examples FEMAP API Reference Manual found in Help->Programming or <FEMAP ROOT>/pdf/api.pdf Include basic examples of API programs Adjust the

Demo 1 Create User commands Keyboard shortcuts New toolbar and button TELL - SHOW

Demo 2 Drive Femap data from Excel Extract material and property data from Femap to Excel, update/calculate/validate values in Excel, then upload back to Femap (Opt) Deeper look inside code.

Example 1 Path Length calculation on an antenna dish Path Length = (Ai+Bi+C) – (Ai'+Bi'+C') C B A Results sent to Excel Over 230 cases Multi angles Different Operating Conditions 5BG .op2 file size Not the real antenna. Mention the confidentiality of this. As soon as the client requested this, we knew that API was the way to approach it. Manually just not an option!!! Benefits Hours of repetitive and error prone manipulations from copying Femap Data Table to Excel. 24 different paths

Example 2 Calculate in-plane displacements "Fridge door" open panel case In-plane displacement resultant calculated for nodes on door opening Not the real spacecraft. Mention the confidentiality of this.

Example 2 Calculate in-plane displacements 1 4 2 3

Maya User Tools Adjust the

3 day API training available Summary API Overview vs Program File Interface Resources - Custom Tools The API lets you customize FEMAP to meet your specific needs 3 day API training available To remember batch process from Excel result output creation, output to Femap or Excel save time, avoid manupulation errors