How to open an existing SAP2000 model file using API in MATLAB?

12 次查看(过去 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?

采纳的回答

Abishek Asaithambi
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
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
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 CenterFile Exchange 中查找有关 Data Type Identification 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by