(Update) DWGEditor & Load Lisp on startup
(Update) DWGEditor & Load Lisp on startup
(OP)
In response to closed thread559-107337: DWGEditor & Load Lisp on startup by brrian, a possible solution.
I was trying to solve this same issue and the vague helpfile wasn't much help. After reading the above closed thread I tried the following and it's working.
Create a text file call dwgeditor.lsp and put it in your ...../solidworks/dwgeditor directory.
This file can contain all of the lisp routines you want in one place.
Or you can have it load individual other .lsp files with statements like this:
(LOAD "file") with "file" being the name of the file you want to load ie file.lsp
I was trying to solve this same issue and the vague helpfile wasn't much help. After reading the above closed thread I tried the following and it's working.
Create a text file call dwgeditor.lsp and put it in your ...../solidworks/dwgeditor directory.
This file can contain all of the lisp routines you want in one place.
Or you can have it load individual other .lsp files with statements like this:
(LOAD "file") with "file" being the name of the file you want to load ie file.lsp






RE: (Update) DWGEditor & Load Lisp on startup
thread559-127104: Macro running automatically
RE: (Update) DWGEditor & Load Lisp on startup
cwdaniel,
Can you please post a sample text file to explain the lisp routines?
Thanks
RE: (Update) DWGEditor & Load Lisp on startup
(defun c:o () (command "offset"))
(defun c:pe () (command "pedit"))
(defun c:pl () (command "pline"))
(defun c:po () (command "polygon"))
(defun c:r () (command "redraw"))
(defun c:re () (command "regen"))
(defun c:rec () (command "rectang"))
I'm a really old school autocad user and I prefer to use keyboard shortcuts for a lot of commands, rather than the hieroglyphic icons that are mostly a mystery to me. The above lisp turns basic commands into 1, 2 or 3 letter keystrokes. For me it's much faster hunting and pecking with the mouse.