Coventor hierarchical generators - how to get shapes to
add to objects
Mark Begbie
2004-04-21
Hello list,
I am using Coventorware and am writing a generator script to create a
design from parameterised input. This works fine, until I try to build
a hierarchical design within a generator. There seems to be something
about opening new cells that breaks the addObject method. The symptom
is that the drawing elements appear in the Catapult window when the
generator creates them, but they do not add to a design object.
Consequently, at the end of the process none of the elements on the
screen are really present in the design. A code sample is given below
to show how I am trying to create a cell (oh man, this is such a simple
code fragment and I know the solution is going to be equally simple):
cat:cellcreate "CellName"
set Msk [cat:rectangle -layer poly1 -10 -10 10 10]; $obj addObject
$Msk
cat:cellsave
The same code, when not within the cell create and save loop works fine
(of course). Sadly, this is an area where Coventor do not see fit to
publicly release their documentation, so I am left scrabbling in the
dark. Any information to point me in the right direction would be
greatly appreciated. I am guessing that it is probably to do with
passing objects back and forth to the addObject method, but there ain't
no documentation in my set for this command.
Dr. Mark Begbie
Technologist - Microsystems
==================================================================
The Institute for System Level Integration