I'd like to connect one net object with one pin object of an instance by using the function dbCreateConnByName().
The code would be:
;SKILL CODE BEGINS
net_var = dbFindNetByName(new "net011")db:0xf0d9ab93inst1 = dbGetInstByName(new "V6")db:0xf0d9ada1dbCreateConnByName(net_var inst1 "PLUS")*WARNING* (DB-270004): Shorted nets - net07nil
net07 is linked to pin "PLUS" of instance V6. Does the last function return nil because 2 nets are shorted? If so how can I solve this Problem and if not, why does the function return nil?
Thank you very much in advance!!
Which version are you using? Is "V6" a via? If that's the case then I would guess that you are using IC5141. You may need to remove any existing net from V6 before you can use dbCreateConnByName(), dbDisconnectObject() perhaps?. I'm guessing here as there is not much information to go by. If my guess is wrong and V6 is, say, a voltage source or something similar, the previous comment may still be applicable. You can see what 'inst1' is connected to by inspecting its "instTerms" attribute, e.g. inst1~>instTerms~>net
Hope this helps a little.
In reply to skillUser:
you are right with that guess :) I have created the instance from scratch without entering the schCheck() command and it worked.
However when I push the check&save button or enter the schCheck() the Connection by Name configuration disappears. Is there any way to create a persistent Connection without having to add wires explicitly?
Thanks in advance,
In reply to karacaoe:
Well, the schematic editor uses physical overlapping wires etc. to derive connectivity when you perform Check & Save. You might use dbSetConnCurrent() after setting up connectivity to indicate that the connectivity is up-to-date?
Hopefully this will help you?
Yes, thank you very much Lawrence.