twitter youtube facebook linkedin email
Connect with:

AUTOCAD BLOG

Bootstrap AutoCAD Deployments for Customizations (7)

R. Robert Bell
February 19, 2016

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

KEEP UP WITH AUTOCAD

   

Try AutoCAD Now

AutoCAD Blog Free Trial

Questions?

Have subscription pricing questions? Check out our Subscription info page.

Need to find a service pack for a legacy version of AutoCAD? Our Downloads page has everything you need.

Running into a problem? Our Troubleshooting site should be able to help.

Getting started? Download a free trial of AutoCAD, AutoCAD LT, or AutoCAD Mobile!

Check Out AutoCAD 2018.1

R. Robert Bell

A longtime AUGI director—and the organization’s current President—Robert has been active in the MEP industry for over 25 years and an AutoCAD user since version 2.18. He provides strategic direction, technical oversight, and high-level support for Stantec. Follow him on Twitter @r_robert_bell.

0 Comments;