×
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

Reverse the direction of a line beam element

Reverse the direction of a line beam element

Reverse the direction of a line beam element

(OP)
I want to change the direction (NOT the orientation of standard shape cross section y-axis) of a line beam element by interchanging the end node A & B via API.

The ID of end node A and B are known. How to change the element's end node ID and put the element back to the model and update it?

RE: Reverse the direction of a line beam element

i think modify/update elements may help.

editing the elements is an obvious solution (so there's some reason you're no doing this ... too many to do ??)

you may be able to do something with API (something like a macro in excel ?).

another day in paradise, or is paradise one day closer ?

RE: Reverse the direction of a line beam element

For future inquiries, please use the regularly monitored FEMAP forum found here:
https://community.plm.automation.siemens.com/t5/CA...

FEMAP > Help > FEMAP User Community will direct you there as well.

There is not currently an API method to mimic the GUI tool "Modify > Update Elements > "Line Element Reverse Direction". However, if you simply want to Reverse the direction, the below API should do that for you.

Sub Main
Dim App As femap.model
Set App = feFemap()

Dim e As Elem
Dim eSet As Set

Set e = App.feElem
Set eSet = App.feSet

If eSet.Select(FT_ELEM, True, "Reverse Line Element(s)...") <> FE_OK Then End

eSet.Reset()
While eSet.Next()

e.Get(eSet.CurrentID)
zero = e.Node(0)
e.Node(0) = e.Node(1)
e.Node(1) = zero

e.Put(e.ID)

Wend

App.feViewRegenerate(0)

End Sub

RE: Reverse the direction of a line beam element

(OP)
Thanks. It works as expected.

I always think that .Node() is only used to read the node and cannot be written to.

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! Already a Member? Login


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close