Quite a few years ago, during an overhaul of the Discussion Groups, previous attachments were lost. I am not exactly sure what Mr. Addis posted, but chances are it was an earlier version of LKL.lsp, which would probably not run on current versions of ACA. Reading your post prompted me to update the routine for ACA 2015. See the attached file.
I assume that you know how to look for a file. The program does not ship with a Drawing Standards file with all of the layers that ACA might create. The LKL AutoLISP routine that was posted will generate all of the layers defined in the current Layer Key Style. As noted, this may not represent all of the layers that may be created by ACA and the content files that ship with it, because there could be embedded layers in some object styles or Display Representations that are not Layer Keyed. But it would get you a good deal of the way there. Once you have a drawing with all of the layers, you can save it as a Drawing Standards file (DWS extension).
You're getting ahead of me. Ok. So I went to "manage" and "load application" and loaded the AUTOLisp program by dragging and dropping in the start up suite. If that's correct then what?
After loading the LKL.lsp file, at the Command prompt, type LKL and press ENTER.
The program should do its thing and then the following alert message should appear:
Select OK to dismiss the message and you are done. Note that the layer key generate function that LKL uses will not overwrite any layers that already exist in the file, so if you already have a layer whose name matches one in the Layer Key Style, the local definition will remain, unchanged, even if the local layer's properties (color, linetype, etc.) are different from that specified in the Layer Key Style.
Once you have all the layers you want in the file, with the desired properties set, you can save the file as a Standards File. On the Application Menu (large red origami "A" in the upper left corner, select the far right part of the Save As split button (the part with the arrow icon) and then select the Drawing Standards tool from the cascading menu. Select a location for the file where those who need to access it can do so and give the file a meaningful name. It will be saved with a DWS extension.
I am trying to get this to work but am unable to open it properly. is there a special way one needs to open the File LKL.LSP in order to bring the layers in cause I've tried four times and it doesn't do anything at all.
@Anonymous wrote:
I am trying to get this to work but am unable to open it properly. is there a special way one needs to open the File LKL.LSP in order to bring the layers in cause I've tried four times and it doesn't do anything at all.
What version of ACA are you using? The previously posted version will only run on ADT 3.3 through ACA 2015. I have updated the file to work on ACA 2016 and 2017 as well, and have attached a ZIP file containing that version (v1.4).
As for getting it to run, first you have to unzip the file and extract the LKL.lsp file within. That file then needs to be loaded into AutoCAD Architecture. There are a number of ways to do so; the easiest is to start AutoCAD Architecture, open the file in which you wish to run LKL, making it the currently active drawing, open an instance of Windows Explorer, navigate to the location where you have extracted LKL.lsp and then left-click-hold-and-drag the LKL.lsp file, moving the cursor from Windows Explorer to a position over the drawing canvas of the active drawing and releasing the left mouse button.
Once loaded, type LKL at the command prompt and then press the ENTER key, and the command should run. You should see the alert dialog shown in Post #12 above, indicating that the command is complete. As noted previously, and in that alert dialog, any previously existing layers that have the same name as a layer defined in the current Layer Key Style will remain as it was previously defined, even if it has different layer properties (color, linetype, etc.) from those defined in the Layer Key Style. This is consistent with the way Layer Keys work in AutoCAD Architecture.
Here is a brief Screencast showing the LKL.lsp file in action, from loading via drag-n-drop to use of the LKL command. Screencast switches from active Window to active Window sort of abruptly, so you do not get to see the full effect of the drag-n-drop. Once the cursor leaves the Windows Explorer Window, it is positions over the drawing canvas (drawing area) in the AutoCAD Window, where the button is release, loading the file.