Create Markup Feature Classes
Creation of the markup palette begins with creating one feature class per markup item desired for your palette. Each of the classes must be of type Point, Polyline, or Polygon, and you can create as many of each as you need to represent your markups. Perform the steps below for each feature class you require.
- In ArcCatalog, right-click the dataset name and select New > Feature Class.
- Type a Name and an Alias. IMPORTANT: We strongly suggest using Dimension Line, Callout, and Freehand.
- Select the feature type. For markup, the type must be Point, Line, or Polygon.
- Click Next.
- Add a RedlineId field of type GUID, necessary to enable the viewing capabilities of markups in ArcMap.
- Add any other desired fields.IMPORTANT: Two types of feature classes must include two fields in particular:
-
Dimension Line must contain a field called Measurement of data type text. The field alias can be whatever you choose.
-
Callout must contain a field called Notes of data type text if your markup dataset is hosted in an Oracle database. The field may be called Notes or Comment if your markup dataset is hosted in an SQL Server database. The field alias can be whatever you choose.
-
- If you want to enable attribute entry as part of markup,
follow these substeps, all of which are applicable to point, line,
and polygon features.
- When adding fields, the only data types that are not supported are guid, raster, and blob. All other data types are valid.
- If the field is required, set Allow NULL values = No.
- If a default value is designated, be aware that it is not displayed in the app.
- Domains may be set up for each field.
- To take advantage of point symbol rotation capabilities in ArcFM Mobile for Windows, point features in your markup feature class must include a field called SymbolRotation that corresponds to the appropriate symbology attributes in ArcGIS Pro or ArcMap. For more information, see Esri’s documentation on how to Vary symbology by rotation (ArcGIS Pro) or Setting label rotation using a numeric field (ArcMap).
- Click OK to complete creation of the new feature class.
- Additional configuration of the newly created feature class can be performed by right-clicking the feature class name and selecting Properties.
- If you want to enable users to create markups with different
symbology using the same markup tool, you can create subtypes. For
example, if you want users to create solid, dashed, and dotted lines
that are all saved in the Line feature class in your Markup Dataset,
you could create three subtypes, shown in the following image.
Refer to Esri’s topic for creating subtypes.
- If you want to enable attribute entry as part of markup,
be aware that:
- When designating subtypes for use with markup attribute entry, you can also designate domains. Each subtype can have a different domain to help in limiting your user’s choices when populating attribute information.
- Markup attribute entry respects both coded value and range domains for each field.
- Repeat the above steps as often as needed to create all of your markup feature classes.
- After you have created all your desired classes, you need
to add GlobalIds to your dataset.
- Right-click the dataset and select Manage > Add GlobalIds.
- Verify that Global IDs have been created by looking at the Properties window for any feature class. If the operation was successful, there is a field named GlobalId of data type Global ID, as seen in this example:
- Add a unique index on the GlobalId field of each of your feature classes. Using Esri’s Data Management toolbox, you can add an attribute index.