Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp programming in AutoCAD

7 REPLIES 7
Reply
Message 1 of 8
eric_adumekwe
475 Views, 7 Replies

Lisp programming in AutoCAD

Sent by you:
Good morning, please is it normal for my AutoCAD 2025 not to recognize the let, loop, dotimes, when, collect and dolist functions when coding using the lisp programming language ? if no, how can i solve this problem ? Thank you
7 REPLIES 7
Message 2 of 8
pbejse
in reply to: eric_adumekwe


@eric_adumekwe wrote:
Sent by you:
Good morning, please is it normal for my AutoCAD 2025 not to recognize the let, loop, dotimes, when, collect and dolist functions when coding using the lisp programming language ? if no, how can i solve this problem ? Thank you

Curious, has it work for you in lower version  of AutoCAD?  Otherwise use the equivalent in AutoLisp namely while , foreach, mapcar and repeat 

 

Message 3 of 8


@eric_adumekwe wrote:
my AutoCAD 2025 not to recognize the let, loop, dotimes, when, collect and dolist functions

those are common lisp functions most likely, while autocad supports autolisp which is a bit different.

Message 4 of 8
eric_adumekwe
in reply to: pbejse

Hi, i am new to lisp programming so i started with AutoCAD 2025. I don't think the while , foreachmapcar and repeat functions are the exact substitutes

Message 5 of 8

Hi, can i configure AutoCAD 2025 to recognize common lisp functions ?

Message 6 of 8
pbejse
in reply to: eric_adumekwe


@eric_adumekwe wrote:

Hi, i am new to lisp programming so i started with AutoCAD 2025. I don't think the while , foreachmapcar and repeat functions are the exact substitutes


I'm sure its not the exact equivalent but we can write a subfunction to emulate those functions.

Tell us what you need to do.

 

Message 7 of 8


@eric_adumekwe wrote:

Hi, can i configure AutoCAD 2025 to recognize common lisp functions ?


nope

Message 8 of 8
paullimapa
in reply to: eric_adumekwe

Good discussion here on Common Lisp vs Autolisp 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report