Home Forums Nazca pin layer


This topic contains 1 reply, has 2 voices, and was last updated by  Ronald 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #5962


    Dear all,

    How can I make Nazca to put Pin arrows at specific layer? Right now it chooses next available layer.



    Dear Maziyarm,

    You can generate the pin layer with name/identifier ‘bb_pin’ explicitly before using a pin.

    import nazca as nd
    nd.add_layer(name='bb_pin', layer=(100, 0))

    If you use a pin before creating the pin layer the ‘bb_pin’ layer is created automatically according to the setting in default_layers in cfg.py:

    default_layers = {
        'bb_pin':             (1001, 0),  # layer for the pin symbol (arrow)
        'bb_pin_text':        (1002, 0),  # layer for pin name annotation

    If the pin layer was set already you can change (overwrite) it:

    nd.add_layer(name='bb_pin', layer=(100, 0), overwrite=True)

    Some more options to change the pin layer and/or shape:

    You can set the pin layer when you use put_stub() for those pins put by put_stub():


    With respect to pins in an interconnect, you can initialize a pinstyle (see cfg.py for details) per interconnect and change layer, shape, size and other pin properties:

    nd.add_layer(name='my_pin', layer=(300, 0))
    my_style = {
        'shape': 'arrow_full',
        'size': 2.5,
        'layer': 'my_pin',
    nd.set_pinstyle(name='fancy', styledict=my_style)
    ic = nd.interconnects.Interconnect(pinstyle='fancy')


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.