Jump to content

Recommended Posts

Posted

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

Posted (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 by BIGAL
Posted (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 by rlx
Posted

@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.

  • Like 1
Posted

Thanks Mr. BIGAL. I will redo and check

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...