Changes

Working with the Parts Database & Device Manager

7 bytes removed, 03:55, 18 August 2015
/* Repairing the Parts Database and Creating & Merging Database Patches */
==Repairing the Parts Database and Creating & Merging Database Patches==
[[File:b2MAN_Fig226.png|thumb|600px| Creating a database patch in B2RF.Spice A/D Device Editor.]]There are times when you may inadvertently damage your parts database. The [[B2RF.Spice A/D]] [[installation]] folder contains a copy of the original parts database. You can always recover the original database by copying this ".MDB" file from the [[installation]] folder to the "Documents > b2spice" folder and changing its name to the default database file "parts.MDB". Every time you install a new version of [[B2.Spice A/D]], it will also install the newest version of the parts database. This is necessary because lots of new parts are constantly added to B2.Spice's standard parts database with every new release.
In the meantime, you may also have added your own devices, models and symbols to the parts database. When you install a new release or try to recover the original parts database, you also want to keep your own device entries to the database. You can do this in two different ways: by merging databases or by creating database patches. In the first method, you can make a copy of your current database and rename it to something different than "parts.mdb". After you install the new release with the new updated parts database, you can merge the new current database with your previously saved database. To do so, go to the Special Menu of the Device Editor and select "Merge External Database into Current Database...". This opens up the standard [[Windows]] Open Dialog, with the file extension set to ".MDB". Browse your folders to find the your previously save old database file and click the Open button to complete the merge process.
{{Note | Merging databases may take a considerable amount of time depending on the their size.}}
The second method of recovering old devices involves creating database patches. A database patch is a collection of devices, models and symbols that are stored together in a database file. If you keep track of the devices that you create and add to the parts database over time, then you can bring them together and save them as a database patch. Every time you install a new database, then you can merge the database patches into "parts.MDB". In this way, you can preserve your own devices. To create a database patch, go to the Special Menu of the Device Editor and select "Create Database Patch File...". A large dialog opens up, which allows you to select devices, models and symbols from the current parts database. Click on each Add button and the respective Select Dialog opens up. Browse the list and choose and add as many items as you like. Once your lists are complete, click the OK button. This opens up the standard [[Windows]] Save Dialog, with the file extension set to ".PAT". Choose a name for your new database patch and save it. To merge an existing database patch file to the current parts database, go to the Special Menu of the Device Editor and select "Apply Patch to Database...". The standard [[Windows]] Open Dialog opens up, with the file extension set to ".PAT". Browse your folders to find the desired database patch file and click the Open button to complete the merge process.
==Resolving SPICE Language Incompatibilities==
28,333
edits