to delete a net in a schematic using SKILL

K

kamal

Guest
Hi,

I am trying to have a subroutine where i mention my lib/cell schematic
view and a list of nets and it should iteratively delete those nets. I
tried 2 approaches till now, but facing a problem with both:

1. I opened the schematic using
a) cvid = dbOpenCellViewByType (<all data>)
b) k = "dbFindNetByName(cvid netname).
c) dbDeleteObject(k)
d)dbSave(k)
e)dbClose(k)

The problem is when i open that schematic i still see that net .

2. I did a select;
geOpen(?lib "mylib" ?cell "mycell" ?view "schematic" ?viewType
"schematic" ?mode "a")
cvId = dbOpenCellViewByType("mylib" "mycell" "schematic" "schematic"
"a")
foreach( netToBeDeleted netNameList

schHiSelectByProperty("select")
hiiSetCurrentForm('schSchSelectPropForm)
schSchSelectPropForm->schSchSelPropNameCyclic->value = "netName"
schSchSelectPropForm->schSchSelPropValueString->value = netToBeDeleted
hiFormDone(schSchSelectPropForm)
schHiDelete()
);foreach
dbSave(cvId)
dbClose(cvId)

Here when i am trying these lines one by one in my icfb , then it
deletes those nets , but when i put this a procedure then it stops at
the place where we need to click <OK> on the form and thus my whole
effort of automation gets lost.

Please help me out.

Thanks & Regards,
Kamal
 
For the first approach:

Q: does the net still have a pin, which is not deleted?

a) cvid = dbOpenCellViewByType (<all data>)
b) k = "dbFindNetByName(cvid netname).
c) dbDeleteObject(k)
-> try
*) schCheck( cvid )
here, to extract the new created connectivity.
d)dbSave(k)
e)dbClose(k)


Bernd
 
I resolved the issue, there is a property in the net object called
"fig", which has info abt it being a label or line etc, i itercatively
deletd the contents of fig and then deleted the base object of that net
and it worked. :)-)

by just deleting the net object and even after doing schCheck() , i was
not able to delete the net .

Thanks,
Kamal




Bernd Fischer wrote:
For the first approach:

Q: does the net still have a pin, which is not deleted?

a) cvid = dbOpenCellViewByType (<all data>)
b) k = "dbFindNetByName(cvid netname).
c) dbDeleteObject(k)
-> try
*) schCheck( cvid )
here, to extract the new created connectivity.
d)dbSave(k)
e)dbClose(k)


Bernd
 
On 27 Sep 2006 11:15:17 -0700, "kamal" <kamal.aggarwal@yahoo.com> wrote:

I resolved the issue, there is a property in the net object called
"fig", which has info abt it being a label or line etc, i itercatively
deletd the contents of fig and then deleted the base object of that net
and it worked. :)-)

by just deleting the net object and even after doing schCheck() , i was
not able to delete the net .

Thanks,
Kamal
That's because schCheck() creates the nets based on the physical information
(the wires) in the schematic. You need to remove the physical information
(in fact, deleting just the wires associated with the net, and re-doing the
schCheck would remove the net - you don't have to explicitly delete the
net object because the schCheck will do that.

Regards,

Andrew.
--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top