Hierarchy Descent/Ascent

Hi Matthias,

I am using this script you provided to descent into layout hierarchies:

lv = RBA::LayoutView::current
lv || raise("No layout opened")

sel_cv_index = nil
sel_cell = nil
lv.each_object_selected do |sel|
  sel_cv_index = sel.cv_index
  sel.each_inst { |i| sel_cell = i.inst.cell; break }
  break
end

lv.cancel

if sel_cell
  cv = lv.cellview(sel_cv_index)
  cv.cell = sel_cell
  lv.zoom_fit
end

This works nice, but I am also looking for a way to step back "UP" to the parent cell...
Can you help me here?

Thanks,
Martin

Comments

  • edited April 1

    That is difficult in the general case, because there is more than one parent.

    But why not just using "Display/Descend" and "Display/Ascend"?

    They do pretty much what Cadence does if that is what you're asking for. If you don't like the default key bindings and prefer "X", "Shift+X", "Shift+B", just redefine them in "Application/Setup" "Application/Customize Menu".

    And before you come to the next question: Check out the "key binding targets" at the bottom of that list. They correspond to "Move" and "Clone" for example.

    Matthias

  • It was unkind of Brand X to make bindkeys
    for the same action, different between
    schematic/symbol and layout editors.
    Still trips me up after decades.

  • @dick_freebird I know, I feel the same :)

Sign In or Register to comment.