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

  1. Define panelvar Structure - Creates the hierarchical panel data structure

  2. Load Existing Data - Reads panel_list from drawing database

  3. Initialize Defaults - Sets default values for new panels

  4. 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 parameters

  • chvar - Chamfer features

  • dlvar - Dowel/lift features

  • drvar - Dowel/rebar features

  • wcvar - Weld connections

  • mpvar - Mix profile

  • tpvar - Top plates

  • lbvar - Ledger beams

  • bpvar - Base plates

  • fhvar - Foundation heads

  • fvvar - Foundation voids

  • rovar - Roof features


Data Loading

From Existing Drawing

Process:

  1. Search for panel_list in named object dictionary

  2. Extract xrecord data

  3. Parse group/control/value triplets

  4. Rebuild panelvar structure

Default Initialization

Process:

  1. Create empty panelvar structure

  2. Set all toggles to “0” (off)

  3. Set all dimensions to “0””

  4. Set all positions to defaults


Global Variables

Output:

  • panelvar - Complete panel data structure

  • All 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