Skip to content

A canvas backend to cadence rod objects for simple-geometry

License

Notifications You must be signed in to change notification settings

unihd-cag/rodlayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canvas Backend to Cadence Rod Objects

PyPI version status

Install

pip install rodlayout

Read more in the full documentation.

from skillbridge import Workspace
from geometry import Rect, Group

from rodlayout import Canvas, Layer

Workspace.open().make_current()


r = Rect[0:2, 0:4, Layer('M1', 'drawing')]

c = Canvas()
c.append(r)

rod, = c.draw()
print(rod)  # rect@...

r2 = Rect[0:4, 0:2, Layer('M2', 'drawing')]
c = Canvas()
c.append(Group([r, r2]))
db, = c.draw()

print(db)  # figGroup@...