You're welcome
Am I correct that I would place the ListTileDependencyV1-1.lsp in my support file and there it would stay unchanged?
Yes, exactly this: the content of
ListTileDependencyV1-1.lsp would remain unchanged throughout, you'll just need to ensure that the file is loaded in your active drawing session (such that the various functions are defined prior to calling them from your program).
What is the purpose of the "2" all by itself in the code.
(LM:dcld:action '("lb0" "lb1") 'lst 'rtn)
(strcat "\nThe user selected:" (LM:dcld:getitems rtn lst)
)
)
2 ;;;????
)
)
)
)
)
)
(*error* nil)
)
The 2 is the starting character argument to the
substr function, to remove the leading comma from the output printed to the command line. Though, depending on how you intend to use the user's selection from the dialog, you may wish to retain the selection in list format rather than converting it to a comma-delimited string and printing it to the command line (mine is purely an example to demonstrate the concept).
To use the selection as a list, consider changing this:
(strcat "\nThe user selected:" (LM:dcld:getitems rtn lst)
)
)
2
)
)
)
)
To something like:
(setq rtn
(LM:dcld:getitems rtn lst
)) ;;
;; do something
;;
)
)
Can I place my "insert code" in this file as a defun: below this code ?
You could potentially place your program within the same file, but it may be cleaner (and easier to maintain) if your program were to reside in a separate file - that's entirely dependent on how you wish to organise & maintain your AutoLISP library - there are pros and cons to each approach.