Resistor

Description: Draws three types of resistors, "Basic" || "Variable" || "InLine". The "Basic" resistor is the standard resistor that can be rotated 0 or 90 degrees. The "Variable" is a standard variable resistor that can be rotated 0, 90, 180, or 270 degrees. When rotated, the "Wiper" changes position around the resistor body. The "InLine" resistor is a "Two Teminal" variable resistor. Physically, the "InLine" resistor may be a three terminal variable resistor, where only two of the pins are used.

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
R1
1,000 Ω
Lib_S_RefDes Reference Designator in quotes.
("R1" || "R2" || "R3", etc.)
Select from the dropdown menu.
|| Other:
Lib_S_Type Resistor Type in quotes
("Basic" || "Variable" || "InLine" || "Zero_Ohm").
Select from the dropdown menu.
Lib_S_Value Value in quotes ("10" || "100" || "100Ω/5W", etc.). Select from the dropdown menu.
|| Other:
Lib_S_Label Text label. Label for "Variable" and "InLine" only || Other:
Lib_S_Label_Pos RefDes/Value Position ("Norm" || "Flip"). Select from the dropdown menu.
Lib_S_Rot Rotation angle.
Basic && InLine = "R0" || "R90",
Variable = "R0" || "R90" || "R180" || "R270"
Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Basic" resistor, the Start_X/Y and End_X/Y are returned.
    For the "Variable" resistor, the Top_X/Y, Bottom_X/Y, and Wiper_X/Y are returned.
    For the "InLine" variable resistor, the Start_X/Y and End_X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw R1
R1_Rtn = Resistor( Dwg_Obj, "Basic", "R1", "1,000 Ω Ω", "", "Norm", "R0", Start_X, Start_Y );
R1_Start_X = R1_Rtn[0]; R1_Start_Y = R1_Rtn[1]; R1_End_X = R1_Rtn[2]; R1_End_Y = R1_Rtn[3];


Capacitor

Description: Draws a Capacitor of Type Basic, Electrolytic, or Variable based on Lib_S_Type ("Basic" || "Elect" || "Var" ). Lib_S_Orient specifies the symbol orientation ("R0" = Vertical || "R90" = Right || "R180" = Bottom || "R270" = Left ). Lib_S_Label specifies the Reference Designator ("C1" || "C2") and Lib_S_Value specifies the Part Value ("100 uF" || "10 uF" || "0.1 uF" || "" ).

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
C1
1000 pF
Lib_S_RefDes Reference Designator in quotes.
("C1" || "C2" || "C3", etc.)
Select from the dropdown menu.
|| Other:
Lib_S_Value Text Value in quotes
("100 uF" || "10 uF" || "0.1 uF" || "" ).
Select from the dropdown menu.
|| Other:
Lib_S_Type Text Value in quotes
("Basic" || "Elect" || "Var" ).
Lib_S_Rot Text Value in quotes
("R0" || "R90" || "R180" || "R270" ).
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Start_Y Symbol Start Y Position

Note: A Lib_S_Rot value of "R180" || "R270" will swap the RefDes and Value locations.

Return: The Start_X/Y and End_X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw C1
C1_Rtn = Capacitor( Dwg_Obj, "Basic", "R0", "C1", "1000 pF", Start_X, Start_Y );
C1_Start_X = C1_Rtn[0]; C1_Start_Y = C1_Rtn[1]; C1_End_X = C1_Rtn[2]; C1_End_Y = C1_Rtn[3];


Feed-Through Capacitor

Description: Draws a Feed_Through Capacitor of Type Basic, Electrolytic, or Variable based on Lib_S_Type ("Basic" || "Elect" || "Var" ). Lib_S_Orient specifies the symbol orientation ("R0" = Vertical || "R90" = Right || "R180" = Bottom || "R270" = Left ). Lib_S_Label specifies the Reference Designator ("C1" || "C2") and Lib_S_Value specifies the Part Value ("100 uF" || "10 uF" || "0.1 uF" || "" ).

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
C1
1000pF
Lib_S_RefDes Reference Designator in quotes.
("C1" || "C2" || "C3", etc.)
Select from the dropdown menu.
|| Other:
Lib_S_Value Text Value in quotes
("100 uF" || "10 uF" || "0.1 uF" || "" ).
Select from the dropdown menu.
|| Other:
Lib_S_Type Text Value in quotes
("Basic" || "Elect" || "Var" ).
Lib_S_Rot Text Value in quotes
(R0 || R90 || R180 || R270 ).
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Start_Y Symbol Start Y Position

