Hi,

I create a Multi-layer Pcell by calculating the coordinates. The function of calculating the coordinates is so long that the whole code of generating pcell will also be long. So I want to create a function which can calculate these coordinates, and I just need to call this function whenever and wherever I want to calculating these coordinates. Here is the problem, I define this function by using defun(), if I put the function outside pcDefinePcell, after running DRC, the report says the calculating function that I create is not defined. If I put these function inside pcDefinePcell, the pcell shows one more layer which is "marker error" which is explained as "function .... redefined". I want to know how to figure this problem? thx.