×
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

Method to find identical elements?

Method to find identical elements?

Method to find identical elements?

(OP)
Hi.
Any one aware of a method or script to find identical elements in a part?

I have a large model with thousands of elements in.
I'm about optimize it and replace and erase elements that are identical (not by name).

/M

RE: Method to find identical elements?

Hi,

What is the parameter you are setting for identical ? Please be specific.

RE: Method to find identical elements?

(OP)
For example two surfaces offset the same distance from same reference.
Or a curve projected several times on a plane.
Mathematical identical I guess.

/M

RE: Method to find identical elements?

I suggest you do a "Delete Useless Elements" first to remove anything that's not needed. Any identical geometry that is left will have children and will need to be Replaced before deleting.

RE: Method to find identical elements?

(OP)

Yes, unused element are no problem.
But how to find these identical/duplicates elements that are used?
Say you have about 3000 elements in a model and 200 of them are duplicates.

RE: Method to find identical elements?

It seems like this would be a lot of work to write. I think you would need to do something like:
(Talking GSD only)
-collect all geosets in part
-collect all hybridshapes in all geosets
-get the first hybridshapes' inputs ***
-get the first hybridshapes' typename
-loop through the rest of the hybrid shapes in the part
-if the typename of subsequent hybridshapes matches the first, check to see if the inputs are the same
-repeat for all hybridshapes in part

But as Ferdo mentions, this may not be enough. You would need a way to detect geometric differences like what if one join removes sub elements and another join of the same inputs does not? Or if surfaces are split to save one side then the same surfaces are split to save the other side? You would also need to compare each features parameters, like if propagation was turned on or off.

***you would need to interrogate inputs for each feature, but each features inputs are exposed with different functions. I.e. For a join (hybridshapeassemble) you can get the number of elements joined by using the GetElementsSise function, then loop through the inputs using the GetElements function. An extracts inputs could be exposed using element or support.

RE: Method to find identical elements?

(OP)
Thanks for ideas about a solution, but I think I will let this one go.
As I assumed there is not an easy way of doing this.

BR

M

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