Add [component manager]

Use:Add a component

Command: Tools > Edit Configured Libraries > Components > Add Component

Syntax:Add Array("NAME:<ComponentName>",

"Info:=", <ComponentInfo>,

"RefBase:=", <string>, // reference designator

"NumParts:=", <int>, // parts per component

"OriginalComponent:=", <string>

"Terminal:=", <TerminalInfo>,

"Terminal:=", <TerminalInfo>, ...

// The remaining parameters are optional

Array("NAME:Parameters", // any combo of the following

"VariableProp:=", <VariableInfo>,

"CheckboxProp:=", <CheckBoxInfo>,

"ButtonProp:=", <ButtonInfo>,

"TextProp:=", <TextInfo>,

"NumberProp:=", <NumberInfo>,

"SeparatorProp:=", <SeparatorInfo>,

"ValueProp:=", <ValueInfo>,

"MenuProp:=", <MenuInfo>),

Array("NAME:Properties", // any combo of the following

"CheckboxProp:=", <CheckBoxInfo>,

"TextProp:=", <TextInfo>,

"NumberProp:=", <NumberInfo>,

"SeparatorProp:=", <SeparatorInfo>,

"ValueProp:=", <ValueInfo>,

"MenuProp:=", <MenuInfo>),

"VPointProp:=", <VPointInfo>,

"PointProp:=", <PointInfo>),

Array("Quantities",

"QuantityProp:=", <QuantityPropInfo>...),

Array("NAME:CosimDefinitions",

<CosimDefInfo>,

<CosimDefInfo>...)

Return Value:<string>

// composite name of the component.

// If the name requested conflicts with the name of an existing

// component, the requested name is altered to be unique.

// The name returned reflects any change made to be unique.

 

Parameters:<ComponentName>:

<string> // simple name of the component

 

<ComponentInfo>:

Array("Type:=", <TypeInfo>,

"NumTerminals:=", <int>,

"DataSource:=", <string>,

"ModifiedOn:=", <ModifiedOnInfo>,

"Manufacturer:=", "<string>,

"Symbol:=", <string>,

"Footprint:=", <string>,

"Description:=", <string>,

"InfoTopic:=", <string>,

"InfoHelpFile:=", <string>,

"IconFile:=", <string>,

"LibraryName:=", "",

"OriginalLocation:=", "Project", // Project Location

"Author:=", <string>,

"OriginalAuthor:=", <string>,

"CreationDate:= ", <int>)

 

<TypeInfo>:

An integer that is the or-ing of bits for each product listed below. The default setting is 0xffffffff (4294967295) which indicates valid for all products. In the component editing dialog, checking different boxes in the "Specify products for which this component is valid" grid control sets specific flags that correspond to the following hex/decimal settings:

Nexxim -- 100 binary, 4 decimal, 0x4

SIwaveDeNovo -- 1000 binary, 8 decimal, 0x8

Simplorer -- 10000 binary, 16 decimal, 0x10

MaxwellCircuit -- 100000 binary, 32 decimal, 0x20

 

<ModifiedOnInfo>:

An integer that corresponds to the number of seconds that have elapsed since 00:00 hours, Jan 1, 1970 UTC from the system clock.

 

<TerminalInfo>:

Array(<string>, // symbol pin

<string> // footprint pin

<string >, // gate name

<bool>, // shared

<int>, // equivalence number

<int>, // what to do if unconnected: flag as error:0, ignore:1

<string> // description

<Nature>)

 

<Nature>:

<string> // content varies as follows

 

Nexxim/Circuit:

"Electrical" // the only choice

 

Simplorer:

// several choices

"Electrical", "Magnetic", "Fluidic", "Translational",

"Translational_V", "Rotational", "Rotational_V",

""Radiant", "Thermal", or <VHDLPackageName>

 

<VHDLPackageName>:

<string> // in the form <Library>.<Package>

 

<Library>:

<string> // name of the VHDL library

 

<Package>:

<string> // name of the VHDL package

 

 

<VariableInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<string>) // value: number, variable, or expression

 

<FlagLetters>:

<string> // "D" - has description parameter,

// "RD" - readonly & has description parameter,

// or "RHD" - readonly, hidden, & has description parameter

<CheckBoxInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<bool>) // value: true or false

 

<ButtonInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

<string>, // button title

<string>, // extra text

<ClientID>,

"ButtonPropClientData:= ", <ClientDataArray>)

 

<ClientID>:

<int> // specifies Button Prop Client

// 0 - unknown, ButtonPropClientData

// array will be empty

// 1 - Netlist Prop Client

// 2 - not used