Note: A Lib_S_Rot value of "R180" || "R270" will swap the RefDes and Value locations.

Return: The Start_X/Y and End_X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw C1 Feed-Through
C1_Rtn = Feed_Through( Dwg_Obj, "Basic", "R0", "C1", "1000pF", Start_X, Start_Y );
C1_Lt_X = C1_Rtn[0]; C1_Lt_Y = C1_Rtn[1]; C1_Rt_X = C1_Rtn[2]; C1_Rt_Y = C1_Rtn[3]; C1_Gnd_X = C1_Rtn[4]; C1_Gnd_Y = C1_Rtn[5];

Fixes Required for the Capacitor Library

These are items that are still outstanding in the Capacitor Library. When they are fixed, they will be removed.

  • The annotation flip (Basic_Flip and Elect_Flip) only works properly for rotations of "R0" and "R180". Need to fix rotations of "R90" and "R270".


Inductor

Description: Draws a Basic Inductor with 1, 2, 3, or 4 180° arcs or loops (Lib_S_Type = "Basic1" || "Basic2" || "Basic3" || "Basic4" ).

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
L1
100uH
Lib_S_RefDes Reference Designator.
"L1" || "L2" || "L3"
Select from the dropdown menu.
|| Other:
Lib_S_Core, Lib_S_Type, Lib_S_Rot Text Value. Core, Type, Rotation
, ,
Lib_S_Value Text Value.
"100 uH" || "10 uH" || etc.
Select from the dropdown menu.
|| Other:
Lib_S_Pos Label/Value Position. "Norm" || "Flip"
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: The draw function will return the end X and Y values for the symbol, in a array.

Usage: Set the start X and Y values for the symbol. The draw function will return the end X and Y values as a array. Change all of the variable prefixes, e.g. L1 to L2, for each instance of the symbol. This keeps the variables unique for later use.

// Draw L1
L1_Rtn = Inductor( Dwg_Obj, "L1", "Iron", "L3", "R0", "100uH", "Norm", Start_X, Start_Y );
L1_Start_X = L1_Rtn[0]; L1_Start_Y = L1_Rtn[1]; L1_End_X = L1_Rtn[2]; L1_End_Y = L1_Rtn[3];


Ferrite Bead

Description: Draws a Ferrite_Bead.

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
FB1
500mA
220Ω@
120MHz
Lib_S_RefDes Reference Designator in quotes.
("FB1" || "FB2" || "FB3", etc.)
Select from the dropdown menu.
|| Other:
Lib_S_Value Text Value in quotes. Resistance (R) @ F (MHz), Current (I)
@ ,
Lib_S_Rot Text Value in quotes
("R0" || "R90" || "R180" || "R270" ).
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Start_Y Symbol Start Y Position

Note: A Lib_S_Rot value of "R180" || "R270" will swap the RefDes and Value locations.

