Weld.lsp loaded but nothing happens

Weld.lsp loaded but nothing happens

mohezz2
Observer Observer
178 Views
7 Replies
Message 1 of 8

Weld.lsp loaded but nothing happens

mohezz2
Observer
Observer

Hello All,

I loaded the weld.lsp from Chris Crain and added the weld.dcl and welds.slb at the support file locations.

 

When I type "weld", nothing happens, no errors.

The file is attached. I am using Autocad 2025

Ideas?

0 Likes
179 Views
7 Replies
Replies (7)
Message 2 of 8

imadHabash
Mentor
Mentor

Hi,

  • You may need to put the 3 files (WELD.lsp, WELD.dcl & WELD.slb) in the same support folder. then restart AutoCAD.
  • I cannot unzip your previous attached .zip file!!!

Imad Habash

EESignature

Message 3 of 8

cadffm
Consultant
Consultant

Hi,

 

The same folder or not, doesn't matter.

 

Zip file works well, is extractable.

 

Issue: Is very special, the code works by direct evaluation, but not by running via commandname or (c:weld)

The part in question checks for .dcl and start a dialog - like  (if dclexist (rundialog) (otherwiseAlert))

 

 

Thread is for Lisp-Board

Sebastian

Message 4 of 8

mohezz2
Observer
Observer

Thanks for your reply. @imadHabash @cadffm ,
I tried to debug the code, it looks like it was trying to set the CLAYER variable to "welds", but there was no "welds" layer in the file, so once I created the layer the lsp worked well. This is weird for me as I expected the lsp to maybe draw in the current layer anyways. 

I wonder if there are updated versions of the lsp? 

 

I got the lsp from a forum (not cadalyst , since I cannot find it there anymore).

Do you know where I can find it in cadalyst ? or any other forum ?

0 Likes
Message 5 of 8

imadHabash
Mentor
Mentor

You may contact Cadalyst support. They may still have an archive of the “CAD Tips” code repository and could help you locate or retrieve the file.

Imad Habash

EESignature

Message 6 of 8

Kent1Cooper
Consultant
Consultant

@imadHabash wrote:

You may contact Cadalyst support. They may still have an archive of the “CAD Tips” code repository ....


[Their Hot Tip Harry page has a Resources pull-down which includes an item called "CAD Tips LISP Archive," but it does not take you to any such thing.  I have written to point this out to them, since I have a lot of routines there that I sometimes want to refer people to, but so far....  Maybe if a lot of people do the same, something will happen.]

Kent Cooper, AIA
0 Likes
Message 7 of 8

pendean
Community Legend
Community Legend

@mohezz2 wrote:

...there was no "welds" layer in the file, so once I created the layer the lsp worked well. This is weird for me as I expected the lsp to maybe draw in the current layer anyways. ...


Since it does not, why not preload that required-layer in your files in your templates or with a script or use ActionRecoder or a startup or... ? while you wait... .

0 Likes
Message 8 of 8

komondormrex
Mentor
Mentor

just add command to create a "welds" layer, like in the attached, lines 1756-57.

 

0 Likes