Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorttrautzsch
    • CommentTimeDec 18th 2017
    Hi everyone, I am pretty new here. My question is as follows:

    I pretty much figured out how to execute ruby scripts by means of using the KLayout Editor exe in commandline mode.
    As I would like to use the KLayout Editor for user-sporadic design-clipping from a larger design file, I was wondering, if there is some way to keep the KLayout-Editor open in the background and send some script execution requests to this already open instance of the KLayout-Editor (keeping the design-file loaded). Currently I am stuck with having to always re-open the KLayout Editor including the large design-file whenever the user in my little test application picks a locations from a list.

    Has somebody dealt with such a problem before? I would greatly appreciate some feedback. Kind Regards!
    • CommentAuthorMatthias
    • CommentTimeDec 19th 2017


    the solution you look for is generally known as interprocess communication. There are different approaches, but the most portable one which even works across networks are sockets. In this scheme, KLayout runs a script which listens to a TCP/IP port. By connecting to this port with a client application you can basically make this script execute code within the KLayout instance with the layout file loaded.

    A good starting point is the Snapshot Server Example: In this example, the client is a web browser and the TCP/IP protocol is HTTP.