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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAP2000 API

Status
Not open for further replies.

igor1234

Civil/Environmental
Joined
Feb 23, 2010
Messages
1
Location
MK
I am trying to get list of points names using API in SAP2000.
If model hasn't been run then I am getting an error when I execute those lines:

Dim NumberNames As Integer
Dim MyName As String() = New String(-1) {}
ret = SapModel.PointElm.GetNameList(NumberNames, MyName)
If ret <> 0 Then MessageBox.Show("RUN the file in order to get Point objects")

If I run the model then those lines are working and I can get the list of names.

Does anyone knows how to overcome this limitation?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top