sweet...i got the lists to work right.
not quite sure if i did it the way you were talking about it but it works
I didnt use the nth function...i tried too but its one of those new functions i dont really understand. I am sure it would have probably easier to use it if I understood it.
attached in the program in its current form.
just so you can see it.
So...now that the list populates, the variable (named block) comes up with a number which I dealt with with the popup_list too but that was fine it wasnt a big deal i jsut used the number to call out the list variable to use. but for the blocks i kind of think it would be easier to get the actual name of the block. I know the $value function will just return a number like "1" or "0" depending on what is selected and where it lies in that list...
But for blocks it doesnt work too well cause depending on the catalog that is selected is going to dictate what block it is and 1 or 0 can be anything....that doesnt too clear.../sigh i dont know how to to explain it right now...hopefully someone just understands
what i was thinking of doing for the path of these details is something like
(setq avpath "c:/symbman/AV/")
having a setq for each one, AV, TC, SC etc...
and then hoping....to get the block name by the block variable...or maybe I would have set a setq for that too or a cond...maybe like
(defun get_blknm()
(cond
((= block "1") (setq blknm "P1"))
((= block "2") (setq blknm "P2"))
)
)
Idk i am just brain storming here and the keypad is infront of me....
i guess then maybe I can call out the insert like...
(defun insert_block()
(cond
((= books "0") (command ".-insert" "avpath blknm" / "" "" "" ""))
((= books "1") (command ".-insert" "tcpath blknm" / "" "" "" ""))
)
)
i dont even know if thats possible to do have 2 variables work together, i guess i could skip the avpath variable and just have..
(defun insert_block()
(cond
((= books "0") (command ".-insert" "c:\\symbman\\AV\\/"blknm" / "" "" "" ""))
((= books "1") (command ".-insert" "c:\\symbman\\TC\\/"blknm" / "" "" "" ""))
)
)
i dont even know if that works...i am gonna stop typing...i am confusing myself again....