Lisp programming in AutoCAD

Lisp programming in AutoCAD

eric_adumekwe
Explorer Explorer
715 Views
7 Replies
Message 1 of 8

Lisp programming in AutoCAD

eric_adumekwe
Explorer
Explorer
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
0 Likes
716 Views
7 Replies
Replies (7)
Message 2 of 8

pbejse
Mentor
Mentor

@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 

 

0 Likes
Message 3 of 8

komondormrex
Mentor
Mentor

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

0 Likes
Message 4 of 8

eric_adumekwe
Explorer
Explorer

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

0 Likes
Message 5 of 8

eric_adumekwe
Explorer
Explorer

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

0 Likes
Message 6 of 8

pbejse
Mentor
Mentor

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

 

0 Likes
Message 7 of 8

komondormrex
Mentor
Mentor

@eric_adumekwe wrote:

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


nope

0 Likes
Message 8 of 8

paullimapa
Mentor
Mentor

Good discussion here on Common Lisp vs Autolisp 


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