CreateComponent (Layout Editor)

Use: Places a component.

Syntax: CreateComponent <Array>

Return Value: Returns the name of the newly created component.

Parameters: Array("NAME:Contents",

"definition_name:=", <component name>,

"placement:=", Array("x:=", <x position>, "y:=", <y position>),

"layer:=", <placement layer name>,

"StackupLayers:=", Array("<fooprint stackup layer>:<design stackup layer>", …),

"DrawLayers:=", Array("<fooprint layer>:<design layer>", …))

VB Example: oEditor.CreateComponent Array("NAME:Contents",

"definition_name:=", "MSTRL",

"placement:=", Array("x:=", "-13mm", "y:=", "5mm"),

"layer:=", "Top",

"StackupLayers:=", Array("Top:Top", "0:Dielectric", "0:Ground"),

"DrawLayers:=", Array("Measures:Measures", "Assembly Top:Assembly Top", "Silkscreen Top:Silkscreen Top", "Wirebonds:0"))

 

Notes:

Each Layer mapping is specified as a single text string in quotes, "<footprint layer>:<design layer>". If the layer does not map to anything, use a "0" for the layer. For example, you can use "Measures:0", if the footprint "Measures" layer does not map to a design layer. Use "0:Dielectric", if the design "Dielectric" layer does not map to a footprint layer.

Note, also, that the "StackupLayers" and the "DrawLayers" arguments may be omitted, in which case, the mappings are determined automatically.