×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Sap API Visual Basic Trusses

Sap API Visual Basic Trusses

Sap API Visual Basic Trusses

(OP)
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?

RE: Sap API Visual Basic Trusses

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources