• 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. getting the label at tree view

Stats

  • Replies 1
  • Subscribers 159
  • Views 12959
  • Members are here 0
More Content

getting the label at tree view

D912349
D912349 over 12 years ago

Hi everyone,

I am currently working on an interface where treelist is used. the form will display list of layers present in the design in tree list. every item is set to be displayed with a check box.. the main purpose of the check box is to serve as a trigger for another form.. but in order to load the form, the condition is to check the checkbox and then retrieve the label of item selected.. To retrieve if the checkbox is checked is quite simple, I just used form->treeViewSelState . what is quite confusing is how to retrieve the label whenever the checkbox is selected.. whenever i use form->curValue or axlformGetField. the label extracted is either nil or "". refer to the code below as reference

;;;;;code used to load items on tree list. note: DESIGN_LAYER_LIST is the list of layers extracted from board

(foreach item DESIGN_LAYER_LIST
          axlFormTreeViewAddItem(form "treeLayers" item nil nil t)
)

;;;;;code for form event

(case oForm->curField

("treeHandler"
   let(()
    (form->event
     (normal

        ;;;;; retrieve checkstate

           form->treeViewSelState

     )

)

)

)

Thanks in advance

      

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

    Hi

    There might be an issue in that area. I just tried on 16.6 using the built in example of tree view (%cdsroot\share\pcb\examples\skill\form\basic) and it shows the same behaviour.

    It seems like the first time you select something you get "" back, however selecting another item gives you back the level as expected.

    I think you'll have to file a service request to Cadence on this.

    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