thx, but I wouldn't say it's an honor... I'm just an average Joe, I would even call myself an expert lisp'er...
First off, I wouldn't hard-code the shapes into the list boxes. It's a lot harder to edit or add new shapes in the studio then in Lisp.
I'd do something like this....
Create a global list with all your shapes & weights...
Populate the list box on the forms Initialization.
Pull the weight out of the global list when a selection in the list box is changed...
(setq AluList
(list
(cons "L 1\" x 1\" x 1/16\" (OAX-600)" 4.90)
(cons "L 2\" x 1\" x 1/16\" (OAX-601)" 5.10)
(cons "L 1.1/2\" x 1.1/2\" x 3/16" 6.30)
;;.... ETC ........
)
)
(defun c:WGTCALCULATOR_Form1_OnInitialize (/)
(foreach thing AluList
(dcl_ListBox_AddString WGTCALCULATOR_Form1_ListBox1 (car thing))
)
)
(defun c:WGTCALCULATOR_Form1_ListBox1_OnSelChanged (ItemIndexOrCount Value /)
(setq wgt (cdr (nth ItemIndexOrCount AluList)))
)
This is just a rough idea, I didn't test any of it...
I hope this helps you get started.