Using Feature Set and Record Set in ModelBuilder

Using Feature Sets

When a feature set variable is opened in ModelBuilder, interactive digitizing of features is disabled. Features can only be interactively entered from the model tool dialog box when opened in ArcMap, ArcGlobe, or ArcScene. Since the only way to interactively digitize features with a feature set is by opening the model tool dialog box, the feature set variable must be exposed as a model parameter. To set the feature set variable as a model parameter, in ModelBuilder, right-click the feature set variable and choose Model Parameter.

Interactive feature set disabled in ModelBuilder

Running within ModelBuilder

When you open a feature set variable In ModelBuilder, the default value is the name of a feature class that will be created in the in_memory workspace when the model is run using its tool dialog. You can replace this value with the name of a feature layer or feature class and run your model within ModelBuilder, as illustrated below.

Selecting a feature layer for a feature set variable in ModelBuilder

CautionCaution:

If you run the model with ModelBuilder using an existing feature layer or feature class, the feature set schema will be overwritten if you save the model. You can reset the schema as follows:

  1. Right-click the feature set variable and choose Properties.
  2. Click the Data Type tab.
  3. In the Import schema and symbology from field, enter or browse to the path of the dataset to use as the schema source and click OK.
Learn more about setting feature set schema

Using Record Set

Unlike feature sets, record set variables can be interactively edited in ModelBuilder. This allows models containing a record set variable to be run within ModelBuilder. Any records added to a record set in ModelBuilder will appear in the model tool dialog box if the record set variable is set as a model parameter. These prepopulated records in the record set can be modified from the model tool dialog box or deleted from the record set. New records can be added to the record set at any time.

Record Set in ModelBuilder

Related Topics

10/29/2012