Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS 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
Feb 23, 2010
1
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