It looks like you're new here. If you want to get involved, click one of these buttons!
Hi Sir ,
in Ruby , how to get cell / polygon pattern / object in a special area?
such as ...
cell : DIE
BBox (500,500) , (-500,-500)
that means I want to get the sub cells in the top cell "DIE" , and get cell within BBox area only.
in Ruby / Python , how to do that?
Comments
@jiunnweiyeh You can use the RecursiveShapeIterator for this purpose.
Matthias
Hi Matthias,
for the code ly=.......your layout ,
Is it means that like this code?
LayoutView = RBA::Application::instance.main_window.current_view.active_cellview.layout
Another new question is ... how to draw a box in current cell?
It may like this one....
layer = ly.layer(1, 0)
iter = top.create_shapes_rec(layer, RBA::Box::new(-500, -500, 500, 500))
@jiunnweiyeh Yes, you somehow need to address the layout you're taking the shapes from. To get the current layout, use "RBA::CellView.active.layout".
I can't say how you want your box to be defined. I just used the coordinates you have given.
Matthias
@Matthias
Could you please help to check that how to remove a cell if get it from begin_instances_rec_overlapping ?
as below code , I can get cell (include cell name / location...) after that command.
then I want to remove (delete) that cell.
But that is not workable....
Don't delete during iteration - this will crash the application.
Instead collect the cells to delete and delete later, e.g (untested):
Matthias
@Matthias
Thanks , it is work.