![[Image]](../Images/ch_as_header2.jpg)
Some of you may remember that I've made reference to a technique for using Bookup data within Chess Assistant (CA). This article will describe how this is accomplished, with step by step instructions. The application of this technique requires Bookup Pro, since it is the only version of Bookup that supports PGN export of user books.
First I'll summarize the procedure before I get down to the details:
Detailed Description of the Procedure
The first step is to take a book that you've created in Bookup, and open it in Bookup 2000 Pro. Then go to the PGN menu and select "Export Book As A Game". In the screenshot below, I've opened a small book on the Colle opening and will export it to PGN.
![[bookup]](050/bookup.jpg)
You should then see a dialog come up that looks like the following:
![[export dialog]](050/bookup_export_dialog.jpg)
Make sure that the box titled "Export Comments" is checked. You don't need to fill in any of the other fields in the dialog, but you may want to change the location of the exported PGN file (hit the "PGN File..." button and change the location). After doing this, check the "OK" button. You should then see a progress dialog, which will disappear when the process is complete. In my case, the PGN file looked something like this.
Now start up your copy of Chess Assistant. Open the PGN file that you just created, and convert it to Chess Assistant format using the "Convert Base..." entry under the "Base" menu. This dialog is self explanatory and has good help available, so I won't go into the details of how to set this up. All I would caution is that if you are storing the new CA database and the PGN file in the same folder, then give the two databases different names. In this case, I called the new database Export2. In the picture below, the database to be converted (Export.pgn) is on the left hand side of the window (I added it using the "Add" button). And the output file is on the left hand side (specified using the "Browse" button).
![[convert database]](050/convert.jpg)
Now, double-click on the CA database that you just created (you should see it as an icon on the left hand side of the screen, in my case it is called Export2). Then select "Build the direct tree" from the "Dataset" menu. Note that there is also a command for building the direct tree under the file menu. You don't want to use this one, since it does not give you the option to import comments when you build the tree.
![[build the direct tree]](050/build_direct_tree.jpg)
Make sure you set up the dialog as I have shown above, with all the proper settings checked. "Max Moves" should be set to the depth of the deepest variation that is in the book. If you want to be sure that you get everything, you can specify a large number. Also, you want to make sure that "Variations" is set to "Include as positions". This option is necessary so that your repertoire is displayed in a useful way in the tree. Also make sure that "Include annotations is checked", with both "Long" and "Evaluations" checked as well. When you're sure everything is set properly, click on the "OK" button.
Now that you've got a direct tree that contains your Bookup repertoire, you can take this information and add it to the data already stored in your CA user book. To do this, select the "Tree" menu, then "Tree Operations", then "Join trees...". You should see a dialog box similar to the one shown below:
![[direct tree building dialog]](050/join_tree_dialog.jpg)
When you've got everything setup properly, click the "OK" button. In a second or two the operation should complete.
Ok, now what you have is a new tree that is a combination of the tree information that you've already created in CA, along with some additional new material from your Bookup tree. One of the best ways that I've found to use this information is to do a quick check of whether a particular opening variation is in one of my Bookup books or not. I do this by assigning a color highlight to the book information. Now I'll outline the procedure for doing that.
First off, go to the "Tools" menu, and select "Tree options...". You should see a dialog like the one below:
![[set colors for tree]](050/set_colors_for_tree.jpg)
Click on "Set colors for tree". You should see another dialog come up. Click on one of the colors (I like blue), and then click the browse button:
![[blue tree]](050/select_tree_color.jpg)
Then click on the "Browse" button, you should then see a file dialog, where you can specify the location of the tree you created previously (the one I named userbook_final):
![[tree color final setup]](050/final_setup_for_tree_color.jpg)
Click on the open button, then click "OK" on the tree color dialog. Do likewise with the tree options dialog. Now that you've set this up, moves that are present in your Bookup book will be shown in color whenever you've got a tree view open. For example, take a look at the game below:
![[color tree move example]](050/final_tree_view.jpg)
In this position, both ...e6 and ...b6 are in the Colle book that I used for this example, so they show up with a small blue square next to them. Using this technique, it is possible to see at a glance which moves are already in your repertoire, and which aren't. Additionally, you will notice that any text comments that were present in your Bookup book, will also appear in the comments column (not shown above). This is pretty cool, eh?
Optional Step
If you're confident that the operation went successfully (i.e. both the new and old information are present in the tree), you can close CA, delete userbook.hsh, and userbook.elm, and then rename userbook_final.elm and userbook_final.hsh to userbook.elm and userbook.hsh, respectively. You would then need to change your tree coloring setup so that it uses userbook.hsh.
Conclusion
Once you've done this a few times, you'll find that updating the userbook information is pretty fast. You can even set up a script for doing this if you want to. And the color information really helps you keep your book information up to date.
Incidentally - I worked on this article on and off for the past two years (!). I hope some of you find it helpful.