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





Hey folks,

I'm using the API command feRenumberOpt for renumbering a set of entities. But if I try to edit these entities later in my algorithm, they have the older IDs. Is there a way to edit them according to the new renumbered IDs.

Thanks in advance


RE: feRenumberOpt


I'm on v11.1.1 and don't have the problem you describe. For example create a new model with only one element and run the code below. For me FEMAP returns 1 then 10000, therefore the ID has been updated.

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

Dim el As femap.Elem
Set el =App.feElem



End Sub

Are you using sets? If yes the IDs in the sets will not be updated. A set is a list of numbers, a set has no idea what it contains and it can therefore not update anything. That would be a group.


RE: feRenumberOpt

Thanks for the answer!
Yes I'm using a set. So I guess it would be better if I make a temporary group.

RE: feRenumberOpt

There are workarounds, depending on how you prefer your code to work.
Perhaps the trackdata object works when renumbering, I've never tested that scenario.
But the underlying concept is the same: you could use a first set with all elements for ex, then renumber, then make a second set with all elements again, then set2-set1 = the elements which have been renumbered.

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


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