×
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

How to copy elements from one coordinate system to another coordinate system in FEMAP

How to copy elements from one coordinate system to another coordinate system in FEMAP

How to copy elements from one coordinate system to another coordinate system in FEMAP

(OP)
Hi everyone.

It will be nice if you could help me out in copying elements from one coordinate system to another coordinate system in FEMAP.

Thanks

RE: How to copy elements from one coordinate system to another coordinate system in FEMAP

This might help, wrote it a while back. Launch it in the API window.

This macro will do the following:
1) ask you for a selection of elements you want to copy
Internally it will retrieve all nodes used by these elements

2) ask you for the original CSys

3) As you for the destination CSys (selection, i.e. there can be several)
For of each of these, it will
1)create copies of the nodes by replicating their coordinates in that new Csys
2) create copies of the elements by using these new nodes

NB: this was created for "simple" elements like 1D, 2D, 3D and rigids. I don't use SlideLines often for example, the macro may not be robust for these more "exotic" elements.

APav

RE: How to copy elements from one coordinate system to another coordinate system in FEMAP

APav, great script! Really.

I did find a problem with using it when it encountered node IDs that already existed. The script creates new nodes based on an offset, but if it finds one that already exists it assigns the next empty ID. But later on when it assigned nodes to the new elements it was still wanting to use the offset node ID instead of the femap assigned node ID. The only way I could figure out how to ensure the IDs matched was to create a dictionary object to keep track of the original IDs and the new IDs.

Script does the same thing, but seems to handle any overlapping of Node IDs.

Danny


RE: How to copy elements from one coordinate system to another coordinate system in FEMAP

Ok, forgot to correct the message that gets printed to the Message Window.
Line 109 should be: App.feAppMessage(FCM_NORMAL,"Created copies in Cys ID " & CStr(cs.ID))

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