Skip to content

Simba.Data

Simba.Data.Circuit

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 System.String

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

x System.Int32

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

y System.Int32

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

rotationAngle System.Int32

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.