how to calculate area of my gds by python script.

hi everyone,
i have one question by python script how we can calculate our gds area.

Comments

  • edited December 2023

    The pure Python way is to create a Region object and use "area" to get the area.

    But in general the more efficient way is DRC script:

    deep    # hierarchical mode for best efficiency
    
    in = input(1, 0)    # layer to compute area from
    puts in.area        # compute and print area
    

    Matthias

Sign In or Register to comment.