1 / 23

Programming with GSA APIs

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?

annora
Download Presentation

Programming with GSA APIs

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming with GSA APIs An introduction to the COM interface Ramaseshan Kannan

  2. An imaginary scenario…

  3. Overview • Introduction • Assumptions • Elements of the API • Using the API • Documentation and support • Examples and case study

  4. 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?

  5. Assumptions • Some understanding of programming assumed. • VB.NET vs. Excel VBA • Visual Studio Express • Scope of this presentation

  6. Elements of the COM API • Functions • Core functions • View functions • Data and ‘Tools’ functions • Case and Task functions • List functions • GwaCommand • Output functions

  7. Elements of the COM API • Functions • GwaCommand • Output functions

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

  9. 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")

  10. A closer look Delete results gsaObj.Delete("RESULTS") Call GwaCommand gsaObj.GwaCommand("LOAD_BEAM_POINT, 2, 1, GLOBAL, NO, Z, -.5, -2")

  11. A closer look Analyse all tasks gsaObj.Analyse() Save model gsaObj.Save() Close file gsaObj.Close()

  12. 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

  13. Wrappers • .NET Sample • GsaComUtil class

  14. Wrappers • DesignLink GsaControllerclass

  15. 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?

  16. COM: programming with GSA Case studies

  17. Design and optimisation of freeform high-rise truss façade structures

  18. Design and optimisation of freeform high-rise truss façade structures

  19. Marina Bay Sands

  20. Infinity Footbridge

  21. Geometry Gym

More Related