MP_DLG.lsp — Mix Profile Dialog Handler (CRITICAL)

Module: mp_dlg.lsp
Version: v3.60
Category: Dialog Boxes (Panel)
Complexity: High
Size: 6.6 KB (196 lines)

Warning

Master Panel Dialog

This is the primary panel configuration dialog - the entry point for all panel creation and editing. It coordinates all other dialogs and manages the overall panel workflow.


Overview

Purpose

The mp_dlg (Mix Profile Dialog) is the master control dialog for panel configuration. It manages panel type selection, calls sub-dialogs for detailed configuration, and coordinates the overall panel creation workflow.

Critical Role

This dialog:

  • Determines panel type (standard, arch top, etc.)

  • Calls all feature dialogs (pp_dlg, ch_dlg, wc_dlg, etc.)

  • Manages dialog navigation flow

  • Validates overall panel configuration

  • Triggers final drawing generation


Dialog Workflow

User creates/edits panel
  ?
(mp_dlg) displays main dialog
  ?
User configures mix profile
  ?
User clicks feature buttons ? Opens sub-dialogs
  ?
User clicks OK ? Validates and generates

Sub-Dialogs Called

  • pp_dlg - Panel parameters

  • ch_dlg - Chamfers

  • dl_dlg - Dowels/lifts

  • dr_dlg - Dowels/rebar

  • wc_dlg - Weld connections

  • bp_dlg - Base plates

  • fh_dlg - Foundation heads

  • fv_dlg - Foundation voids

  • ro_dlg - Roof features

  • (10+ sub-dialogs total)


Control Pattern

Prefix: mp (Mix Profile)

Key Controls:

  • mpa1 - Mix profile activation toggle

  • mptp - Top plate type

  • mpsc - Scale factor selection

  • Button tiles for each feature type


Global Variables

Input:

  • All mp* variables

  • Panel configuration state

Modified:

  • mpv# - Panel version

  • ok - Dialog result

  • All feature enable states


Validation Logic

Checks:

  • Arch top + embed array incompatibility

  • Required field population

  • Feature interdependencies

  • Dimension validity

Alerts:

"Cannot use Embed Arrays for Top Plates on Arch top Panels."
"Metal Top Plates are set flush to Top of Concrete.
Please check and adjust Panel top elevations if necessary."


Document Metadata

Status: Critical module - comprehensive analysis
Last Updated: 2026-01-20


End of Document