element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Altium CircuitStudio
  • Products
  • Manufacturers
  • Altium CircuitStudio
  • More
  • Cancel
Altium CircuitStudio
Altium CircuitStudio Forum How to edit rule scope in Circuit Studio
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Altium CircuitStudio to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Locked Locked
  • Replies 10 replies
  • Subscribers 89 subscribers
  • Views 2096 views
  • Users 0 members are here
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to edit rule scope in Circuit Studio

aaron@brclifts
aaron@brclifts over 8 years ago

Hi All,

 

I've created a polygon connect rule which direct connects several key (high current) connectors to their polygon/planes. To achieve this I went through the rule wizard and created a scope: for example;

(InComponent('H3') OR InComponent('H5'))

All is going well until I realise that H3 is actually H2. All I want to do is edit the scope of the rule, but I can't seem to find a way to do it. My work around is to create a new rule each time I make a mistake, which is unfortunately more often than I care to admit. Can anyone help me find a way to edit the scope?

 

Cheers,

Aaron

  • Cancel
Parents
  • e14softwareteam
    e14softwareteam over 8 years ago

    Hi Aaron,

     

    Here is a response with a work around, since the functionality isn't in CircuitStudio currently.

     

    CircuitStudio Design Rules don't have the queries exposed so the only inbuilt method is to us the Rule Wizard to replace the query.

     

    However Rules can be exported and edited as a text file, then imported again to replace the rules. This could be useful if the rules are complex and take a long time to re-enter via the wizard.

     

    1. Open the Design Rules dialog. Right click in the tree in the left. It doesn't matter where, but it is best to right click on the rule you're interested in so that you see those rules displayed.

    2. Choose Export Rules from the right click menu and save the *.RUL file.

    3. Open the *.RUL file in a text editor. If using CircuitStudio, use Open Document and choose All Files (*.*).

    4. Carefully edit the rules by following the syntax within the file, such as adding OR InComponent('H6')

    Each line is a rule. You may add or remove lines. The NAME= field can be used to overwrite existing rules with the same name or add new rules.

    5. Open the Design Rules dialog. Right click in the tree in the left.

    6. Choose Export Rules from the right click menu and save the *.RUL file.

    Normally choose Yes to clear existing rules prior to import, unless you're deliberately wanting to add extra or replace only some existing rules.

    Choosing Yes will delete rules in any rules chosen in the "Choose Design Rule Type", even if your *.RUL file doesn't contain that type of rule.

     

     

    Notes:

    1. You MUST click in the dialog to Choose Design Rule Type, even if the rule is already highlighted blue, otherwise it won't actually be selected.

    2. The *.RUL text file may only have one blank line at the bottom of the file, not two, or it will crash when importing. The text editor in CircuitStudio sometimes adds the extra line so if you use the inbuilt text editor, make sure there isn't a red vertical mark on a blank line at the bottom of the file. Use backspace to remove it.

     

    I hope this helps!

     

    Tony

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • aaron@brclifts
    aaron@brclifts over 8 years ago in reply to e14softwareteam

    Hi Tony,

     

    This work around is a massive help. Will go and try it now.

     

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • e14softwareteam
    e14softwareteam over 8 years ago in reply to aaron@brclifts

    Aaron,

     

    Anytime...please reach out if you need additional assistance.

     

    Tony

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sujitna
    sujitna over 8 years ago in reply to e14softwareteam

    Hi Guys,

     

    I'm trying to create a component class for components that need to be directly connected to ground (i.e. bypass capacitors).

     

    I created a "ClassName" parameter in my components schematic, but I can't seem to find it when I'm running through the Advanced Rule Wizard.

     

    Is CS missing "Generate Component Classes"? Or user-defined component classes?

     

    I also tried editing the .RUL file but when I import it back it doesn't seem to register the rule properly or it doesn't see the ClassName I created.

     

    Any ideas would be greatly appreciated.

    imageimage

    - Sujit

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • sujitna
    sujitna over 8 years ago in reply to e14softwareteam

    Hi Guys,

     

    I'm trying to create a component class for components that need to be directly connected to ground (i.e. bypass capacitors).

     

    I created a "ClassName" parameter in my components schematic, but I can't seem to find it when I'm running through the Advanced Rule Wizard.

     

    Is CS missing "Generate Component Classes"? Or user-defined component classes?

     

    I also tried editing the .RUL file but when I import it back it doesn't seem to register the rule properly or it doesn't see the ClassName I created.

     

    Any ideas would be greatly appreciated.

    imageimage

    - Sujit

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Former Member
    Former Member over 8 years ago in reply to sujitna

    Bump

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • harvie256
    harvie256 over 8 years ago in reply to Former Member

    Hi Sujit

     

    There is a setting in AD which allows switches on and off manual component classes (which is what you're trying to do), they obviously have this switched off in CS by default and have removed the options page where you would normally switch it back on.

     

    However, as usual there's a file hacking workaround.  Close your project or exit CS, open your .PrjPcb file in a text editor and find the section that looks like:

     

    [PrjClassGen]

    CompClassManualEnabled=0

    CompClassManualRoomEnabled=0

    NetClassAutoBusEnabled=1

    NetClassAutoCompEnabled=0

    NetClassAutoNamedHarnessEnabled=0

    NetClassManualEnabled=1

     

    the line

    CompClassManualEnabled=0

     

    is the one of interest, if you change it to a 1 and save then reopen, I think you will find it will now work as you expected it to.

     

    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Former Member
    Former Member over 8 years ago in reply to harvie256

    Hi Harvey,

     

    Yes!!, that did the trick.

     

    Is there anything similar to isVia , I'm trying to get ground vias to connect to ground polygons, without connecting all other component grounds to the same polygon.

     

    - Thanks for your support

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • harvie256
    harvie256 over 8 years ago in reply to Former Member

    Yes you can match on more than one thing (you can use logical AND / OR expressions.)  So I believe this is what you're after, matching on both IsVia and InNet('GND'):

     

    SELECTION=FALSE|LAYER=TOP|LOCKED=FALSE|POLYGONOUTLINE=FALSE|USERROUTED=TRUE|UNIONINDEX=0|RULEKIND=PolygonConnect|NETSCOPE=AnyNet|LAYERKIND=SameLayer|SCOPE1EXPRESSION=InNet('GND') AND IsVia|SCOPE2EXPRESSION=All|NAME=GroundViaConnect|ENABLED=TRUE|PRIORITY=1|COMMENT= |UNIQUEID=XACHTJSP|DEFINEDBYLOGICALDOCUMENT=FALSE|CONNECTSTYLE=Direct|RELIEFCONDUCTORWIDTH=10mil|RELIEFENTRIES=4|POLYGONRELIEFANGLE=90 Angle|AIRGAPWIDTH=10mil¶

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube