Skip to content


A Circuit contains devices and connectors

Circuit() Empty Circuit Constructor
Circuit(Circuit) Copy Constructor (Duplicate circuit)
Connectors Observable Collection of Connectors
Devices Observable Collection of devices
Name Circuit Name. Used primarly for subcircuits
AddConnection(Pin, Pin) Add connection between two pins.Return None if fail.
AddConnection(Pin, PointI) Add connection between a pin and a point. Return None if fail.
AddConnection(PointI, Pin) Add connection between a point and a pin. Return None if fail.
AddConnection(PointI, PointI) Add connection between two points. Return None if fail.
AddDevice(string, int, int, int, bool, bool) Add a device instance to the design.
CreateSubsystem(List) Replace all the items by a new subcircuit containing them. Try to maintain connections.
GetConnectorAt(PointI) Return the connector with a connector segment passing through the point.
Return None if there is no connector at this location.
GetConnectorConnectedTo(Pin) Return the connector connected to p. return None if the pin is not connected.
GetConnectorsConnectedTo(Device) Return all the connectors connected to a given device.
GetConnectorSegmentsAt(PointI, bool) Returns the list of connector segments where the distance to the point is zero. Return None if none.
GetDeviceByName(string) Return the device with a given name
GetDevicePinsAt(PointI) Return the pins located at p. Return empty list if there is no pins
GetPinsConnectedTo(Pin) Return the list of pins connected to this pin through a connector
GetSelectableItemAt(PointI) Return the selectable item (Drawing Elements + Connectors)
GetSelectableItemsIn(RectangleI, bool) Return the elements contained in the rectangle
IsConnected(Pin) Return true if the pin is connected to a connector or to another device pin
MoveItem(IMovable, PointI) Move a single item
MoveItems(List, PointI, int, bool, bool) Move a bunch of items in the design. Maintains connections
Remove(Connector) Remove the connector from this circuit.
Remove(IMovable) Remove item from circuit (Device or Connector segment)
Remove(ICollection) Remove a collection of item from the circuit