I use different kinds of mounting holes and need to add clearance for bolt heads/washers. The mounting holes can be the stock KiCAD mounting holes or simple shapes like circles or more complex shapes like elongated holes of various radii.
I group the holes together so the custom rules take effect. This works in general for mounting holes of more than one and for complex shapes. It fails for single mounting holes and simple shapes because they only contain a single object and cannot be grouped. Example:
I don’t know what’s wrong with the rule. The other issue is that I cannot create a named group “mountinghole-misc” for the circle in the centre. So the rule is not picked up. How to solve this?
The ability to group single objects would solve all the issues, but apparently KiCAD doesn’t allow for that.
How to fix the rule, so the single M4 mounting hole rule works as expected?
What to do with single objects, like the circle in the centre?
A simple workaround for grouping one object only is to group two first and then remove one. Context menu → Enter group, select only one object in the group, context menu → Grouping → Remove items.
Thanks for the quick reply. That works, indeed. I didn’t try it because ostensibly KiCAD doesn’t allow groups of single objects and I assumed it would just remove the group after deleting the 2nd object.
Is it a bug (that should be reported) that KiCAD doesn’t allow creating single item groups then? This behaviour seems inconsistent; either single item groups are allowed or not. However, I’m fine with the workaround if that’s how it’s designed to work and can be relied upon in upcoming versions.
This has been noticed earlier, that’s why I remembered it, but I don’t remember if any of the developers said anything about it. I don’t find an issue for this with a simple search.