Skip to content

Circuit.AddDevice(string, int, int, int, bool, bool) Method

Add a device instance to the design.

1
Simba.Data.Device AddDevice(deviceName, x, y, rotationAngle=0, horizontalFlip=false, verticalFlip=false)

Parameters

deviceName String

Device name as shown in library (Ex: "(Resistor)" )

x int

Device Horizontal location (The upper-left corner is the origin)

y int

Device Vertical location (The upper-left corner is the origin)

rotationAngle int

Device angle in degree (clockwise) (Default:0)

horizontalFlip System.Boolean

If true, the device is flipped horizontally.

verticalFlip System.Boolean

If true, the device is flipped vertically.

Returns

Device
Return the device. Return None/none if error.