• 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 get item parent in a Tree?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14576
  • 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 get item parent in a Tree?

MedAn
MedAn over 8 years ago

Hi all!

Could you pls. explain how to work with Tree?

For example I have created Tree and some items in it.

But if I try to get parent or treeItems - all time I have warnings: *WARNING* hiGetTree: bad tree item description.
On the forum I found how to get description, in this case we must use: eval(item)->description. But how we can get parent of item?
For example I want to see treeItems, I type: dprint(hiGetTreeItems(catTree))

and in result: 

*WARNING* hiGetTreeItems: bad tree description.
hiGetTreeItems(catTree) = nil

foreach(item selItems
   dprint(eval(item)->??)
   println(hiGetTree(item))
);

(eval(item)->??) = (_expandedSelectionIcon nil _expandedIcon nil _activeUT _description ("-----" "pcell DRC") _selectionIcon nil _labelIcon nil hiFieldSym backSubItem1)
*WARNING* hiGetTree: bad tree item description.

foreach(item selItems
println(hiGetTreeParent(item))
);

*WARNING* hiGetTreeParent: bad tree description.
nil

And the same situation with expand, by default all items in the tree are collapsed, I try to expand it  hiExpandTreeItem(item t); but without results

  • Cancel
Parents
  • MedAn
    MedAn over 8 years ago
    Hi Andrew!

    Thx. you very mach.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • MedAn
    MedAn over 8 years ago
    Hi Andrew!

    Thx. you very mach.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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