Layer/Type Translating

edited May 2012 in KLayout Development
Hi Matthias,

Is it possible to add a function in GUI to read a text layer mapping file for layer/type translating ?

For example:

Current layers/types:
1/1
2/15
10/15

Text mapping file:
1/1 5/1
2/15 1/1
10/15 1/18

Final layers/types:
1/1(original 2/15)
5/1(original 1/1)
1/18(original 10/15)

This function would be useful to merge databases.

Best Regards,
--
chhung

Comments

  • edited May 2012

    Hi chhung,

    this function already exists.

    Open the reader options dialog (File/Reader Options). Uncheck the "Read all layers" checkbox and enter the following table into the list box below (you can import the table from a file):

    1/1:5/1
    2/15:1/1
    10/15:1/18
    

    (corresponding to the sample above).

    When you load a file, the layers should be mapped according to the table. Please note that you have to clear the table after use, so that subsequent load operations don't get the mapping.

    Best regards,

    Matthias

  • edited November -1
    Hi Matthias,

    I'm sorry to reply so late, we have tried the reader options and it works fine, however it would confuse the users with the following two conditions:
    1. Several users using the same account, when one user forgot to clear the table, it would effect other users opening database.
    2. If the records of layer mapping table are less than database layers or it's not full mapping, some layers would be lost without warning.

    Due to the klayout GUI provided a "Edit Layer Specification" in menu Edit => Layer, the function would change one layer/type one time, if there is a tool/function to load layer mapping table by sequence in GUI and then edit layer specification, maybe it would avoid these kinds of situations.

    BTW, we are trying to study the source code and hope to write out a command tool to convert layers without startup klayout GUI, please kindly give us some suggestions when we encounter problems, thanks.

    Best Regards,
    --
    chhung
  • edited November -1

    Hi chhung,

    I understand your concerns regarding the layer mapping feature. In the next release there will be a technology manager that allows to switch, beside other features, the layer mapping file.

    That way it should be possible to provide different layer mappings and easily switch between the different setups.

    Meanwhile, you could use a special configuration file for the purpose (using the -c command line option). That way, you could isolate the special KLayout run from the other users.

    Best regards,

    Matthias

Sign In or Register to comment.