Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Aug 4, 2009
3
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.
 
Replies continue below

Recommended for you

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.

 
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