AddPartInstance Method (Block Object)

Scope: Schematic editor

Object: Block Object

Prerequisites: None

Adds a part instance to the block.

Usage

Block.AddPartInstance (ByVal SymbolPartitionName As String, ByVal DeviceName As String, ByVal SymbolName As String, ByVal LocationX As Long, ByVal LocationY As Long) As IVdComp

Arguments

Note:

All coordinates are measured in 100ths of an inch.

SymbolPartitionName

Name of the partition.

DeviceName

Name of the device.

SymbolName

Name of the symbol to be instantiated.

LocationX

X coordinate of the instance.

LocationY

Y coordinate of the instance.

Return Values

As IVdComp. Added part instance, in the form of a Component Object.

Examples

Set NewDevice_1 = myBlock.AddPartInstance("MISC","PCI-CONN","CON1L",200,200)