Foreach in AutoLISP Programming

  Рет қаралды 5,250

cyber CAD solutions

cyber CAD solutions

Күн бұрын

In this session you will learn how to process each element in a list using Foreach function in AutoLISP.

Пікірлер: 24
@satydevnegi5454
@satydevnegi5454 3 жыл бұрын
Your videos are very much inspiring for AutoCAD programmer, can you please make a video on saving lisp files non editable format.
@claudeboucher6170
@claudeboucher6170 3 жыл бұрын
Merci !! Très utile pour mon apprentissage.
@behruz.anvarovich
@behruz.anvarovich 3 жыл бұрын
Super, as always. thanks for your work.
@cyberCADsolutions
@cyberCADsolutions 3 жыл бұрын
Thank you. Please share.
@ganemi2
@ganemi2 2 жыл бұрын
In the program, sublist is the defined function or variable.... I am not seeing sublist declared as variable anywhere in the program.... Your method of teaching is very good...
@cyberCADsolutions
@cyberCADsolutions 2 жыл бұрын
Sublist means a list in another list. Thank you. Please share to your friends and colleagues.
@ganemi2
@ganemi2 2 жыл бұрын
Thank for the clarification....
@amnoorulaman
@amnoorulaman 3 жыл бұрын
Crystal clear explanation. Thanks. Dear master, is any command available to get the name of lisp command. That is, (defun c:xyz() ) How to get "xyz" as string within this programme?
@R-sum
@R-sum Жыл бұрын
very informative
@cyberCADsolutions
@cyberCADsolutions Жыл бұрын
Thank you. Please subscribe and share.
@ibrahimpatel9006
@ibrahimpatel9006 2 жыл бұрын
I have created block and that block I have use as a insert block. For insert block I prefer CUIX.File and VLSIP. Through CUIX I have set symbol in Autocad ribbon and the same block used through LISP for shortcut command. When I used through CUIX I got correct block layer properties. I mean I have created in "xyz" layer. Using through CUIX I got the same layer in my new drawing. If even my current layer is 0 but they still put "xyz" layer in my new drawing. This is correct for me. When I use LISP shortcut command for the same insert block. If my current layer is "ABCD" then block properties has changed automatically. The layer of blocks has changed into current layer.
@ibrahimpatel9006
@ibrahimpatel9006 2 жыл бұрын
VLISP (defun c:RECCS2 (/ blockName fileName insertPoint ) (setq blockName "Reccs1" fileName "C:\Desktop\To be check\Recc3.dwg") (if (not(tblsearch "layer" "Reccs1")) ;; check if the drawing not existing the block name (progn (vl-cmdf "-insert" "Recc3" "0.0,0.0,0.0" "" "" "") ;;inserts your master file from some defined file path (vl-cmdf "._erase" "l" "") ;;erases the block; last inserted )) (if (setq insertPoint (getpoint " pick point:")) (vl-cmdf "-insert" "Reccs1" pause "1" "1" "0") ;;inserts the block you want from the master file ) (princ) )
@ibrahimpatel9006
@ibrahimpatel9006 2 жыл бұрын
CUIX ^C^C-insert;Recc3;\;;;explode;last;-purge;Blocks;Recc3;N;
@ifty_arain
@ifty_arain 4 ай бұрын
I have created above program without using if and progn functions it worked and got the same results of coordinates on vertices of polyline. Can you please explain why you used both functions if and progn in your program?
@ifty_arain
@ifty_arain 4 ай бұрын
Only used If function (if (=(car(sublist) 10) , didn’t use here progn
@cyberCADsolutions
@cyberCADsolutions 3 ай бұрын
kzbin.info/www/bejne/e3i4g6WFaamkjKM
@RajCAD8801
@RajCAD8801 3 жыл бұрын
Thank you.
@mesuttasar21
@mesuttasar21 4 ай бұрын
"sublist" word is function or variable which used in lisp?
@cyberCADsolutions
@cyberCADsolutions 3 ай бұрын
Sublist means a list inside another list.
@ibrahimpatel9006
@ibrahimpatel9006 2 жыл бұрын
May I get LISP to explode block and make block again with the same name
@PANDURANG99
@PANDURANG99 3 жыл бұрын
I have done one programme
@subhamkumarshaw3095
@subhamkumarshaw3095 3 жыл бұрын
Gurudev🙏
@cyberCADsolutions
@cyberCADsolutions 3 жыл бұрын
Thank you. Please share to your colleagues and friends.
How to Read Excel from AutoLISP program
12:43
cyber CAD solutions
Рет қаралды 13 М.
How to execute a set of statements repeatedly in AutoLISP
20:18
cyber CAD solutions
Рет қаралды 8 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 108 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 46 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
What are Geometric Functions used in AutoLisp
16:57
cyber CAD solutions
Рет қаралды 12 М.
Which dxf codes are required to Create a Line Circle And a Text in AutoLISP
26:51
How to Select And Process Multiple Objects in AutoLISP Program
19:08
cyber CAD solutions
Рет қаралды 15 М.
Automating tasks using Macros in AutoCAD
17:36
SourceCAD
Рет қаралды 80 М.
git rebase - Why, When & How to fix conflicts
9:45
Philomatics
Рет қаралды 50 М.
you will never ask about pointers again after watching this video
8:03
How to write a AutoLISP Program to Create New Objects in AutoCAD
35:38
cyber CAD solutions
Рет қаралды 44 М.
AutoLISP & Dynamic Blocks - Part 1
33:20
Random CAD Stuff
Рет қаралды 10 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 108 МЛН