NSB Posted January 8 Posted January 8 Dear All, I am very new to LSP. I have created an LSP and DCL file, but they are not working. Could you please help? Based on the user input given in the model number, the LSP should open an existing drawing, change 'YYYYYYYY' in the drawing (which is arcaligned text), and allow the user to save. Both the DCL file and LSP are attached here. Data for Brand, WR, Material, Bevel OD, Glass, and Drawing file path are maintained in an Excel file edit_model.lsp selection_with_model.dcl Quote
BIGAL Posted January 8 Posted January 8 (edited) One quick one maybe. (action_tile "accept" is the Ok_button (action_tile "cancel" is the canel_button Also when entering paths its best to use "\\" if you use "/" there must be no spaces in the full directory path. (setq dcl_path "C:\\Users\\seah\\downloads\\selection_with_model.dcl") Have a look at this converts a dcl to lsp so only have one program a great code by RLX. Convert dcl 2 lisp rlx.lsp Edited January 8 by BIGAL Quote
rlx Posted January 9 Posted January 9 (edited) Thanx Bigal, almost forgotten this program haha, was a little lunchtime project if I recall. Most of the time I now type the dcl code directly in lisp program right after I first make a drawing of my dialog. @NSB , had a quick look , dcl pops up so thats ok , haven't had a in-depth look at dcl code as Bigal did. Not saying I have time enough to look at the rest, but you should provide a sample drawing and a sample excel file because without these its not possible to test / debug your lsp. Edited January 9 by rlx Quote
BIGAL Posted January 10 Posted January 10 @rlx yes must redo that make a dcl from a dwg program, I know sent you code and dwg's that made simple radio button and edit boxes based on a dwg. Still useful just copy and paste into master lisp. 1 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.