# Altium Design Rule - How to apply to one named component?

How can I build an Altium Designer rule that applies to only one component or reference designatorrefdes?

I tried selecting my component, S1, from the Query Helper, but that just puts the string 'S1' into the query. What else belongs there?

• Can you try with InComponent('S1')? At the moment I cannot check any of my previous rules, but I am sure that I have used the InComponent('U1') syntax to create some component specific rule. – Bence Kaulics Jun 17 '16 at 6:22

InComponent ('J2') OR InComponent('J3') OR InComponent ('J4') OR InComponent ('J5')
InComponentClass('WaivedClearance')