To Save an Object Mapping File for a Project

Create a project specific object mapping file.

The Save Mapping tool creates an IfcInfraExportMapping.json file in the directory of the current drawing. This file contains the mapping rules for AutoCAD and Civil3D objects to IFC Classification and Types. See About IFC 4.3 Extension for Civil 3D Configuration Files for details regarding the search path, merged settings files, and override settings used with IFC Export and Import commands.

To create a project specific IfcInfraExportMapping.json file

  1. Click Add-ins tab IFC Infrastructure panel IFC Infrastructure Save Mapping .
  2. In the Save As dialog, click Save. The IfcInfraExportMapping.json file should be saved to the same directory as your drawing file.

Understanding Classification

Classification is a key concept in BIM, where objects are categorized based on their function or role. The IFC format has its own classification system, which can be extended with predefined or user-defined types.

Civil 3D offers several ways to classify objects: The IFC 4.3 Extension allows you to map these Civil 3D classifications to IFC classes during the export process.
Mapping to IFC Classification and Type uses a 4 stage process. Later stages overwrite mapping until a final mapping is decided. Rules do not need to be defined in stages 2, 3 or 4.

IFC Classification and Type mapping stages

Mapping rules

  1. The name is issued a regular expression (regex) rule check. Regex is a powerful text comparison system allowing for wild cards. For more information, see Regular Expression Language.
  2. A flag is assigned to specify if the object is exported or not. If a flagged (at any stage) to not export, then no further work or checks are done on the object its sub-objects.
  3. The IFC classification and optional sub type are considered.
Unless overwritten by the Civil3DIfcInfraConfigFilePath environment variable, mapping files process in the following order. Again, the first matched mapping found based on the above list is used and the files are all optional.

Mapping files order of processing

  1. {IFCOutputFolder}{IFCFilename}-IfcInfraExportMapping.json
  2. {DWGOutputFolder}{DWGFilename}-IfcInfraExportMapping.json
  3. {IFCOutputFolder}IfcInfraExportMapping.json
  4. {DWGOutputFolder}IfcInfraExportMapping.json
  5. {ProjectFolder}IfcInfraExportMapping.json
  6. C:\Program Data\Autodesk\Civil3D\ IfcInfraExportMapping.json
Note:

A typical mapping rule is shown in the following example.

{
      "Name": "Daylight_Fill",
      "IfcExportAs": "IfcAnnotation.StringLine",
      "Export": true
    },

IFCExportAs is in the form of either "IFCCLassification" or "IFCClassification.IFCType"