How to write Sub Functions in AutoLISP

  Рет қаралды 2,843

cyber CAD solutions

cyber CAD solutions

Күн бұрын

In this session you will learn how to write Sub Functions in AutoLISP.

Пікірлер: 8
@cyberCADsolutions
@cyberCADsolutions 2 жыл бұрын
; Using Sub Functions in AutoLISP ; Program to calculate ncr value = n!/((n-r)!xr!) (defun c:ncr(/ n r nFact rFact nMrFact) (setq n 4 r 2 ) (setq nFact (getFact n)) (setq rFact (getFact r)) (setq nMrFact (getFact (- n r))) (setq ncr (/ nFact (* nMrFact rFact))) (alert (rtos ncr 2 2)) );end ; Subfunction to calculate the factorial value (defun getFact (i / counter fact) (setq counter i fact 1 ) (while (> counter 1) (setq fact (* fact counter)) (setq counter (1- counter)) );while fact );end
@soumitratewari483
@soumitratewari483 2 жыл бұрын
Thanks for the video. Please upload more 🙂
@cyberCADsolutions
@cyberCADsolutions 2 жыл бұрын
Thank you, I will. Please share.
@engHamdy07
@engHamdy07 2 жыл бұрын
Do you have a lisp to create a QR code immediately from AutoCAD by selecting a point in its UTM coordinates. The generated QR Code opens google maps and refer to the point location so that one can directly scan code and drive to it.
@karthikpandian6567
@karthikpandian6567 2 жыл бұрын
Very useful bro 🙏🙏
@cyberCADsolutions
@cyberCADsolutions 2 жыл бұрын
Thank you. Please share to your friends and colleagues.
@adityaadit2004
@adityaadit2004 Жыл бұрын
Sir I am currently having this problem where I have a subfunction inside a function. When I load it into a new drawing with APPLOAD and trying to use the function, this error message appears saying (error no definition function ...). So I have to load it manually using VLIDE window everytime. How to fix it, sir? Thank you?
@mohamedsathar6174
@mohamedsathar6174 2 жыл бұрын
Share Your Favorite usefull LISP files
How to use AND OR Logical Operators in AutoLISP
16:42
cyber CAD solutions
Рет қаралды 2 М.
How to execute a set of statements repeatedly in AutoLISP
20:18
cyber CAD solutions
Рет қаралды 8 М.
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 3,8 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
How to Work with Text in AutoLISP
13:52
cyber CAD solutions
Рет қаралды 5 М.
How to Change Object Properties with AutoLISP
15:26
cyber CAD solutions
Рет қаралды 6 М.
Intermediate AutoLISP
1:07:10
Land F/X
Рет қаралды 10 М.
AutoLISP Basics
1:02:29
Land F/X
Рет қаралды 52 М.
What are the Common Problems & Solutions in AutoCAD
10:06
cyber CAD solutions
Рет қаралды 3,4 М.
A Nice Algebra Problem  |  Can You Solve this ? |  Math Olympiad
15:54
Learncommunolizer
Рет қаралды 1,9 М.
Common Lisp Debugging: Essential Tips and Techniques
7:30
The Lisper
Рет қаралды 3 М.
How to Read Excel from AutoLISP program
12:43
cyber CAD solutions
Рет қаралды 12 М.
Clicks чехол-клавиатура для iPhone ⌨️
0:59
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 443 М.