programming with gsa apis n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Programming with GSA APIs PowerPoint Presentation
Download Presentation
Programming with GSA APIs

Loading in 2 Seconds...

play fullscreen
1 / 23

Programming with GSA APIs - PowerPoint PPT Presentation


  • 130 Views
  • Uploaded on

Programming with GSA APIs. An introduction to the COM interface Ramaseshan Kannan. An imaginary scenario…. Overview. Introduction Assumptions Elements of the API Using the API Documentation and support Examples and case study. Introduction. What are GSA APIs?

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Programming with GSA APIs' - annora


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
programming with gsa apis

Programming with GSA APIs

An introduction to the COM interface

Ramaseshan Kannan

overview
Overview
  • Introduction
  • Assumptions
  • Elements of the API
  • Using the API
  • Documentation and support
  • Examples and case study
introduction
Introduction
  • What are GSA APIs?
    • An alternate route to access existing functionality.
  • What can they be used for?
  • Where do I access this functionality?
  • How do I get started?
assumptions
Assumptions
  • Some understanding of programming assumed.
  • VB.NET vs. Excel VBA
    • Visual Studio Express
  • Scope of this presentation
elements of the com api
Elements of the COM API
  • Functions
    • Core functions
    • View functions
    • Data and ‘Tools’ functions
    • Case and Task functions
    • List functions
    • GwaCommand
    • Output functions
elements of the com api1
Elements of the COM API
  • Functions
  • GwaCommand
  • Output functions
a simple example
A simple example

Exercise: In an existing model, create a point load on a beam and analyse it.

a closer look
A closer look

Initialize the GSA COM object

Dim gsaObj AsNew Gsa_8_5.ComAuto

Open File

gsaObj.Open("C:\GSA Files\COM tests\Env.gwb")

a closer look1
A closer look

Delete results

gsaObj.Delete("RESULTS")

Call GwaCommand

gsaObj.GwaCommand("LOAD_BEAM_POINT, 2, 1, GLOBAL, NO, Z, -.5, -2")

a closer look2
A closer look

Analyse all tasks

gsaObj.Analyse()

Save model

gsaObj.Save()

Close file

gsaObj.Close()

documentation and resources
Documentation and resources
  • Help File
  • Gwa.html

<C:\Program Files (x86)\Oasys\GSA 8.5\Docs\gwa.html>

  • Samples under

<C:\Program Files (x86)\Oasys\GSA 8.5\Samples\API_and_GWC>

    • .NET sample
    • VBA sample
    • C++ sample
wrappers
Wrappers
  • .NET Sample
    • GsaComUtil class
wrappers1
Wrappers
  • DesignLink

GsaControllerclass

future directions
Future directions…
  • 8.x
    • Functions for creating/querying Views and lists.
    • Result extraction as a Vector.
  • 9.0
    • .NET based APIs…
    • New object model…
    • Cuter…
  • More COM training?