# Creating MXU Files for Imports

You can quickly add a large number of cameras and camera groups to the MxMC using an MXU file. There are several format specifications that need to be followed when generating such an MXU file.

### Format for Simple Imports

It needs to adhere to the following format for a simple import of cameras:

- Unformatted UTF-8 text
- One or more camera lines with the following structure:
  Name<TAB>IP<TAB>Username<TAB>Password<CR LF/LF>
- Elements in a camera line need to use TABs as separators.
- Line breaks are either CR LF (Windows) or LF (UNIX).
- Comment lines are preceded by a //.
- Camera names need to be unique and cameras using the same name will not be added more than once.

Example:

          Main Entrance   10.6.37.25   admin   meinsm
          Side Entrance   10.6.15.206  admin   meinsm
          Entrance Gate   10.6.23.132  admin   meinsm

### Format for Advanced Imports

#### Expanded Format

The file needs to use the following format for the advanced import of cameras, groups, clips and settings for graphics and grid view:

- First line always #EXTMXU
- Any additional commands must start with #EXT. Parameters use “:” as separators.
  Example: #EXTGROUP:Doorstations

#### Commands for advanced imports

#EXTMXU | Marker to indicate the beginning of the file
#EXTGROUP:name:f:r:icon:map:info | Group “name” is created and all further cameras will be added to this group.
f: Large focus window (0=0x, 1=1x, 2=2x ...)
r: Tile ratio (0=4:3, 1=HD, 2=8:3)
icon: If numeric, index of the internal group icons; otherwise, file name corresponding to the *.mxu file.
map: File name of the background image
info: File name of the information page
#EXTGROUP: | All further cameras will not be added to a group if no name is specified (unless “All cameras”).
#EXTCLIP:clip.mxg | Camera demo clip is added. Clips need to be stored in the same directory as the *.mxu file.
#EXTMXPEG:name:clip.mxg | MxPEG clip with “name” is added. This references the absolute path of the .mxg file.
#EXTCURRENTCAMERA:name | Select camera.
#EXTCURRENTGROUP:name | Select group.
#EXTSUBGROUPS:name | The following groups (each with the name in a line) are added to the group “name” as a subgroup.
#EXTINFO:Comment | Comment line.
#EXTEND | End of file, all further lines are ignored.

Example:

          #EXTMXU
          #EXTGROUP:Doorstations:2:2:2
                Main Entrance           10.6.37.25        admin   meinsm
                Side Entrance           10.6.15.206       admin   meinsm

          #EXTGROUP:Indoor:2:2:3
                Building East           10.3.31.251       admin   meinsm
                Building West           10.7.25.186       admin   meinsm
                Staircase               10.6.115.57       admin   meinsm
                Canteen                 10.12.32.65       admin   meinsm

          #EXTGROUP:Outdoor:2:2:4
                Parking Visitors        10.5.46.39        admin   meinsm
                Parking Employees       10.10.231.107     admin   meinsm

          #EXTGROUP:Dual Cams:2:2:10
                Checkout1               10.10.106.26      admin   meinsm
                Checkout2               10.10.152.225     admin   meinsm
                Checkout3               10.13.242.195     admin   meinsm

          #EXTGROUP:Faststreams:2:0:11
                Ground Floor            10.2.2.169        admin   meinsm
                First Floor             10.2.104.130      admin   meinsm
                Second Floor            10.3.11.51        admin   meinsm
                Elevator                10.3.209.198      admin   meinsm

          #EXTGROUP:Clips:2:2:groupIcon.png:groupMap.jpg
          #EXTCLIP:Fireman.mxg
          #EXTCLIP:Pole.mxg

          #EXTCURRENTCAMERA:Main Entrance
          #EXTCURRENTGROUP:Doorstations

###### Copyright © 2019 MOBOTIX AG. All rights reserved.