Available with Production Mapping license.
The product library is used to store validation rules and field configuration rules for your data. Within the product library, your business rules are associated to a data model (which is essentially the schema of your data).
In this exercise, you will create a new database that will be your product library. You will also extract the schema of the editing sample data and use this to create a data model.
Exercise 1a: Creating a product library
A product library is a database that is used to store product information. For a database to be a product library, it must contain certain tables and feature classes. These tables will be automatically created in a database when you choose it as your product library. For this exercise you will point to an empty file geodatabase that will be used as the product library.
- Start ArcMap.
- On the main menu, click Customize > Toolbars > Production Editing.
- Click the Add Data button on the Standard toolbar.
- Navigate to the installation directory for the ProductLibrary tutorial directory and load the Features dataset and BuildingOwners table from the Edit_Sample.gdb.
- Click the Product Library button on the Production Editing toolbar.
The Product Library dockable window appears.
- Right-click Product Library and
click Select Product Library.
The Choose Product Library Workspace dialog box appears.
- Navigate to the <Install location> of the ProductLibrary tutorial directory and select the ProductLibrary.gdb.
This is an empty file geodatabase. To convert this database into a product library geodatabase, a number of tables will need to be added.
- Click Open.
The Create Product Library Workspace dialog box appears.
- Click OK.
The necessary tables will be added to the ProductLibrary.gdb so that it contains the tables necessary for it to be used as a product library.
- If necessary, click OK on the Creating Product Library Workspace progress dialog box after it is complete.
The Product Library level in the Product Library window now contains two child nodes: Data Models and Products. Data models are used to identify the different schemas of the database for which you will manage configuration rules. The Products node is used in cartographic production for managing your maps and associated data.
Exercise 1b: Creating a data model version
A data model is essentially the schema of your database. The way fields are displayed and what validation rules are required are specific to the schema of the database. If the schema of the data changes, a new data model version is created and new field configurations and validation rules should be associated to reflect the schema of the new data model version.
- Right-click Data Models on the window and click New Data Model.
The New Data Model dialog box appears.
- Type EditSample as the name of the data model in the Name text box.
- Type Edit Sample as the alias for the data model in the Alias text box.
- Type Data model version for the EditSample.gdb sample database as the description of the data model in the Description text box.
- Click OK.
A new Edit Sample data model appears below the Data Models node in the Product Library tree view.
- Right-click on Edit Sample in the Product Library tree view and click New Data Model Version.
The Data Models dialog box appears.
- In the Version Information area, type 1 in the Major text box.
- Click the ellipsis (...) next to the Choose Data Model Workspace text box.
The Browse to the workspace document dialog box appears.
- Click the Show of type drop-down arrow and choose Geodatabases.
- Navigate to the Edit_Sample.gdb database and click Select.
The Edit_Sample.gdb file is in the ProductLibrary directory where the tutorial data was copied.
A progress dialog box appears as the schema of the Edit_Sample.gdb is extracted from the database. If necessary, click OK to close the Exporting Data Model Workspace Schema dialog box once the process is complete. This will return you to the Data Models dialog box listing all the feature datasets and tables included in the data model.
- Click OK.
- If necessary, click OK on the Creating Data Model Version progress dialog box after the process has completed.
Exercise 1c: Associating the production data to a data model version
The production database is essentially the database that is being edited. In earlier exercises you created a data model version which represents the schema of the database and the product class version which will contain the configuration files. To ensure that the correct configuration files are used when editing a database, you need to set the production database properties to associated the database.
- Locate the Edit_Sample.gdb below the Production Data level in the Product Library window.
- Right-click Edit_Sample.gdb and click Create Production Database.
The Create Production Database Workspace dialog appears.
- Click OK.
When choosing a geodatabase as a production database, additional tables are added to the database to link it with a product library. A progress dialog box appears as the tables are added.
- If necessary click OK when the process is complete.
- Right-click Edit_Sample.gdb and click Choose Data Model Versions.
The Choose Data Model Versions dialog box appears.
- Check the Edit_Sample (1.0.0.0) check box.
- Click OK.
Your database is now linked/associated to the data model version. You will see two new levels appear below Edit_Sample.gdb in the Product Library tree view that shows the link to the Edit Sample (1.0.0.0) data model version.
In this exercise, you have created a product library, created the data model version, and linked the production database to the data model version. The product library is used to store field configuration rules and validation rules for your data. To create field configurations and configure attributes, proceed to Exercise 2:_Creating field configurations