// 3 - File Name Prop Client

 

<ClientDataArray>:

varies with <ClientID>

 

<ClientId> is 0 or 1: empty array

Array()

 

<ClientID> is 3:

Array("InternalFormatText:=", "<prefix><RelativePath>")

 

<prefix>:

<string> // "<Project>", "<PersonalLib>", "<UserLib>", or "<SysLib>"

 

<RelativePath>:

<string> // relative path to file from <prefix>

 

<TextInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<string>) // value: a text string

 

<NumberInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<real>, // value: a number

<string>) // units

<SeparatorInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<string>) // value: a text string

<ValueInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<string>) // value: a number, variable or expression

 

<MenuPropInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

<string>, // menu choices - separated by commas

<int>) // 0 based index of current menu choice

<VPointInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<string>, // x value: number with length units

<string>) // y value: number with length units

 

<PointInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

"CB:=", <string>, // optional - script for call back

<real>, // x value

<real>) // y value

 

<QuantityPropInfo>:

Array(<string>, // name

<FlagLetters>,

<string>, // description

<string>, // value

<TypeString>,

<TypeStringDependentInfo>)

 

<TypeString>:

<string> // "Across", "Through", or "Free"

 

<TypeStringDependentInfo>:

 

<TypeString> is "Free" :

<string>, // direction: "In", "Out", "InOut", or "DontCare"

// Following <string> is not present if direction is "DontCare"

<string> // when to calculate: "BeforeAnalogSolver",

// "BeforeStateGraph", "AfterStateGraph", or "DontCareWhen"

<TypeString> is "Across" or "Through":

<int>, // terminal 1

<int> // terminal 2

 

<CosimDefInfo>:

Array("NAME:CosimDefinition",

"CosimulatorType:=", <int>,

"CosimDefName:=", <string> // "HFSS 3D Layout", "Circuit",

// "Custom", or "Netlist"

"IsDefinition:=", <bool>,

final array member(s) vary with CosimDefName)

 

final array members for HFSS 3D Layout:

"CosimStackup:=", <string>,

"CosimDmbedRatio:=", <int>

 

final array members for Circuit:

"ExportAsNport:=", <int>,

"UsePjt:=", <int>

 

final array member for Custom:

"DefinitionCompName:=", <string>

 

final array member for Netlist:

"NetlistString:=", <string>

 

Python Syntax

Add [("NAME:<ComponentName>",

"Info:=", <ComponentInfo>,

"RefBase:=", <string>, // reference designator

"NumParts:=", <int>, // parts per component

"OriginalComponent:=", <string>

"Terminal:=", <TerminalInfo>,

"Terminal:=", <TerminalInfo>, ...

The remaining parameters are optional.

["NAME:Parameters", // any combo of the following

"VariableProp:=", <VariableInfo>,

"CheckboxProp:=", <CheckBoxInfo>,

"ButtonProp:=", <ButtonInfo>,

"TextProp:=", <TextInfo>,

"NumberProp:=", <NumberInfo>,

"SeparatorProp:=", <SeparatorInfo>,

"ValueProp:=", <ValueInfo>,

"MenuProp:=", <MenuInfo>],

["NAME:Properties", Any combination of the following:

"CheckboxProp:=", <CheckBoxInfo>,

"TextProp:=", <TextInfo>,

"NumberProp:=", <NumberInfo>,

"SeparatorProp:=", <SeparatorInfo>,

"ValueProp:=", <ValueInfo>,

"MenuProp:=", <MenuInfo>,

"VPointProp:=", <VPointInfo>,

"PointProp:=", <PointInfo>],

["Quantities",

"QuantityProp:=", <QuantityPropInfo>...],

["NAME:CosimDefinitions",

<CosimDefInfo>,

<CosimDefInfo>...]]

Python Example

oComponentManager.Add(

[

"NAME:Component",

"Info:=", [

"Type:=", 0,

"NumTerminals:=", 0,

"DataSource:=", "",

"ModifiedOn:=", 1467910752,

"Manufacturer:=", "",

"Symbol:=", "Component",

"ModelNames:=", "",

"Footprint:=", "",

"Description:=" , "",

"InfoTopic:=", "",

"InfoHelpFile:=", "",

"IconFile:=", "",

"Library:=", "",

"OriginalLocation:=", "Project",

"IEEE:=", "",

"Author:=", "",

"OriginalAuthor:=", "",

"CreationDate:=", 1467910746,

"ExampleFile:=", ""],

"Refbase:=", "U",

"NumParts:=", 1,

"ModSinceLib:=", True,

"CompExtID:=", 2

])