I keep running into this issue. I have some drawings that have duplicate points or lines on purpose, that are on different layers, they are useful refences that I use when I am working on the layers they are on. Occasionally I need to clean up duplicates caused unintentionally, so I use SelDup to select all duplicates then delete them… but then my reference lines and points also get selected as duplicates… which they are… but they are not exact duplicates, they are on different layers and different colors and have different purposes. Is there a way to make something like SelDup but that only considers things to be duplicates if they are EXACT duplicates, including layer, color, name, etc? so two identical points on different layers would not be considered duplicate, but two identical points the same color, with the same name and on the same layer, etc would be considered duplicates.
I realize I could turn off the layers containing things duplicated on purpose but that would be extremely tedious and time consuming as these are very complex projects that have hundreds of layers.
A script can be easily made for this, however, there are many criteria that can be matched (or not). You mentioned layer, object color, object name already, but there are also linetype (for curves), print width, print color, render material (if any) etc.
I suppose you have a good reason, but I’ll ask anyway:
Have you considered putting your reference material on one separate layer which you can turn on/off at will? Then you can use it with any of your other layers as needed.
No need to worry about duplicates because there aren’t any.
They are already on separate layers with different purposes and yes I can turn off those layers… but I want to find legitimate duplicates on those layers as well. There are a lot of these layers and they are mostly sublayers of other layers… so they are all over the place. I’m trying to avoid manually turning layers on and off to clean things up… I just want to turn on everything and find duplicates that are only duplicated on their own layer.
Using grasshopper’s geometry pipeline and remove dup pt or dup lines etc would let your remove only those that fall in the same layer or have the same name.
You could then “integrate” it in rhino with the grasshopper player (or something like that)
Something like this with your layer, name and type of geom selected.
A Script seems like a good idea. but, what command could I give the script to select duplicates with the same properties?
I guess it would be nice if it matched all the properties, but for my purposes, layer, color and name would be sufficient. I guess it depends on what is easier, if the script would have to match each property one at a time, then just those 3 would be fine, but if could match all properties in one command, then that would be better
I thought I could maybe have the script shut off all the layers, then turn on one layer, do the SelDup and Delete, then turn on the next layer, repeat… until all the layers are done… but that doesn’t take into account all the other properties.