Download LCRLibraryGeneratorX 0.3.0 and DesignWorks for Macintosh OSX
Requires MAC OS X 10.4.11 or laterLCR_Library_Generator_files/LCR%20Lib%20GenX%20%26%20DW%20script.zip

LCR Library Generator is a pair of tools for DesignWorks Schematic Capture users to generate libraries for resistors, capacitors, and inductors. The first part, LCR Lib Gen, will generate a tab separated value file for a DesignWorks script; the second part, LCRLibGen.rfm, is a script to read and generate a schematic full of parts ready to be turned into a library using the CctToLib Tool. LCR Lib Gen can be used with any schematic capture package as long as the user has a way to import the data to their schematic libraries. If you, as the user, write such a script for your favorite schematic capture package, I ask you to email it, or a link to it, so I can include it on my site so others may have access to it. If you email one to me let me know how I should credit you.


LCR Lib Gen will manage up to 43 attributes for your library. This includes component part numbers, supplier name, vendor (distributor), device marking for up to three suppliers, web links, temperature info, Spice info, size, cost, pad count, and more. To get a better idea of all of my attributes, click here.


Using LCR Lib Gen is not hard, but if you are not careful, it is easy to generate a large amount of components with useless part numbers or other errors. Care must be taken to inspect a part number per decade of values for each manufacturer you included. This is so you know that the right number of significant digits was used, decimals are represented properly, etc. Take note that if you check a value on a site such as Avnet or Digi-Key (or most part sites) and it does not appear, the reason is that  sometimes parts are not on certain sites because the site may not add a part until it has been ordered (so that uncommon part numbers won’t be entered on the site). Click here for a list of parts search web sites. Your part might still exist, but just not be on that site yet.  Double check your data.  Everything you enter into an edit field should be thought out completely. Components can be generated with many standard value sequences from E6 to E192 as well as a 1-2-5 sequence. 5% resistors are E24 and 1% resistors are E96, inductors are often a hodgepodge, but are sometimes E6.


The “Prepend Lib Organizer” check box will add a 3 or 4 character code (exponent first, then mantissa) to the beginning of the library name so that a DesignWorks sort will put the components in proper value order.


If you want the library name to start with the device part number, check the “Prefix with Part Number” check box. The library name is the conditional concatenation of the Lib Organizer, Part Number, LibName Prefix, Value, and LibName Suffix.


Each of the three sources allows you to enter a manufacturer, part number, vendor, and the method for the actual part marking. Several manufacturers are available from the pop-up, or you may enter any manufacturer you wish. The part number is built from three fields; the prefix, a rule for the value, and the suffix. There is a field for a vendor (distributor) and a pop-up for the rule for the actual part marking. This pop-up gives examples of markings from the ones place into the ten thousands; i.e. “R002 R010 1R30 1001 3402 7504 4”  is used for part numbers that use “R” as a decimal in  numbers below 100 and use the first three digits as the value and the 4th digit is the number of added 0’s (R010 is .01 and 1001 is 1000). The 4 at the end is saying that there are four total digits, or three significant digits (usually used in 1%, or better, resistors).


Near the right is an “Area Calculator.” The length and width each have up to three dimensions that are summed, the two sums are multiplied and the next highest integer of the product is the answer. The three elements of the column are summed and are simply a convenience for the different dimensions and tolerances that are in data sheets, the answer is always the next highest integer. So for example, if you are using the 1206 pictured below, you would enter all the dimensions for total length in one column and the same for width in the other column, as pictured in the Area Calculator as shown to the right.

LCR Library Generator

Home > Robert_Rau.html
Electronics >Electronics.html

LCR Library Generator

email me.mailto:robertrau12@yahoo.com?subject=LCR%20Library%20Generator

When you have entered all the attributes you need to, return to the first window and click the Go button. The large edit field at the bottom of the window will display your output file. You may want to set the window width to fill the width of your screen to make it easier to inspect. Correct any edit fields that need correction and click Go again. Once you are satisfied with the results, save your file. The first nine lines are most of the data you entered. All the dimensions in the Area calculator are not saved, just the total area.


When you open a file, or drag and drop a file on LCR Generator, all the fields are populated, but the device list is not generated, you must still click the GO button. Below are the first seven values for a 1% resistor library.

