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 enablewcx[n]- Weld type selection (from wcl)wcz[n]- Weld size selectionwcs[n]- Edge selection (multi)wcd[n],wce[n]- Dimensionswcq[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 definitionswclsav.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”):
Updates weld variables from dialog
Auto-populates weld dimensions from wcl lookup
Validates embed array compatibility
Writes wcl.txt and wclsav.txt files
Cancel Handling:
If ok = “wccan”, restores original weld data
Global Variables¶
Input:
wcl- Weld connection listwczl- Weld size/type mappingswctl- Weld control listwcxl- Weld X dimensionsAll
wc*variables
Modified:
All weld variables updated
wcl.txtandwclsav.txtfiles written
Document Metadata¶
Status: Critical module - comprehensive analysis
Last Updated: 2026-01-20
End of Document