• 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 Scripting - Skill
  3. Skill Form - ENUMSET

Stats

  • State Verified Answer
  • Replies 2
  • Subscribers 18
  • Views 2355
  • Members are here 0
More Content

Skill Form - ENUMSET

camdal894
camdal894 over 3 years ago

Hey guys,

Currently I'm running through skill tutorials on reference designer, and having an issue with the .form posted in the "advanceform" tutorial. Link to this below:

www.referencedesigner.com/.../allegro_skill_76.php

I've narrowed it down to the ENUMSET portion of the .form.

FIELD pop1
FLOC 20 10
ENUMSET 6
POP "pop1"
ENDFIELD

When this portion above is included in the .form, I get an error when I try to run the skill.

("*Error* axlFormDisplay: argument #1 should be any user-defined (other) type (type template = "o") - nil")

If I change this portion to use any of the other styles of field (CHECKLIST, SLIDEBAR, etc.), or if I remove this portion all together, then everything else will work as expected.

Is there something obviously wrong with the syntax of this section of .form code? Or any other suggestions at all to get an ENUMSET (drop-down) field to work?

Thanks a lot,
Cameron

  • Cancel
  • Sign in to reply
Parents
  • DavidJHutchins
    +1 DavidJHutchins over 3 years ago

    I think the error is caused by the lack of a POPUP definition before POP entry, below is what I had in some code I wrote last year:

    POPUP <SOURCECLASS_P>"PLACEHOLDER""0".

    FIELD SourceClass
    FLOC 2 4
    ENUMSET 20
    POP "SOURCECLASS_P"
    ENDFIELD

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Reply
  • DavidJHutchins
    +1 DavidJHutchins over 3 years ago

    I think the error is caused by the lack of a POPUP definition before POP entry, below is what I had in some code I wrote last year:

    POPUP <SOURCECLASS_P>"PLACEHOLDER""0".

    FIELD SourceClass
    FLOC 2 4
    ENUMSET 20
    POP "SOURCECLASS_P"
    ENDFIELD

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Children
  • camdal894
    0 camdal894 over 3 years ago in reply to DavidJHutchins

    Thanks very much David, this was exactly what I needed. New code in .form as below gave me drop down with YES, and NO options. This was not included in the example code from tutorial.

    POPUP <popup>"YES""YES","NO""NO"

    FIELD popdown1
    FLOC 20 10
    ENUMSET 6
    POP "popup"
    ENDFIELD

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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