How to open an existing SAP2000 model file using API in MATLAB?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmad Fakih
am 10 Jan. 2020
Kommentiert: Abishek Asaithambi
am 18 Mär. 2022
I need a to open an existing SAP2000 model file through MATLAB using API. The API documentation provides an example for opening an existing file through VBA but I could'nt quite translate it into MATLAB. Any help please?
0 Kommentare
Akzeptierte Antwort
Abishek Asaithambi
am 23 Jan. 2020
This should work!
File = NET.explicitCast(SapModel.File,'SAP2000v19.cFile');
File.OpenFile(ModelPath)
Don't try the same VBA syntax as in the documentation for MATLAB. I too found it after some trial and error.
4 Kommentare
Jamel Bernadotte
am 18 Mär. 2022
Can somebody please help, I'm trying to design a building in Cali and produce a Fragiliy Curve. Contact me: jab921@lehigh.edu.com
Abishek Asaithambi
am 18 Mär. 2022
@Jamel Bernadotte Check SAP2000's Help file on API. Try their sample code for MATLAB to cross check if it is working and then modify the code.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!