Bootstrap AutoCAD Deployments for Customizations (7)

CAD Management

By R. Robert Bell

And you thought you’d heard the last about bootstrapping your AutoCAD® deployments! In a way, you have. Unlike my last post (Bootstrap AutoCAD Deployments for Customizations Part 6) this bonus post concerns AutoCAD-based products such as AutoCAD Civil 3D and AutoCAD MEP. Many of these products sport a Content Browser, which is where many of you will support custom catalogs. To make sure those catalogs are loaded, you can add them to the bootstrap. See how nicely it all ties together?

A quick note about republishing catalogs

Republishing catalogs can keep them small and efficient. But I have found it’s usually best to publish a catalog only once per AutoCAD version. That’s because republishing changes the catalog’s globally unique identifier (GUID, pronounced “gwid” or “goo-id”), which makes it difficult to refresh catalog updates.

My recommendation: Publish your previous catalog to a new, version-specific location with each new release, and update the catalog for the new version without republishing.

How to gather the needed catalog information

Before you can bootstrap the loading of the catalog in the Content Browser, you need to gather data—all of which, thankfully, can be found in the Content Browser itself after you publish the catalog to its final destination.

You’ll need:

  • Registry key
  • ItemID (this is the GUID)
  • Image
  • URL
  • DisplayName
  • Description
  • CoverPage
  • Publisher
  • Tooltip

The easiest way to find this data is by exporting the catalog to a registry file. Just:

  1. Launch the Content Browser
  2. Hold down the Shift key
  3. Right-click the catalog
  4. Select the Convert to Registry File item; see Figure 1
Publish AutoCAD-based product catalog data in a bootstrapped deployment.

Figure 1: Export the catalog data to a registry file.

You’ve exported the catalog data. Now what?

Open the registry file in a text editor. If you accidentally double-click the .reg file, Windows may ask if you want to merge the registry file. Select “No” and open the file from your text editor. Don’t worry if you accidentally selected “Yes” to the merge question; it won’t mess up anything because, in this case, the information came from the registry.

Note: Don’t double-click any .reg file and merge unless you know what you are doing!

All the information you need is in the registry file. See Figure 2. You’ll simply copy and paste the relevant parts—only the registry key, which requires double backslashes, needs editing—directly into a batch of (wait for it) new bootstrap code.

Catalog data in a sample registry file. Bootstrap AutoCAD deployments for customization.

Figure 2: Sample registry file with catalog information.

Next up: Bootstrap AutoCAD Deployments for Customizations (8)

I’ll provide the bootstrap code and explain how it works in my next—and final! Promise!—bootstrapping post. See you next week!

Here’re all the previous installments:

Bootstrap AutoCAD Deployments for Customizations Part 1

Bootstrap AutoCAD Deployments for Customizations Part 2

Bootstrap AutoCAD Deployments for Customizations Part 3

Bootstrap AutoCAD Deployments for Customizations Part 4

Bootstrap AutoCAD Deployments for Customizations Part 5

Bootstrap AutoCAD Deployments for Customizations Part 6

Try AutoCAD free for 30 days

Related Articles

Comments Closed

No comments yet

    The AutoCAD Blog is all about helping you get the most out of AutoCAD. It's also the best way for you to connect with the makers of AutoCAD.

    Subscribe to keep up with AutoCAD