I try to define a clearance constraint between different net classes.
My custom rules is
(rule HV-_PHA
# clearance between HV- and PHA tracks
(constraint clearance (min 4.0))
(condition "A.NetClass == 'HV-' && B.NetClass == 'PHA'"))
I just get the message "Could not compile custom design rules, but I can not find what is wrong with the syntax.
When I browse though the Syntax Help I see a difference in the use of quotation marks.
Maybe you also want to add a wildcard to your netclass names.
Thanks for the reply. I found the syntax check button now. I added the missing dimensions (mm) but still get the ERROR “Missing version statement”. I don’t know what this means.
My rules is now:
(rule “HV-_PHA”
clearance between HV- and PHA tracks
(constraint clearance (min 4.0mm))
(condition “A.NetClass == ‘HV-’ && B.NetClass == ‘PHA’”))
I found out the correct syntax for my statement:
(version 1)
(rule “HV-_PHA”
clearance between HV- and PHA tracks
(constraint clearance (min 4.0mm))
(condition “A.NetClass == ‘HV-’ && B.NetClass == ‘PHA’”))
Thanks to ellik and paulvdh for the helpful hints.
1 Like
OMG! Thanks for finding out!
Why is this nowhere mentioned in the syntax help, that this “version” is mandatory somehow?!
JamesJ
August 30, 2024, 5:30pm
7
This is described in the full documentation:
We could look to tweak the syntax help, but it’s not designed to be a comprehensive guide.
system
Closed
November 28, 2024, 5:31pm
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.