• 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. Custom IC SKILL
  3. How to create an attachmentList for a form

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 6157
  • Members are here 0
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 create an attachmentList for a form

psill00
psill00 over 2 years ago

I want to create a attachmentList for a form with a loop

for( i 0 10

     attList = append1( attList stringToSymbol("hicLeftPercentSet | hicTopPercentSet | hicRightPercentSet | hicBottomPercentSet "))

hiCreateAppForm(?name 'custWhaaamoForm
?fields fieldList
?formTitle "Whaaamo"
?initialSize list(200 950)
?buttonLayout 'Empty
?attachmentList attList
)

Paul

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    Paul,

    Why are you using stringToSymbol? That's not going to work because it tries to create a symbol out of that big string (it won't evaluate it). Instead use:

    for( i 0 10
         attList = append1( attList hicLeftPercentSet | hicTopPercentSet | hicRightPercentSet | hicBottomPercentSet)
    )

    or better still (since they're all the same) - use cons because it's more efficient than append1:

    for( i 0 10
         attList = cons( hicLeftPercentSet | hicTopPercentSet | hicRightPercentSet | hicBottomPercentSet  attList)
    )

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • psill00
    psill00 over 2 years ago in reply to Andrew Beckett

    Thanks for the info

    As for the stringToSymbol, goes to a basic law of the internet.

    To get the fastest and with the most response in anything, is to put post something wrong

    Paul

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to psill00

    Paul,

    psill00 said:
    To get the fastest and with the most response in anything, is to put post something wrong

    That made me laugh!

    I also meant to mention that you should also look at using layout forms, as these are much more flexible than the old attachment-list way of making resizable forms.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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