Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

API in SAP 2000

Status
Not open for further replies.

Pitch1982

Structural
Joined
Aug 4, 2009
Messages
3
Location
TH
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.
 
Hi Pitch1982
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.

 
Ohh That's work.
Thank you very much.
 
Sorry, I didn't find it, but the video seems to be clear enough to copy the code manually.
 
Hello, where could i find the VBA examples for sap verifications?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top