Sap2000 có hỗ trợ API, để kết nối từ VBA trong excel với sap2000 bạn tham khảo đoạn code sau ( nhớ trong tool - reference chon sapV12 bạn nhé[GPECODE=vb]Sub MyProgram()
'dimension variables
Dim SapObject As SAP2000.SapObject
Dim SapModel As cSapModel
Dim ret As Long
'create an instance of the Sap2000 object
Set SapObject = New SAP2000.SapObject
'start the Sap2000 application
SapObject.ApplicationStart
'create the SapModel object
Set SapModel = SapObject.SapModel
'initialize model
ret = SapModel.InitializeNewModel
'call Sap2000 API functions here to perform desired tasks
'in this example a new 2D frame is created from template
ret = SapModel.File.New2DFrame(PortalFrame, 3, 124, 3, 200)
'close the Sap2000 application, if desired
SapObject.ApplicationExit False
'set the objects to Nothing
'at the end of your program ALWAYS terminate the objects in this manner
Set SapModel = Nothing
Set SapObject = Nothing
End Sub
[/GPECODE]