• 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. how can I get a list of text dbids?

Stats

  • Replies 5
  • Subscribers 160
  • Views 13796
  • Members are here 0
More Content

how can I get a list of text dbids?

Ejlersen
Ejlersen over 16 years ago

Hi

Does anyone know a function to get a list of text dbids?

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 16 years ago

    axlClearSelSet()
    axlSetFindFilter(?enabled list("noall", "text", "invisible"), ?onButtons list("noall", "text"))
    axlAddSelectAll()
    selSet = axlGetSelSet()

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

    Hi Dave

    Thanks for your answer. I'll try that out.

    I've tried a couple of times to save the settings of the Find panel and restoring it without any luck, do you have any tips regarding this?

    Best regards

    Ole

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

        ; Save the mini status form information
        userData = axlUIGetUserData()
        putprop(userData axlVisibleGet() 'visibility)
        putprop(userData axlGetFindFilter(nil) 'FFEnabled)
        putprop(userData axlGetFindFilter(t) 'FFOnButtons)

        userData = axlUIGetUserData()
        ; Restore mini status form data
        axlVisibleSet(userData->visibility)
        axlSetFindFilter(?enabled userData->FFEnabled,  ?onButtons userData->FFOnButtons)
        axlClearSelSet()

    -Craig

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

    I don't know who wrote these functions originally, but they are now in common use:

    ;Saves the select set options:
    defun( _saveSelSet () list(axlGetSelSet(), axlGetFindFilter(nil), axlGetFindFilter(t)))

    ;Restores select set options:
    defun( _restoreSelSet (oldSelSet "l")
      axlSetFindFilter(?enabled cons("noall", cadr(oldSelSet)) ?onButtons cons("noall", caddr(oldSelSet)))
      axlSingleSelectObject(car(oldSelSet))
      t
    )

    Regards, Dave

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

    Dave,

    Those look like private Cadence functions, as the start with an underscore. It's doing essentially the same thing I suggested, except instead of putting 3 properties on axUIGetUserData it putting one (oldSelSet). If you look at axlUIGetUserData after you run _saveSelSet you will see what I mean.

    -Craig

    • 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