I am starting to automate our processes and am starting simple. We have a dynamic block that goes in virtually all our drawings. It's a simple prelim-to-final stamp required by client. The master dynamic block stays in the support folder and the normal procedure is to copy the master to the project folder the rename it with the job # as the prefix. So for example XXX-blockname.dwg gets renamed 1084-blockname.dwg. I am attempting to add this function to a toolbar button and derive the project# in some way, possibly from the sheet set, like reading a field. I started with this code I found, just to copy the file, but all I get is a nil return and no file created in the destination folder. Any assistance or better solution would be appreciated.
(vl-file-copy "C:/XXX-BLOCK.dwg" "C:/Project Files/18-1084 EW1090, Bristle Rd, 31177, Calvin D3/CIV3D/1084-BLOCK.dwg")