• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. s_backColor with grid cells

Stats

  • Replies 4
  • Subscribers 159
  • Views 13687
  • Members are here 0
More Content

s_backColor with grid cells

Ejlersen
Ejlersen over 12 years ago

Hi

How can a background color for grid cells be set to anything apart from the standard colors shown in the documentation.

I've seen this done in grid cell based forms and have so far not been able to figure this out.

It works for setting cell->backColor to 'green, 'black, 'white etc. but I would like to use rgb or color palette numbers

Anyone know the secret to this?

Best regards

Ole

  • Cancel
  • Sign in to reply
  • fxffxf
    fxffxf over 12 years ago

     see the example code in <cdsroot>/share/pcb/examples/skill/form

     the files are fgrid.il/fgrid.form

    load fgrid,il and then type gridtest

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 12 years ago

    Hi

    Thats the example I've been looking at,but it does not show using rgb color codes for setting the background color of a cell.

    I've tried cell->backColor = '(100 100 100) without any luck, I've also tried passing color palette results with no luck

    I've tried on 16.6s006 and 16.6s008

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 12 years ago

    Grid color supports a set of predefined colors (e.g. 'yellow 'red 'green etc) or Allegro design colors. Allegro design colors require the allegro color number which corrosponds to a rgb value stored in the Allegro database (see axlFormColorize  and axlColorDoc for more info). It doesn't support the ability to assign abitrary rgb values to a cell.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 12 years ago

    Hi

    Yes, you're correct - it works with the 'background option on colorize - thanks for pointing me in the correct direction for doing this when initializing the form instead of when I created the cells.

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information