Skip to content

Exporting

After defining your rules, write the deck:

Python
deck.write("rules.fcd")

write() checks API availability, validates the deck, and creates the .fcd file. It does not run geometry. No separate loading or compilation step is needed.

It returns the absolute output path and creates parent directories as needed. Relative output paths start in the current working directory. Existing files are not overwritten.

Reference layouts are embedded in the file. When running your Python script directly, relative reference paths also start in the current working directory. Changes to those layouts after export do not change the .fcd. Supply the primary layout separately when running DRC.

Pass capabilities=... to check your runner's support during export.