WC_DLG.lsp — Weld Connection Dialog Handler (CRITICAL)

Module: wc_dlg.lsp
Version: v3.60
Category: Dialog Boxes (Features)
Complexity: High
Size: 0.8 KB (25 lines)

Note

Weld Connection Manager

Despite its small size, this dialog is critical for managing weld connections - one of the most important structural features in precast concrete panels.


Overview

Purpose

The wc_dlg function displays the weld connection configuration dialog, allowing users to define and place weld plates and embedments. These are critical for panel-to-panel and panel-to-structure connections.

Weld Connection Features

  • Embed plate selection (from wcl list)

  • Position and orientation

  • Edge placement (L/R/T/B)

  • Dimension specifications

  • Multiple welds per panel (arrays)


Control Pattern

Prefix: wc (Weld Connection)

Key Controls:

  • wct[n] - Weld toggle enable

  • wcx[n] - Weld type selection (from wcl)

  • wcz[n] - Weld size selection

  • wcs[n] - Edge selection (multi)

  • wcd[n], wce[n] - Dimensions

  • wcq[n] - Face direction (L/R)

  • wcp[n] - Position (up/down)

Arrays: Up to 12 weld connections per panel


Weld Connection List (wcl)

Structure:

(ID "Name" Width Height Y-Offset ...)

Example:

(0 " " 0.0 0.0 0.0 ...)           ; Placeholder
(1 "4x6 Embed" 4.0 6.0 1.5 ...)  ; Embed plate
(2 "3x8 Weld" 3.0 8.0 2.0 ...)   ; Weld plate

Source Files:

  • wcl.txt - Current project weld definitions

  • wclsav.txt - Saved weld library


Edge Selection Logic

Multi-Selection:

  • L - Left edge

  • R - Right edge

  • T - Top edge

  • B - Bottom edge

Combinations:

  • “L R” - Both sides

  • “L R T B” - All edges

  • “none” - No edges


Integration with updvar

Special Processing: When dialog closes (ok != “wccan”):

  1. Updates weld variables from dialog

  2. Auto-populates weld dimensions from wcl lookup

  3. Validates embed array compatibility

  4. Writes wcl.txt and wclsav.txt files

Cancel Handling: If ok = “wccan”, restores original weld data


Global Variables

Input:

  • wcl - Weld connection list

  • wczl - Weld size/type mappings

  • wctl - Weld control list

  • wcxl - Weld X dimensions

  • All wc* variables

Modified:

  • All weld variables updated

  • wcl.txt and wclsav.txt files written



Document Metadata

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


End of Document