How to open an existing SAP2000 model file using API in MATLAB?
조회 수: 13 (최근 30일)
이전 댓글 표시
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
채택된 답변
Abishek Asaithambi
2020년 1월 23일
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
Jamel Bernadotte
2022년 3월 18일
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
2022년 3월 18일
@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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!