I have some problems with custom design rules. Maybe somebody can help me…
Thats what I want:
→ The Net ‘AC_N’ and ‘/AC_PowerLine/AC_N_Fused’ can have a clearance of 1mm. To all other Nets 3mm
→ The Net AC_N’ and '/AC_PowerLine/AC_N_OUT can also have a clearance of 1mm. To all other Nets 3mm
→ All other Nets in Net-Class 230VAC should have minimum distanvce of 2.8mm
One Remark: The nets AC_N, /AC_PowerLine/AC_N_Fused and /AC_PowerLine/AC_N_OUT are all in the Net-Class 230VAC
Here is my code. Can you help me what I did wrong??
Your screenshot is from the DRC dialog, not from Inspect → Clearance Resolution. You have to select two items and open that dialog to see more information.
Naturally custom rules, otherwise it would be pretty meaningless to try to write custom rules, would it?
In your example you went back to A.Net instead of A.NetName.
.Net gives you the auto-assigned netcode (a number), not the name of the net.
(So why does .Net exist if it’s not usually what you want? Because when testing for equality, ie: A.Net == B.Net the .Net test is much faster than the .NetName test.)
As for “what wins”, the answer is always “the last rule that matches”.
Everything in the Netclasses tab (and the Constraints tab) is actually compiled in to rules behind the scenes. Then the author’s custom rules are added at the end (so they win over the auto-compiled rules).
But do try out Inspect > Clearance Resolution… (and Constraint Resolution…). They can be a real help (and will list all the auto-compiled rules as well).
Do anybody does have a tipp?
The screen-shot of clearance resolution shows, that the rule will be applied, but it does still not work…
Does anybody have an idea why?