I need some help by detecting and delete 1:1 duplicates in E3D Design.
My suggestion is to collect the elements-> get the attributes for every element->sort these collection by the attributes->compare each "line" with previous line->delete elements with same "line"
Example: Cyli under sube
1. collect all cyli for sube
2. get Attributes: height, diameter, position, orientation
3. sort these elements by:
3a:height
3b:diameter
3c:position
3d:orientation
->now all double elements shout by sortet
4. compare second element with first element: if attributes (height, diameter, position, orientation) are the same-> delete element, if not-> compare third with second element an so on...
How can I realize that easily? With stacked arrays or with an table? How can I compare the attributes?
Or is there an completly different way to get to my resault?
This should be only the beginning, I would do this with other elements also.
!attributes = !elementA.Attributes()
do !attribute values !attributes
if !elementA.$!attribute ne !elementB.$!attribute then
$p not the same value for $!attribute