I've made the following modifications to your dcl & lsp file (attached) to get you started:
1. use AutoCAD's built-in color dialog selection function to pick the 1-255 color
2. select using a drop down from AutoCAD's standard lineweight list
I've made the following changes to your dcl:
Note: lines beginning with // are not executed
//: edit_box { label = "Enter color number 1-255 ";
// key = "lyrcolor1";
//}
: text { label = "Select Layer Color Number 1-255:";
}
: text { key = "lyrcolor1";
width = 3;
}
: image_button {
key = "show_image";
height = 2;
width = 10;
}
}
//: edit_box { label = "Enter line weight 0.0mm - 2.11mm ";
// key = "lyrweight1";
//}
: popup_list {
label = "Select Layer Lineweight:";
value = "0";
key = "lyrweight1";
}
Lots of the lisp functions I included are actually taken from DDModify.lsp which originally was included way back in AutoCAD r12.
The color selection functions are:
chk_color, col_tile, get_color, set_color
The lineweight selection functions are:
getindex, make_lw_lists, set_lweight
The only item missing from your OP is Plot Style
If you download my Text Apps there's a lisp file called DDAttMod.lsp which includes functions on getting and setting Plot Styles ie: getpstynam, make_ps_lists