PANATT.lsp — Panel Attributes & Variable Initialization¶
Module: panatt.lsp
Version: v3.60
Category: Panel Drawing & Layout
Complexity: High
Size: 8.9 KB (267 lines)
Note
Variable Structure Definition
This module defines the panelvar data structure that holds all panel configuration and initializes panel attributes from defaults or existing data.
Overview¶
Purpose¶
The panatt function initializes or loads the panel variable structure (panelvar) which contains all panel configuration data including features, dimensions, and settings. It either loads existing data from the drawing or initializes defaults for new panels.
Key Responsibilities¶
Define panelvar Structure - Creates the hierarchical panel data structure
Load Existing Data - Reads panel_list from drawing database
Initialize Defaults - Sets default values for new panels
Validate Data - Ensures all required variables exist
panelvar Structure¶
Hierarchical Organization¶
(
("ppvar" . (("ppt1" . "0") ("ppn1" . "12\"") ...)) ; Panel parameters
("chvar" . (("cht1" . "0") ("chn1" . "0\"") ...)) ; Chamfers
("dlvar" . (("dlt1" . "0") ("dln1" . "0\"") ...)) ; Dowels/lifts
("wcvar" . (("wct1" . "0") ("wcn1" . "0\"") ...)) ; Weld connections
...
)
Variable Groups¶
ppvar- Panel parameterschvar- Chamfer featuresdlvar- Dowel/lift featuresdrvar- Dowel/rebar featureswcvar- Weld connectionsmpvar- Mix profiletpvar- Top plateslbvar- Ledger beamsbpvar- Base platesfhvar- Foundation headsfvvar- Foundation voidsrovar- Roof features
Data Loading¶
From Existing Drawing¶
Process:
Search for panel_list in named object dictionary
Extract xrecord data
Parse group/control/value triplets
Rebuild panelvar structure
Default Initialization¶
Process:
Create empty panelvar structure
Set all toggles to “0” (off)
Set all dimensions to “0””
Set all positions to defaults
Global Variables¶
Output:
panelvar- Complete panel data structureAll feature variables initialized
Input:
Drawing database (panel_list xrecord)
Document Metadata¶
Status: High-level analysis (267 lines)
Last Updated: 2026-01-20
End of Document