KiCAD pcbnew scripting
|def||begin (self, args)|
|def||end (self, args)|
|def||Add (self, aNetclass)|
|def||Remove (self, aNetName)|
|def||Find (self, aName)|
Class NETCLASSES is a container for NETCLASS instances. It owns all its NETCLASSes (=> it will delete them at time of destruction). This container will always have a default NETCLASS with the name given by const NETCLASS::Default. C++ includes: class_netclass.h
Add(NETCLASSES self, NETCLASSPTR aNetclass) -> bool bool NETCLASSES::Add(NETCLASSPTR aNetclass) Function Add takes aNetclass and puts it into this NETCLASSES container. Parameters: ----------- aNetclass: is netclass to add true if the name within aNetclass is unique and it could be inserted OK, else false because the name was not unique.
Find(NETCLASSES self, wxString aName) -> NETCLASSPTR NETCLASSPTR NETCLASSES::Find(const wxString &aName) const Function Find searches this container for a NETCLASS given by aName. Parameters: ----------- aName: is the name of the NETCLASS to search for. NETCLASSPTR - if found, else NULL.
Remove(NETCLASSES self, wxString aNetName) -> NETCLASSPTR NETCLASSPTR NETCLASSES::Remove(const wxString &aNetName) Function Remove removes a NETCLASS from this container but does not destroy/delete it. Parameters: ----------- aNetName: is the name of the net to delete, and it may not be NETCLASS::Default. NETCLASSPTR - the NETCLASS associated with aNetName if found and removed, else NULL.