Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

ETABs API- Sapmodel

Hoda_S

Civil/Environmental
Nov 27, 2024
1
I'm trying to get some data form an open etabs22 file in excel VBA. This is my code:
1732696700731.png
But i get this error:
1732696845064.png
As you see, there is a problem with 'SapModel'. Any ideas on how to solve?
Thank you.
 
Replies continue below

Recommended for you

Hey there. I read that people having trouble comnecting vba to Etabs version 22. And so far there were no solution.
 
Is "myETABSObject" created?

Have you tried this from the sample code provided with ETABS 22 documention?

Code:
Visual Basic for Applications (VBA) via Excel
'create an instance of the ETABS object from the latest installed ETABS
Set myETABSObject = myHelper.CreateObjectProgID("CSI.ETABS.API.ETABSObject")

I don't work in VBA, but have accessed the API before in Python and C#. Just taking some guesses at this point.
 

Part and Inventory Search

Sponsor