NicuT Posted April 2 Posted April 2 (edited) Hello everyone. Can you help me to convert a .lsp file into a .scr file? Below, you will find the .lsp file (quick selection - multiple objects and set to a specific layer). I want to use the .scr file with ScriptPro for multiple .dwg files. (defun C:DOIT () (command "_.chprop" (ssget "_X" '((0 . "Mtext,Multileader") )) "" "_layer" "G-ANNO-TXNT" "") ) Edited April 2 by SLW210 Added Code Tags!! Quote
SLW210 Posted April 2 Posted April 2 In the future please use Code Tags for your code. (<> in the editor toolbar) I have created a new thread for your inquiry. Convert a .lsp file into a .scr file Quote
Lee Mac Posted April 2 Posted April 2 There's no need to convert it, you can load & call it from a Script file, e.g. the script could be as simple as: (load "YourLISPFile.lsp" nil) (if c:doit (c:doit)) Quote
NicuT Posted April 2 Author Posted April 2 Thank you for reply Lee. I will try tomorrow. I'm sure it will work . Quote
BIGAL Posted April 3 Posted April 3 As the lisp is super short why not just save it as Doit.lsp but remove 1st and 3rd line, then when you load, it will just run. Or add (c:DOIT) as a last line then it will run when you do the (load "DOIT") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.