I am trying to create an alphanumerical list from 3 previous lists also alphanumerical.
i.e. list 1 - ad1, ad2, ad3.....
list 2 - gd01, gd02, gd03....
list 3- b1, b2, b3......
I want to create a string from the list above that would read ad1-gd01-b1; but I also need to create a list that would include ad1-gd02-b1; ad1-gd03-b1; etc.
Below is part of the code:
(setq a 0)
(setq b 0)
(setq c 0)
(vl-load-com)
(setq alpha (vlax-make-safearray vlax-vbString '(0 . 4)))
(vlax-safearray-fill alpha '("ad1" "ad2" "ad3" "ad4" "ad5"))
(setq beta (vlax-make-safearray vlax-vbString '(0 . 4)))
(vlax-safearray-fill beta '("gd01" "gd02" "gd03" "gd04" "gd05"))
(setq gamma (vlax-make-safearray vlax-vbString '(0 . 4)))
(vlax-safearray-fill gamma '("b1" "b2" "b3" "b4" "b5"))
(setq alphalist (vlax-safearray->list alpha))
(setq betalist (vlax-safearray->list beta))
(setq gammalist (vlax-safearray->list gamma))
(while (< b 3)
(setq newstr (strcat (nth a alphalist) "-" (nth b betalist) "-" (nth c gammalist)" "))
(setq newlist (list newstr))
(princ newlist);review
(setq b (+ b 1))
)
This is probably very simple and I'm too close to it. Any help would be appreciated.