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?
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?