About customizing selection rules:
You can create custom selection rules to use in 3D models and 2D drawings. For more information, see Create a Custom Selection Rule.
Location of sample project and readme:
[Drive]:\Program Files\SmartConstruction\Customization\Samples\SPC_CustomClientModule\SPC_CustomClientModule\CustomSelectionRule