• 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. Form checklist question

Stats

  • Replies 4
  • Subscribers 160
  • Views 13738
  • Members are here 0
More Content

Form checklist question

Ejlersen
Ejlersen over 16 years ago

Hi,

I was wondering if anyone know if it is necessary to check each setting on a checklist?

I have a long list of checks like the ones shown below. I could use axlFormGetField( _ns_pdf_outform  "300_dpi") to get status for just that one field. I'm more interested in just getting the one that is set, are there any functionality for that?

FIELD 300_dpi
FLOC 6 4
CHECKLIST "300 dpi" "dpi"
ENDFIELD

FIELD 600_dpi
FLOC 6 6
CHECKLIST "600 dpi" "dpi"
ENDFIELD

 

Best regards,

Ole

  • Sign in to reply
  • Cancel
Parents
  • fxffxf
    fxffxf over 16 years ago

     It would not be difficult to write a skill function to do this. The form handle has an attribute that lists all of the fields in the form. You can use axlFormGetFieldType to query the field type. It is then a simple process of iterating on all of the fields. Any that are of type CHECKITEM are a checkbox field, you would then query on its current setting - axlFormGetField. Add any that are set to a return list of checkbox field names.

                 fw = axlFormCreate( ... )

                 fw->fields    ; get list of all fields inform

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

     It would not be difficult to write a skill function to do this. The form handle has an attribute that lists all of the fields in the form. You can use axlFormGetFieldType to query the field type. It is then a simple process of iterating on all of the fields. Any that are of type CHECKITEM are a checkbox field, you would then query on its current setting - axlFormGetField. Add any that are set to a return list of checkbox field names.

                 fw = axlFormCreate( ... )

                 fw->fields    ; get list of all fields inform

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • wilef
    wilef over 7 years ago in reply to fxffxf

    This wouldn't really work if you had more than one checklist group. I don't see a way to grab the group a field is associated with in SKILL. Less elegant method would be writing a function that passes in a list of the fields you want to check (you already have to know which ones are in the group you want). and iterate through them that way.

    • 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