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
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?
What is the parameter you are setting for identical ? Please be specific.
RE: Method to find identical elements?
Or a curve projected several times on a plane.
Mathematical identical I guess.
/M
RE: Method to find identical elements?
RE: Method to find identical elements?
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?
Just an idea...maybe you can check...what about finding the center of gravity for each surface ? And if they have same coordinate see them if they are identical...probability to be different is very small I believe.
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Method to find identical elements?
(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?
As I assumed there is not an easy way of doing this.
BR
M