Download LCRLibraryGeneratorWin 0.3.0 for Windows (no DesignWorks script yet)
Requires Windows 2000 through Windows VistaLCR_Library_Generator_files/LCR%20Lib%20GenWIN.zip
*_Param_A	4	1	10	1.0e6			True		 1%	R	Format 1.02	1
*_Source_1	Vishay	CRCW0201	10	FN	Avnet	0	R	
*_Source_2	Panasonic	ERJ1GEF	7		Avnet	0	Filler	Filler
*_Source_3			0			0	Filler	
*_Area_A	.6			.3			Filler	Filler
*_Static_1	0	PASS	RES	20090605	1	0.23	.264		.05568	.041	-55	125
*_Static_2	2	0	0	0	R0201R	3	R	Resistor,Surface Mount,0201,1%,+/- 200ppm	Robert Rau		
*_Static_3	http://www.vishay.com/docs/20035/dcrcwe3.pdf	http://www.vishay.com/docs/20035/dcrcwe3.pdf	http://www.vishay.com/docs/20035/dcrcwe3.pdf		Filler	Filler
*_Source_4		1		1		1	False
R1	-Z100 10.0	10.0 1%	10.0	Vishay	CRCW020110R0FN	Avnet		Panasonic	ERJ1GEF10R0	Avnet						10.0	1	R	
R2	-Z102 10.2	10.2 1%	10.2	Vishay	CRCW020110R2FN	Avnet		Panasonic	ERJ1GEF10R2	Avnet						10.2	1	R	
R3	-Z105 10.5	10.5 1%	10.5	Vishay	CRCW020110R5FN	Avnet		Panasonic	ERJ1GEF10R5	Avnet						10.5	1	R	
R4	-Z107 10.7	10.7 1%	10.7	Vishay	CRCW020110R7FN	Avnet		Panasonic	ERJ1GEF10R7	Avnet						10.7	1	R	
R5	-Z110 11.0	11.0 1%	11.0	Vishay	CRCW020111R0FN	Avnet		Panasonic	ERJ1GEF11R0	Avnet						11.0	1	R	
R6	-Z113 11.3	11.3 1%	11.3	Vishay	CRCW020111R3FN	Avnet		Panasonic	ERJ1GEF11R3	Avnet						11.3	1	R	
R7	-Z115 11.5	11.5 1%	11.5	Vishay	CRCW020111R5FN	Avnet		Panasonic	ERJ1GEF11R5	Avnet						11.5	1	R	http://www.vishay.com/docs/20035/dcrcwe3.pdfhttp://www.vishay.com/docs/20035/dcrcwe3.pdfhttp://www.vishay.com/docs/20035/dcrcwe3.pdfshapeimage_6_link_0shapeimage_6_link_1shapeimage_6_link_2

After you have saved your generated list, make a copy of the file named ‘attr.txt’ and place it in the same folder as the DesignWorks schematic you will use to make your library. Place a component in the schematic of the type you generated (resistor, capacitor, diode...) and make as many copies as there are values in your list. LCR reports how many devices are created, you must have the same number of components in your schematic. Now run the  LCR Lib Gen.rfm  script. You may want to create a new blank library. Under  the Tools menu in DesignWorks, select CctToLib, then, in the attribute popup, pick LibType and create your library. Make sure you go to Library Maintenance and sort your library to make it easier to find your devices. Click here for more stuff for DesignWorks.

Go to the Windows menu to select the Static Attributes window to enter the rest of the attributes. The bottom of this window is a mini web browser to help you find URLs for the four URL attributes.

Visit my other pages:

Electronic Design ToolsElectronics.html
Part Search links
Engineering Links for softwareLinks.html
SchematicsSchematics.html

Below the Area Calculator is your selected letter for the reference designator, and the starting number for the first reference designator. Under those fields are two Spice fields.

The Value Format popup selects the part of the partnumber that determines the value of the device. Care must be taken to make sure, for every decade, that you selected the proper format and that LCR Generator even has a correct format. See the options below.

See my DesignWorks page here.
See my Osmond PCB page here.DesignWorks1.htmlOsmond1.htmlLCR_Library_Generator_files/PartGen2DW-OZ.zipshapeimage_11_link_0shapeimage_11_link_1
Schematic CaptureSchematicCaptureLinks.html