NMS CIM Import and Export Tools
NMS has two tools to support import and exporting CIM data: cim2mp and CIMExporter, respectively.
CIM Import
The CIM import processor, cim2mp, feeds directly into the standard NMS model build process. It takes a CIM-formatted file and converts it into an NMS model preprocessor (mp) file. Once the files are in the .mp file format, the Model Engineer configures the rest of the model interface just as they would with any GIS-supplied .mp file.
Usage:
cim2mp [cim_file] [mpfile]
 
Example:
cim2mp 3513.rdf 3513.mp
CIM Export
The CIM export tool, CIMExporter, exports a specific set of components from the NMS .mb file in CIM/IEC .xml/.rdf file format. The resulting file should be able to be imported by a CIM-compliant model consumer.
Usage:
CIMExporter mbfile cim_file
Example:
CIMExporter 3513.mb 3513.rdf
The CIMExporter configuration file, CIMExport.properties, is located in the $NMS_HOME/sql directory. The product version of this properties file is installed by default. Copy the product file to your project/sql directory and make any changes needed. Run nms-install-config to install the project/sql version into the $NMS_HOME/sql directory.
Note: running nms-install-config will overwrite the product version.
 
CIMExport.properties can be used to:
1. Map NMS classes to CIM classes.
2. Specify the NMS attributes to map to CIM attributes.
3. Enable catalog lookup for powerflow line values.