API in SAP 2000
API in SAP 2000
(OP)
Dear All,
I have to use the SAP 2000 for parametric study.
Then, i decide to use the API function which provide in SAP.
The example in SAP is presented the process for VBA.
But, I have some problem with the example of API in VBA format. I just try to copy and learn the step. It's show some error (Subscript out of range). I don't understand why.
Pls help me, i attach the VBA example as a text file too.
I have to use the SAP 2000 for parametric study.
Then, i decide to use the API function which provide in SAP.
The example in SAP is presented the process for VBA.
But, I have some problem with the example of API in VBA format. I just try to copy and learn the step. It's show some error (Subscript out of range). I don't understand why.
Pls help me, i attach the VBA example as a text file too.





RE: API in SAP 2000
This one is the real.
RE: API in SAP 2000
The problem is in the line:
'save model
ret = SapModel.File.Save("C:\SapAPI\API_1-001.sdb")
Create the folder "C:\SapAPI" or provide an existing folder name before you run the VBA code.
RE: API in SAP 2000
Thank you very much.
RE: API in SAP 2000
http:
RE: API in SAP 2000
RE: API in SAP 2000