Would you like to sign out?

    🇵🇭

    A Python GUI that pulls support reactions from a Philippine building model and sizes ACI 318M-14 footings. From codes to Codes: Applications of API and AI to Structural Analysis and Design for Beginners (Part 2 of 2)

    Preview ended

    Fill out the form to keep watching

    Having trouble viewing the video?

    Some regions or networks may restrict Vimeo playback.

    AI Summary

    The shift: From running scripts in an editor to running the whole job from a GUI you built. 

     

     In the session

     

    • Python GUI wired to MIDAS GEN NX: connect, sync, analyze   
    • Support reactions pulled into one table 
    • Prompt structure: role, function list, API documentation link   
    • ACI 318M-14 shear sizing, drawn back as 0.5 m meshed plates

     

    Stronger outcomes in MIDAS GEN NX workflows begin with improving how support reactions are extracted and read through a Python GUI built for the job. 

    Description

    Part 2 of 2Part 1 covers generating a model in Python through the same API.  Watch Part 1 →

     

    This part takes the API in a different direction, on a different model: an existing mid-rise building with 47 supports. Instead of a script run from the editor, the workflow gets a front end — a Python GUI wired to MIDAS GEN NX through the MAPI key, where connecting to the model, syncing it and running the analysis are buttons in the interface. Service and strength support reactions come back into a single table, every support in one view, next to the design output that follows from it.

     

    The GUI is written with an AI coding agent running inside the IDE, which reads the project files, executes the program, and edits the code in place. The prompt is built as a role statement, a numbered list of the functions the program must perform, and a link to the MIDAS API Python documentation so the agent uses actual function names, with a reviewable plan produced before any file is written. From the extracted reactions, the finished tool sizes isolated footings to ACI 318M-14 for one-way and two-way shear at an allowable bearing pressure of 150 kPa and f'c of 21 MPa, then writes them back into the model as plates meshed at 0.5 m with the support node kept on the mesh.

     

    Reviewing the generated code is treated as part of the workflow rather than an afterthought. The walkthrough shows the foundation engine written for uniaxial bending where biaxial was required, plus two runtime failures — reaction extraction on load combinations, and the drawing step — each fixed by feeding the error back to the agent. The program reached a working state on the third round.

    Key Points

    Building a Python GUI wired to MIDAS GEN NX through the API

    Running the analysis from a button inside the GUI, not the interface

    Pulling service and strength support reactions into one readable table

    Prompting with a role, a numbered function list, and the API documentation link

    Sizing isolated footings to ACI 318M-14 for one-way and two-way shear

    Writing footings back into the model as plates meshed at 0.5 m

    Speaker

    Jaydee N. Lucero Senior Structural Engineer Abinales Associates Engineers + Consultants
    Jaydee N. Lucero is a Senior Structural Engineer I at Abinales Associates Engineers Consultants, where he brings over seven (7) years of experience in the analysis, design, review and evaluation of vertical structures of various heights. He is also a programming enthusiast in C (10+ years) and Python (2 years) languages, and has delivered several talks about Python in local and international conferences and workshops. He is also an Associate Member of the Association of Structural Engineers of the Philippines (ASEP), Inc., where he is currently a member of the committees on student/academe engagement and artificial intelligence. He is currently taking his master's degree in civil engineering with specialization in structural engineering from the University of the Philippines Diliman. His specializations are reinforced concrete design, structural analysis, finite element analysis, programming, mathematics and engineering sciences.
    Get Access to the Video

    Fill out this form to watch the full video

    Once you've completed the form, you can watch anytime with unlimited replays. Access is browser-specific. Clearing cookies or switching devices requires re-authorization.

    Take a 1-Minute Survey

    Share your feedback with us

    On-Demand you might also like