AutoXchange 2026 Technical Documentation

Create UIC Building Data Details

The CreateUICBuildingData function processes a building floor plan (AutoCAD .dwg/.dxf file) and cross-references it with room and department spreadsheets. It is used to either generate a detailed space inventory JSON file or colorize room polygons by department with an embedded legend directly in the output drawing.


1. Required Spreadsheets / Data Files

To run this process, three files must exist in the same directory as the input CSV/XLSX:

A. Room Attributes Spreadsheet (The Primary Data Source)

  • Default Name: Typically dwg_room_attr_with_dp_names.csv (or .xlsx/.xls).
  • Purpose: Associates each physical room ID on the drawing with building, floor, department, division, category, type, and area info.
  • Expected Columns (15 Columns):
    1. dwgname: Drawing/Floor identifier (must match S<BuildingName>-<Floor> e.g., SB-L03).
    2. bl_id: Building ID.
    3. fl_id: Floor ID.
    4. rm_id: Room ID (matches room numbers on the drawing).
    5. rm_cat: Room Category code.
    6. rm_type: Room Type code.
    7. area: Room area.
    8. dp_id: Department ID.
    9. dp_name: Department Name.
    10. dv_id: Division ID.
    11. org_campus_id: Campus Identifier.
    12. org_admin_id: Administrative Identifier.
    13. bu_id: Business Unit ID.
    14. org_school_id: School Identifier.
    15. org_dv_id: Organizational Division ID.

B. Room Category and Room Type Mapping

  • File Name: rmcat and rmtype.csv (or .xlsx/.xls if Excel support is enabled).
  • Purpose: Maps short codes (e.g., room category OFFICE, room type OFF-EXEC) to human-readable names (e.g., "Office Space", "Executive Office").
  • Expected Structure:
    • CSV Columns: rm_cat, rm_cat_desc, rm_type, rm_type_desc.
    • Excel Sheet: Expects a worksheet named "SQLT0009" with columns representing Category Code, Category Description, Type Code, and Type Description.

C. Department Hex Color Code Spreadsheet

  • File Name: dp_colors_with_hex.xlsx
  • Purpose: Defines colors for color-coding rooms by department on the drawing.
  • Expected Structure:
    • Excel Sheet: Must contain a worksheet named "SQLT0115".
    • Columns:
      1. Department ID (DPID)
      2. Division ID (DVID)
      3. Pattern type (unused/ignored)
      4. Hex Color (HexColor, e.g., FF0000 or #FF0000).

2. Configuration Parameters & Controls

These command-line switches and parameters alter the behavior and output of the processing run:

Mode Selection (JSON vs. DWG Output)

  • Detailed JSON Mode: When enabled, the program outputs a <OutputName>_detailed.json containing metadata (categories, types, department names, campus/admin IDs) for all matched rooms. No visual drawing hatches are generated.
  • Drawing Colorization Mode: When detailed JSON output is disabled, the program modifies the AutoCAD drawing database directly:
    • Generates solid color department hatches inside room boundaries using the hex colors defined in dp_colors_with_hex.xlsx.
    • Places a formatted color legend list of departments in the drawing paper space.

Room Highlight / Outline Enhancement

  • EnhanceItems (EI): A list of room numbers (separated by semicolons ;). Any room matching this list will have its boundary polyline highlighted in the drawing (color set to red/index 1 and border width line weight increased/doubled).
  • EnhanceLineWeight (ELW): The value to use to increase the LineWeight of the Enhanced Items (defaults to 2).

Layer Configuration Parameters

  • Room Layers (RL): Specifies which layer names in the CAD file represent room boundaries (defaults to "RM$" under UIC drawing mode).
  • Text Layers (TL): Specifies which layer names in the CAD file contain room number texts/labels (defaults to "RM$TXT" under UIC drawing mode).
  • Hatch Layers (HL): Specifies the hatch boundary layers.

Typical Command Line

The typical command line is:

-i=”<InputPath>\S618-1.dwg” -svg -lpath=<licensepath> -rl=RM$ -tl=RM$TXT -ei=151 -elw=15

Note that the values shown for -rl and -tl are actually the defaults, so those could be omitted in this case.

Legend Sizing and Placement (Layout-dependent)

The legend’s location and orientation inside paper space adjust automatically depending on the presence of drawing layout pages:

  • 8P layout page: Places vertical narrow columns on the left (x=.1, y=10).
  • 8L layout page: Places vertical narrow columns on the left (x=.1, y=7).
  • 11L layout page: Places horizontal columns at the bottom (x=3, y=3.5, width=3).
  • 11P layout page: Places columns at the bottom (x=5.5, y=5.5, height=3).
Last updated on 25 Aug 2026
Published on 25 Aug 2026