Skip to main content

A simple Python package for creating or reading GDSII layout files.

Project description

gdsCAD is a simple, but powerful, Python package for creating, reading, and manipulating GDSII layout files. It’s suitable for scripting and interactive use. It excels particularly in generating designs with multiple incrementally adjusted objects. gdsCAD uses matplotlib to visualize everything from individual geometry primitives to the entire layout.

Documentation

Complete documentation can be found at:

http://pythonhosted.org/gdsCAD/#

Download

The package can be downloaded for installation via easy_install at

https://pypi.python.org/pypi/gdsCAD

A Simple Example

Here is a simple example that shows the creation of some text with alignment features. It involves the creation of drawing geometry, Cell and a Layout . The result is saved as a GDSII file, and also displayed to the screen:

import os.path
from gdsCAD import *

# Create some things to draw:
amarks = templates.AlignmentMarks(('A', 'C'), (1,2))
text = shapes.Label('Hello\nworld!', 200, (0, 0))
box = shapes.Box((-500, -400), (1500, 400), 10, layer=2)

# Create a Cell to hold the objects
cell = core.Cell('EXAMPLE')
cell.add([text, box])
cell.add(amarks, origin=(-200, 0))
cell.add(amarks, origin=(1200, 0))

# Create two copies of the Cell
top = core.Cell('TOP')
cell_array = core.CellArray(cell, 1, 2, (0, 850))
top.add(cell_array)

# Add the copied cell to a Layout and save
layout = core.Layout('LIBRARY')
layout.add(top)
layout.save('output.gds')

layout.show()

Recent Changes

v0.3.1 Added support for Hershey Fonts. Thanks to Matthias Blaicher.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdsCAD-0.3.1.tar.gz (446.7 kB view details)

Uploaded Source

File details

Details for the file gdsCAD-0.3.1.tar.gz.

File metadata

  • Download URL: gdsCAD-0.3.1.tar.gz
  • Upload date:
  • Size: 446.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gdsCAD-0.3.1.tar.gz
Algorithm Hash digest
SHA256 cd2cf54d9725117c775eb9778238e8e9a41f7572574f531449639dd4be16ba9c
MD5 9fd62914a975a72b6da26328d1748146
BLAKE2b-256 a3d17df59be179a8b9aa0bd5022c16c3f61b43d64f732a87f01c7d270cf52acf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page