Note it's very hard to debug code (which I can't run, because I don't have any of the data) if it is so poorly formatted - there is no indentation in the code which makes it very hard to read. When you say "the gates are not placed" - do you mean that the poly isn't routed on the devices? That's what I'd expect from the code you've posted. In the list of parameters, the if(oddp(row)... part will only return the final list in each of the then and else parts, and so you'd never have routePolyDir set at all. This is the kind of thing where printing out the value of params as a debug statement after setting it would have revealed the problem - a basic debugging technique in any language. I'd probably write it this way: params = list( list("l" "string" aelSuffixNotation(1u * Length)) list("w" "string" aelSuffixNotation(1u * wf)) list("fingers" "string" sprintf(nil "%d" nf)) list("routePolydir" "string" if(oddp(row) "Bottom" "Top") ) list("polyContacts" "string" "True") ) ; params I've no idea whether there's anything else wrong in the code - I just focused on the highlighted part (since you highlighted it). Regards, Andrew.
↧