Home Forums Nazca rotate cell

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #5826

    Hi all,

    This might be a silly question, but is there a way to rotate a cell when instantiating it with the put() method?
    something like

    cell_A = nd.strt(length=10, width=5, xs='xs1')
    cell_A.put(0,0, rotate=90) #intended usage,does not work 

    I know that it is possible to flip them vertically and horizontally but could not find anything to rotate the cells at various angles.




    Dear Paul,

    The put statement takes (x, y, a), with x, y in um and a in degrees. You can use this as follows (and omit the rotate keyword):

    cell_A.put(0, 0, 90)

    Some more background. The put() method is one of the few cases where you should only provide values as first entries, and avoid a keyword assignment like x=1, because put() interprets the first 5 positional entries to decide what to do. In addition, there is a set of keywords available like “array” for gds arrays, “scale” for scaling, and “flip” and “flop” for mirroring. These keywords translate into a cell property in gds and you will see their values back when double clicking a cell in e.g. KLayout. See also Cell.put().



    Thank you, I suspected that this was something as trivial as this!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.