Return: The Start_X/Y and End_X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw FB1
FB1_Value = [ "220Ω", "120MHz", "500mA" ];
FB1_Rtn = Ferrite_Bead( Dwg_Obj, "FB1", "FB1_Value", "R0", "Start_X, Start_Y );
FB1_Start_X = FB1_Rtn[0]; FB1_Start_Y = FB1_Rtn[1]; FB1_End_X = FB1_Rtn[2]; FB1_End_Y = FB1_Rtn[3];


Transformer

Description:

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
T1
120 VAC : 24 VAC
Lib_S_RefDes Reference Designator. Select from the dropdown menu ⇒
Lib_S_In_V && Lib_S_In_CT
Primary Voltage 120 VAC 240 VAC
Primary Type No Center Tap Center Tap Dual Primary
Lib_S_Out_V && Lib_S_Out_CT
Secondary Voltage
24 VAC 18 VAC 12.6 VAC 10 VAC 6.3 VAC
Secondary Center Tap No Center Tap Center Tap
Lib_S_Pos (Not Implemented)
RefDes/Value Position Norm Flip
Lib_S_Rot (Not Implemented)
Rotation Angle R0 R90 R180 R270
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return:

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw T1
Trans_Info = [ "120 VAC", "No_CT", "24 VAC", "No_CT" ];
T1_Ret = Transformer ( Dwg_Obj, "T1", Trans_Info, "Norm", "R0", Start_X, Start_Y );
T1_PA_X = T1_Ret[0]; T1_PA_Y = T1_Ret[1]; T1_PB_X = T1_Ret[2]; T1_PB_Y = T1_Ret[3];
T1_SA_X = T1_Ret[4]; T1_SA_Y = T1_Ret[5]; T1_SB_X = T1_Ret[6]; T1_SB_Y = T1_Ret[7];


Motor

Description:

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
M1
Lib_S_RefDes Reference Designator. Select from the dropdown menu ⇒
Lib_S_Type Motor Type. Select from the dropdown menu ⇒
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return:

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw M1
M1_Ret = Motor ( Dwg_Obj, "M1", "Split_Phase", M1_Center_X, M1_Center_Y );
M1_P1A_X = M1_Ret[0]; M1_P1A_Y = M1_Ret[1]; M1_P1B_X = M1_Ret[2]; M1_P1B_Y = M1_Ret[3];
M1_P2A_X = M1_Ret[4]; M1_P2A_Y = M1_Ret[5]; M1_P2B_X = M1_Ret[6]; M1_P2B_Y = M1_Ret[7];


Meter

Description:

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
M1
100uA
>=700Ω
+
Lib_S_RefDes Reference Designator. Select from the dropdown menu ⇒
Lib_S_I Meter Current in quotes.
(e.g. "100µA")
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_R Meter Resistance in quotes.
(e.g. ">=700Ω")
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Rot Rotation angle in quotes.
("R0" (Horiz) || "R90" (Vert))
Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return:

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw M1
M1_Ret = Meter ( Dwg_Obj, "M1", "100uA", ">=700Ω", "R0", Start_X, Start_Y );
M1_Plus_X = M1_Ret[0]; M1_Plus_Y = M1_Ret[1]; M1_Minus_X = M1__Ret[2]; M1_Minus_Y = M1_Ret[3];

Fuse

Description: Instantiate a Fuse symbol. The symbol can be oriented horizontally or vertically. A Reference Designator and a Value can be positioned: Horizontal = "" || "Over" || "Under" || "Split", Vertical = "" || "Left" || "Right".

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
F1
10A
Lib_S_RefDes Reference Designator in quotes.
("F1" || "F2", etc.)
Select from the dropdown menu.
Lib_S_Value Value in quotes.
("1A" || "10A" || "0.1A", etc.)
Select from the dropdown menu.
Lib_S_Label_Pos Position for RefDes/Value in quotes. Horizontal = "" || "Over" || "Under" || "Split",
Vertical = "" || "Left" || "Right"
Lib_S_Rot Rotation angle in quotes.
("R0" (Horiz) || "R90" (Vert))
Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Fuse", the Start_X/Y and End_X/Y are returned.
    For the "Horizontal" fuse ("R0"), Start_X/Y = Left side and End_X/Y = Right side.
    For the "Vertical" fuse ("R90"), Start_X/Y = Top and End_X/Y = Bottom.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw F1
F1_Rtn = Fuse( Dwg_Obj, "F1", "10A", "Over", "R0", F1_Center_X, F1_Center_Y );
F1_Start_X = F1_Rtn[0]; F1_Start_Y = F1_Rtn[1]; F1_End_X = F1_Rtn[2]; F1_End_Y = F1_Rtn[3];


Neon Lamp

Description: Instantiate a Neon Lamp symbol. The symbol can be oriented horizontally or vertically. A Reference Designator and a Value can be positioned: Horizontal = "" || "Over" || "Under" || "Split", Vertical = "" || "Left" || "Right".

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
PL1
412-15
Lib_S_RefDes Reference Designator in quotes.
("PL1" || "PL2" || "PL3", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Value Value in quotes.
("412-15", "90V", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Label_Pos Position for RefDes/Value in quotes. Horizontal = "Over" || "Under" || "Split",
Vertical = "Left" || "Right"
Lib_S_Rot Rotation angle in quotes.
("R0" (Horiz) || "R90" (Vert))
Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Neon", the Start_X/Y and End_X/Y are returned.
    For the "Horizontal" fuse ("R0"), Start_X/Y = Left side and End_X/Y = Right side.
    For the "Vertical" fuse ("R90"), Start_X/Y = Top and End_X/Y = Bottom.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw PL1
PL1_Rtn = Neon_Lamp( Dwg_Obj, "PL1", "412-15", "Over", "R90", Start_X, Start_Y );
PL1_Start_X = PL1_Rtn[0]; PL1_Start_Y = PL1_Rtn[1]; PL1_End_X = PL1_Rtn[2]; PL1_End_Y = PL1_Rtn[3];


Circuit Breaker

Description: Instantiate a Circuit Breaker symbol. The symbol can be oriented horizontally or vertically. A Reference Designator and a Value can be positioned: Horizontal = "" || "Over" || "Under" || "Split", Vertical = "" || "Left" || "Right".

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
CB1
10A
Lib_S_RefDes Reference Designator in quotes.
("CB1" || "CB2" || "CB3", etc.)
Select from the dropdown menu.
Lib_S_Value Value in quotes.
("1A" || "10A" || "0.1A", etc.)
Select from the dropdown menu.
Lib_S_Pos Position for RefDes/Value in quotes.
"" || "None" || "Flip"
Select from the dropdown menu.
Lib_S_Rot Rotation angle in quotes.
"R0" (Horiz) || "R90" (Vert))
Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Circuit Breaker", the CB_In_X/Y and CB_Out_X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw CB1
CB1_Rtn = Ckt_Breaker( Dwg_Obj, "CB1", "10A", "", "R0", Start_X, Start_Y );
CB1_In_X = CB1_Rtn[0]; CB1_In_Y = CB1_Rtn[1]; CB1_Out_X = CB1_Rtn[2]; CB1_Out_Y = CB1_Rtn[3];


LM78xx Positive Voltage Regulator

Description: Instantiate a LM78xx Style Three Terminal Regulator symbol.

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
VI
VO
GND
U1
LM7805
Lib_S_RefDes Reference Designator in quotes.
("U1" || "U2", etc.)
Select from the dropdown menu.
Lib_S_Value Regulator Output Voltage ("05", "L05", "06", "08", 
"09", "L09", "10", "12", "L12", "15", "L15", "18", "24").
Not all voltages have a "L" equivalent.
Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "LM78_Reg", the Voltage Input X/Y, Voltage Output X/Y, and Ground X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U1
U1_Rtn = LM78_Reg( Dwg_Obj, "U1", "05", Start_X, Start_Y );
U1_VIn_X=U1_Rtn[0]; U1_VIn_Y=U1_Rtn[1]; U1_VOut_X=U1_Rtn[2]; U1_VOut_Y=U1_Rtn[3]; U1_VGnd_X=U1_Rtn[4]; U1_VGnd_Y=U1_Rtn[5];


LM79xx Negative Voltage Regulator

Description: Instantiate a LM79xx Style Three Terminal Positive Voltage Regulator symbol.

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
VI
VO
GND
U1
LM7905
Lib_S_RefDes Reference Designator in quotes.
("U1" || "U2", etc.)
Select from the dropdown menu.
Lib_S_Value Regulator Output Voltage ("05", "L05", "06", "08", 
"09", "L09", "10", "12", "L12", "15", "L15", "18", "24").
Not all voltages have a "L" equivalent.
Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "LM79_Reg", the Voltage Input X/Y, Voltage Output X/Y, and Ground X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U1
U1_Rtn = LM79_Reg( Dwg_Obj, "U1", "05", Start_X, Start_Y );
U1_VIn_X=U1_Rtn[0]; U1_VIn_Y=U1_Rtn[1];> U1_VOut_X=U1_Rtn[2]; U1_VOut_Y=U1_Rtn[3]; U1_VGnd_X= U1_Rtn[4]; U1_VGnd_Y=U1_Rtn[5];


Texas Instruments LM Positive/Negative Voltage Regulator

Description: Instantiate a Texas Instruments LM Style Three Terminal Regulator symbol.

Parameter Description Example
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
VI
VO
GND
U1
LM109H
Lib_S_RefDes Reference Designator in quotes.
("U1" || "U2", etc.)
Select from the dropdown menu.
Lib_S_Value Regulator Type. Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "LM78_Reg", the Voltage Input X/Y, Voltage Output X/Y, and Ground X/Y are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U1
U1_Rtn = LMTI_Reg( Dwg_Obj, "U1", "LM109H", Start_X, Start_Y );
U1_VI_X=U1_Rtn[0]; U1_VI_Y=U1_Rtn[1]; U1_VO_X=U1_Rtn[2]; U1_VO_Y= U1_Rtn[3]; U1_GND_X=U1_Rtn[4]; U1_GND_Y=U1_Rtn[5];


Op-Amp

Description: Instantiate a Op-Amp symbol. Options are available for including power wires, the reversing of the +/- input pins, and switching the symbol from right to left facing.

Note: As this is a generic Op-Amp, no pin numbers will be displayed. This may be added at a later date.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
U1A
LM393
+
4
3
2
Lib_S_RefDes Reference Designator in quotes.
("U1" || "U2", etc.)
Select from the dropdown menu.
Lib_S_Type Type of Op Amp ("LM741", "UA741", etc.). Select from the dropdown menu.
Lib_S_Section Show Op Amp Power and Ground
( A Only | B Only | A w/Power | B w/Power | w/Power_Pins | No_Power_Pins | Power_Only )
Select from the dropdown menu.
Lib_S_Inputs Show Inputs with "+" above the "−" (Norm)
or with the "−" above the "+" (Rev).
Select from the dropdown menu.
Lib_S_Dir Facing direction. "Right" || "Left". Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Op_Amp", the X/Y coordinates for Minus Input, Plus Input, Output, V+, and V- are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw U1
U1_Rtn = Op_Amp( Dwg_Obj, "U1", "LM393", "A_Only", "In_Norm", Right", Start_X, Start_Y );
U1_N_X = U1_Rtn[0]; U1_N_Y = U1_Rtn[1]; >U1_P_X = U1_Rtn[2]; U1_P_Y = U1_Rtn[3]; U1_Out_X = U1_Rtn[4]; U1_Out_Y = U1_Rtn[5];


Battery

Description: Instantiate a Battery symbol. Options are available for specifying the Battery Voltage and Battery display (Vertical/Horizontal display and +/- orientation). Return values are adjusted according to the display options selected.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
B4
12V
+
Lib_S_RefDes Reference Designator in quotes.
("B1" || "B2" || "B3", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Value Value in quotes.
("1.5V", "3V", "9V", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Pos Battery/Positive position in quotes.. ("Vert_Plus" || "Vert_Minus" || "Horiz_Plus" || "Horiz_Minus")
Lib_S_Label_Pos Position for RefDes/Value in quotes. ("" || "Norm" || "Flip")
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Battery", the X/Y coordinates for Battery Plus and Battery Minus are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw B4
B4_Rtn = Battery( Dwg_Obj, "B4", "12V", "Vert_Minus", "Norm", Start_X, Start_Y );
B4_P_X = B4_Rtn[0]; B4_P_Y = B4_Rtn[1]; B4_N_X = B4_Rtn[2]; B4_N_Y = B4_Rtn[3];


Crystal

Description: Instantiate a Crystal symbol. Options are available for specifying the Reference Designator, Crystal Frequency and Crystal display orientation (Vertical/Horizontal). On the Vertical Crystal, the Reference Designator and Crystal Frequency can be moved from right to left. Return values are adjusted according to the display options selected.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
X4
7.035 MHz
Lib_S_RefDes Reference Designator in quotes.
("X1" || "X2" || "X3", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Value Value in quotes.
("1 MHz", "100 MHz", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Label_Pos Position for RefDes/Value in quotes. ("" || "Norm" || "Flip")
Lib_S_Rot Rotation angle, in quotes. ("R0", "R90")
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Crystal", the X/Y coordinates for Top and Bottom (Vertical) or Left and Right (Horizontal) are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw X4
X4_Rtn = Crystal( Dwg_Obj, "X4", "7.035 MHz", "Norm", "R0", Start_X, Start_Y );
X4_Top_X = X4_Rtn[0]; X4_Top_Y = X4_Rtn[1]; X4_Bot_X = X4_Rtn[2]; X4_Bot_Y = X4_Rtn[3];


Electret Microphone Element

Description: Instantiate a Crystal symbol. Options are available for specifying the Reference Designator, Crystal Frequency and Crystal display orientation (Vertical/Horizontal). On the Vertical Crystal, the Reference Designator and Crystal Frequency can be moved from right to left. Return values are adjusted according to the display options selected.

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
+
-
~
M1
Lib_S_RefDes Reference Designator in quotes.
("M1" || "M2" || "M3", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Type Value in quotes.
("Two Lead", "Three Lead", etc.)
Select from the dropdown menu or enter your own.
Lib_S_Pos Position for RefDes/Value in quotes. ("" || "Norm" || "Flip")
Lib_S_Rot Rotation angle, in quotes. ("R0", "R90", "R180", "R270")
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Crystal", the X/Y coordinates for Top and Bottom (Vertical) or Left and Right (Horizontal) are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw M1
M1_Rtn = Electret( Dwg_Obj, "M1", "Three", "Norm", "R0", Start_X, Start_Y );
M1_Pwr_X=M1_Rtn[0]; M1_Pwr_Y=M1_Rtn[1]; M1_Aud_X=M1_Rtn[2]; M1_Aud_Y=M1_Rtn[3]; M1_Gnd_X= M1_Rtn[4]; M1_Gnd_Y=M1_Rtn[5];


Speaker

Description:
// Draw a speaker from Start_X,Start_Y and return End_X, End_Y
// Lib_S_Orient = Orientation ("R0" = Left || "R90" = Down || "R180" = Right || "R270" = Up )
// Lib_S_Inv = Inversion ("Norm" = Normal || "Flip" = Flips the input +/- )
// Lib_S_RefDes = Reference Designator ("SP1" || "SP2")
// Lib_S_Value = Part Value ("8 Ohms" || "18 Ohms" || "" )
// Returns the endpoint locations for the "+" and "-" inputs.

function Speaker( Lib_S_Dwg_Obj, Lib_S_Orient, Lib_S_Inv, Lib_S_RefDes, Lib_S_Value, Lib_S_Start_X, Lib_S_Start_Y ) {

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
SP1
+
-
Lib_S_RefDes Reference Designator in quotes.
("SP1" || "SP2" || "SP3", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Value Value in quotes.
("4Ω", "8Ω", etc.)
Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Pos Position for +/- input pins. ("" || "Norm" || "Flip")
Lib_S_Rot Rotation angle, in quotes.
(Not Implemented yet.)
("R0", "R90", "R180", "R270")
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Speaker", the X/Y coordinates for Positive and Negative terminals are returned.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw SP1
SP1_Rtn = Speaker( Dwg_Obj, "R0", "Norm" "SP1", "8Ω", SP1_Center_X, SP1_Center_Y );
SP1_Plus_X = SP1_Rtn[0]; SP1_Plus_Y = SP1_Rtn[1]; SP1_Minus_X = SP1_Rtn[2]; SP1_Minus_Y = SP1_Rtn[3];


Morse Code Key

Description:
// Draw a Morse Code Key from Start_X,Start_Y and return End_X, End_Y
// Lib_S_RefDes = Reference Designator ("K" || "K2")
// Lib_S_Type = Type ("Straight", "Single Paddle", "Dual Paddle", "Heath Paddle" )
// Lib_S_Swap = Swap ("None" || "Swap" )
// Lib_S_Dir = Direction ("Right" || "Left" )
// Returns the endpoint locations for the key connections.

CW_Key( Lib_S_Obj, Lib_S_RefDes, Lib_S_Type, Lib_S_Swap, Lib_S_Dir, Lib_S_Start_X, Lib_S_Start_Y )

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
Dot
Dash
Dual Paddle
K1
Lib_S_RefDes Reference Designator in quotes.
("K1" || "K2" || "K3", etc.)
Select from the dropdown menu.
Lib_S_Type Value in quotes.
("Straight", "Single Paddle", "Dual Paddle", "Heathkit Paddle".)
Select from the dropdown menu.
Lib_S_Swap Dot/Dash Swap. Single, Dual, & Heathkit Only ("None", "Swap")
Lib_S_Dir Direction. (Not Implemented Yet) ("Right", "Left")
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: Returns the endpoint locations for the key connections. For a "Straight" key, there are two (2) return coordinate pairs. For all others there are three (3) return coordinate pairs.

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw K1
K1_Rtn = Code_Key( Dwg_Obj, "K1", "Dual", "None", "Left", K1_Center_X, K1_Center_Y );
K1_Dot_X=K1_Rtn[0]; K1_Dot_Y=K1_Rtn[1]; K1_Dash_X=K1_Rtn[2]; K1_Dash_Y=K1_Rtn[3]; K1_Com_X=K1_Rtn[4]; K1_Com_Y=K1_Rtn[5];

Loading Coil

Description: Instantiate a Loading Coil symbol. The symbol can be oriented horizontally or vertically.

The normal position for the RefDes and Label is on the Right, for "R90" and "R270". For "R0" and "R180", the RefDes and Label are on Top. This can be switched by changing "Lib_S_Pos" from "Norm" to "Flip".

The Loading Coil contains two connection points, one at each end. The location depends on the rotation angle. Rotation is Counter Clock Wise (CCW) from 0° (R0).

ParameterDescriptionExample
Lib_S_Dwg_Obj Graphics Object that points to the drawing.
L1
Loading
Lib_S_RefDes Reference Designator, in quotes. Select from the dropdown menu.
Lib_S_Label Value, in quotes. Select from the dropdown menu or enter your own.
|| Other:
Lib_S_Pos Position for RefDes/Label in quotes. Select "Norm" || "Flip":
Lib_S_Rot CCW Rotation angle, in quotes. Select from the dropdown menu.
Lib_S_Center_X Symbol Center X Position Show/Hide Grid (10x10), Center Mark, Pins (green dot).
Grid
On
Off
Center
On
Off
Pins
On
Off
Lib_S_Center_Y Symbol Center Y Position

Return: For the "Loading Coil", the Start_X/Y and End_X/Y are returned.
    For the "R0", Start_X/Y = Left side and End_X/Y = Right side.
    For the "R90", Start_X/Y = Bottom and End_X/Y = Top.
    For the "R180", Start_X/Y = Right and End_X/Y = Left.
    For the "R270", Start_X/Y = Top and End_X/Y = Bottom

Usage: The selections from the table above, are used to create the example below. After selecting and entering your specific information, the example can be used directly, with a copy/paste. The items in Red are the only ones that need to be adjusted to your specific needs. The lines in Green are just comments and can be deleted. Due to space limitations, some of the lines below may be split onto more than one line.

// Draw the symbol.
L1_Rtn = Loading_Coil( Dwg_Obj, "L1", "Loading", "Norm", "R0", L1_Center_X, L1_Center_Y );
L1_In_X = L1_Rtn[0]; L1_In_Y = L1_Rtn[1]; L1_Out_X = L1_Rtn[2]; L1_Out_Y = L1_Rtn[3];