Plugins for Model Tidying Up
- 
 It refers to cleanup of open-ended lines. Cleanup.rb does those I believe. I am talking about lines that are part of a closed loop. 
- 
 It's easy enough to write a snippet that find short edges, either selects or deletes them. But what do you do next? if you remove that 0.0002 long edge segment then a face won't be created either. Have you tried RepairBrokenEdges ? 
- 
 The main thing is really just to find them. I can use Clean.rb to remove stray lines but these are different. As you say it is necessary to fix them rather than just delete them. I cannot find repairbrokenedges.??? 
- 
 @pmolsen said: I cannot find repairbrokenedges.??? http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=334 It repair sets of edges that are co-linear. CleanUp does implement this feature, but I wonder if I have broken it somehow... 
- 
 You can try to use this one-liner (in the Ruby Console) to select all edges that are 0.001 inch or less (0.001 inch is SU's minimum precision.) model=Sketchup.active_model;sel=model.selection;sel.clear;model.active_entities.each{|e|sel.add(e)if e.is_a?(Sketchup::Edge) && e.length<=0.001}
- 
 @thomthom said: It repair sets of edges that are co-linear. CleanUp does implement this feature, but I wonder if I have broken it somehow... The problem is not with co-linear lines but ones that are not co-linear. Maybe something that CleanUp could check for and highlight rather than deleting. 
- 
 @pmolsen said: The problem is not with co-linear lines but ones that are not co-linear. Maybe something that CleanUp could check for and highlight rather than deleting. I do have some plans for CleanUp3 what would give a list of issues in the model where one could choose to inspect (and autofix if possible.) Maybe a highlighter similar to Solid Inspector. But it'd not in the immediate future. What about a revision of the one-liner I poster previously, but instead of selecting the edges it'd insert a text pointing to the edge? 
- 
 what about "loose to group"... would that not do what you want? 
- 
 What do you mean loose to group? 
- 
 CLF_Loose2groups.rb This Plugin will make groups of all your loose (ungrouped) geometry. It will not change existing groups or components. 
Advertisement


 
                             
                             
                             
                             
                             
                             
                            