Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building a layer tree with "add_child" #464

Closed
klayoutmatthias opened this issue Jan 4, 2020 · 0 comments
Closed

Problem building a layer tree with "add_child" #464

klayoutmatthias opened this issue Jan 4, 2020 · 0 comments
Assignees

Comments

@klayoutmatthias
Copy link
Collaborator

@klayoutmatthias klayoutmatthias commented Jan 4, 2020

The following code does not produce the expected results:

lv = RBA::LayoutView::current
 
lp = RBA::LayerProperties::new
lp.name = "A"
 
lp = lv.insert_layer(lv.begin_layers, lp)
 
lpp = RBA::LayerProperties::new
lpp = lp.add_child(lpp)
# This does not show up:
lpp.name = "A.1"
 
# Also does not show up:
lppp = RBA::LayerProperties::new
lppp = lpp.add_child(lppp)
lppp.name = "A.1.1"
# ... to here
 
# Also does not show up:
lppp = RBA::LayerProperties::new
lppp = lpp.add_child(lppp)
lppp.name = "A.1.2"
# ... to here
 
lpp = RBA::LayerProperties::new
lpp = lp.add_child(lpp)
lpp.name = "A.2"
 
# Also does not show up:
lppp = RBA::LayerProperties::new
lppp = lpp.add_child(lppp)
lppp.name = "A.2.1"
# ... to here

lppp = RBA::LayerProperties::new
lppp = lpp.add_child(lppp)
lppp.name = "A.2.2"

The expected result is a tree of "A -> ( A.1 -> ( A1.1, A1.2 ), A.2 -> ( A2.1, A2.2 ) ) )".

@klayoutmatthias klayoutmatthias self-assigned this Jan 4, 2020
klayoutmatthias added a commit that referenced this issue Jan 5, 2020
Fixed #464 (problems building a layer node tree with 'add_child')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.