Hello All,
I'm currently writing a routine that allows the user to select a window, a layout template, and then generates a new sheet with a viewport scaled to fit the window previously defined by the user. One of the issues I'm running into is allowing the user to select a layout from the template file (should it contain more than one layout). Here's a small snippet:
(and (setq filename (getfiled "\n Select template file:" "" "dwg;dwt" 0))
(command "layout" "template" filename layname)
)
"layname" would be the layout the user selects from a list of available layouts. I've seen lists made using dialog boxes as well as "layoutlist" (although I believe that "layoutlist" only works for the current drawing), but not for a separate file.
I've used up all of my google-fu for the day and am in need of assistance for the sake of my mental stability. Any help is much appreciated!