Script overview
Component name | VRML generator | Footprint generator |
Radial capacitor – polarized | radial-cp.pl | fp-radial.pl |
VRML Model generators
|
|
Variable reference |
LEAD_COLOR | Color of metal leads |
BODY_COLOR | Color of capacitor body |
CAP_COLOR1 | Color of top cap |
CAP_COLOR2 | Color of bottom cap |
LABEL_COLOR | Label color |
LABEL1 | 1st line of label; if not defined, label is not displayed |
LABEL2 | 2nd line of label; if not defined, label is not displayed |
LABEL_SIZE1 | Relative label size, 1st line |
LABEL_SIZE2 | Relative label size, 2nd line |
|
|
radial-cp.pl [-?] [-d] [-v|-h|-hu|-hd] H D L d [k] [M] [t] [b]
Options:
-?,--help - this help screen
-d,--debug - display debug coordinates and planes
-v,--vertical - vertical mount style (default)
-h,--horizontal - horizontal mount style (up side)
-hu,--horizontal-up - horizontal mount style (swing up)
-hd,--horizontal-down - horizontal mount style (swing down)
Parameters:
H - Total height
D - Outer diameter
L - Lead distance
d - Lead diameter
Optional parameters:
k - elevation
M - Inner lead distance
t - additional elevation (for horizontal mount only)
b - body elevation (for horizontal mount only)
|
Footprint generator
|
fp-radial.pl [-?] [-m] [-M] [-rb|-ab] [-r|-c|-p|-l|-x] [-v|-h|-hu|-hd] nm C X d R1 R2 [W] [cx] [mx] [rd]
Options:
-?,--help - this help screen
-m,--manual-soldering - adjust pad size for manual soldering
-M,--manual-drill - adjust drill diameter for manual PCB fabrication
-rb,--round-body - round body type
-ab,--angular-body - rectangular body type
-r,--resistor - resistor
-c,--capacitor - capacitor
-p,--polarized-capacitor - polarized capacitor
-l,--led - LED
-x,--crystal - crystal
-v,--vertical - vertical mount style (default)
-h,--horizontal - horizontal mount style (up side)
-hu,--horizontal-up - horizontal mount style (swing up)
-hd,--horizontal-down - horizontal mount style (swing down)
Parameters:
nm - footprint name
C - distance of pin centers
X - height/diameter of pin
d - finished hole diameter
R1 - silkscreen width/diameter
R2 - silkscreen height
Optional parameters:
W - lead offset
cx - clearance
mx - mask
rd - reference designator
|
Dimensions
Note: The lead offset (W) is not implemented in all 3D models