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

Sap API Visual Basic Trusses

Status
Not open for further replies.

bobstructures

Structural
Joined
May 25, 2011
Messages
1
Location
US
I currently have a sapIV text file that I wish to put into SAP2000 using Visual Basic and API. Sap2000 however does not have the 3D truss members that SAPIV did.

I need a way to automatically create trusses in a structure that has both trusses and frames. I have tried releasing the moments on frame members by creating a group called "trusses" and then releasing the moment restraints on either end with the following

'Release Moments on Both Ends
For k = 0 To 5
ii(k) = False
jj(k) = False
StartValue(k) = 0
endvalue(k) = 0
Next
ii(3) = True
ii(4) = True
ii(5) = True
jj(3) = True
jj(4) = True
jj(5) = True

ret = SapModel.FrameObj.SetReleases("Trusses", ii, jj, StartValue, endvalue)

It doesn't seem to do the trick...any thoughts?
 
Hi.

What if you try:

ret = SapModel.FrameObj.SetReleases("Trusses", ii, jj, StartValue, endvalue, 1)

The one at the end tells SAP200 that "Trusses" is a group.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top