×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

API in SAP 2000

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.

RE: API in SAP 2000

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.

 

RE: API in SAP 2000

(OP)
Ohh That's work.
Thank you very much.

RE: API in SAP 2000

Sorry, I didn't find it, but the video seems to be clear enough to copy the code manually.  

RE: API in SAP 2000

Hello, where could i find the VBA examples for sap verifications?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources