Open recent #1

Mikael63
edited August 27 in 2D Drafting

How to (re)open recent file 1 without using ALT?

like a tool-button with qsave;close;{ALT F F 1}

where {ALT F F 1} to be replaced by using command line

Comments

  • Hello.

    With a tool button, you could use a lisp expression to access a recent file.

    If using lisp is something of interest, the next link leads to a page containing more information about accessing recent files.
    https://www.cadtutor.net/forum/topic/69224-recent-files-list/

    You could experiment with one of the RecentFiles functions there.

    Note that, with Bricscad, the registry folder is "Recent paths" and not "Recent File List" as with Autocad.

    Also, with the function from Lee Mac, instead of "filetime", "file" should be used.

    These functions provide a list containing the paths to the most recent files.

    ===

    Another function needed is one that opens a file - see the next link.
    https://forums.augi.com/showthread.php?130288-Opening-a-drawing-from-AutoLISP

    ===

    The lisp expression in the tool button should open the first file in the recent list.

    ===

    I couldn't find something simpler.

    You might investigate if the lisp function (menucmd) could be used here.
    I tested it but I didn't find anything relevant.

  • Thanks.

    Why I want this is for executing on_doc_load.lisp again but I can't get it to work?

  • Ahrrg!
    I have to use / instead of \ in path to .lisp