DRC command issue

Hi sir , in Klayout 0.27 or 0.26... version , this code can been work
layoutview = RBA::Application::instance.main_window.current_view.active_cellview.layout
viewed_cell = RBA::Application::instance.main_window.current_view.active_cellview.cell
die_pm1="DIE_PI1"
die_caprd="DIE_CapRD"
die_pm2="DIE_PI2"
die_ubm="DIE_UBM"
#######Layergen########
cell(die_pm1)
pi1=input(93,0)
pi1.output(94,56)

But , after I using 0.28.13 version , that didn't workable. and error message is ..
Caught the following excetio ..
undefined methoud 'cel_index' for ....:String (Class nomethoderror)
Same code can been using in 0.27 version but 0.28
is any change or what can I do ?

Comments

  • Hi jiunnweiyeh

    Specified the output cell output_cell(die_pm1) should able to solve the issue

  • Hi RawrRanger,
    Got it . it is workable when I update the code as
    cell(die_pm1)
    pi1=input(93,0)
    pi1.output(94,56,output_cell(die_pm1))
    Thanks.

  • Hi jiunnweiyeh

    output_cell(die_pm1) can be added right below this line cell(die_pm1)

    this makes all following output results into to die_pm1

    so you don't need to update every output individually in your files

  • @RawrRanger Thanks for the workaround. Actually the output_cell should not be needed. That is actually a bug (https://github.com/KLayout/klayout/issues/1485).

    Best regards,

    Matthias

Sign In or Register to comment.