You didn't give any indication of what went wrong or what errors were given. Three things that I can spot: The nil on the first line would probably be better being "schematic" so that it knows what viewType to create the view as if there is no existing "schematic" view. You've got an erroneous space after the foreach and before the parenthesis that follows it. If you use the C-style for SKILL, you must not put spaces between the function name and the parenthesis after it. All your instances will be on top of each other because you've set the xy location to list(0 0) With the code as (my library name): cv=dbOpenCellViewByType("opamp090" "testforum" "schematic" "schematic" "a") lib=ddGetObj("opamp090") foreach(cell lib~>cells when(ddGetObj(lib~>name cell~>name "symbol") cv1=dbOpenCellViewByType(lib~>name cell~>name "symbol") when(cv1 schinst=dbCreateInst(cv cv1 nil list(0 0) "R0" 1) ) ) ) The code worked (albeit with the instances on top of each other). You could compute the coordinate yourself (if you have some idea of the size of the symbols - although you could find that out using the bBox of the symbols too). My code has an additional when to make sure it doesn't fail if the symbol couldn't be opened for some reason. Regards, Andrew
↧