Subscribe
Tutorial search

AutoCAD Autolisp Lesson Tutorials


Sort by:
Autolisp Lesson #7 - Program Control
Autolisp Lesson #7 - Program Control
AutoLISP has many predefined functions to allow you to control your programs. Some of these functions are what are known as "relational" operators, and some are known as "conditional" operators.
Difficulty:
Autolisp Lesson #8 - Looping
Autolisp Lesson #8 - Looping
There are three basic styles of loops you can use, the first is the counting loop, the second is the continuously evaluating loop, and the third is the endless loop. The counting loop goes through the loop a certain predetermined number of times. The continuously evaluating loop, loops until some condition is met at which time it terminates. The endless loop executes forever, it`s the kind we don`t want to write in our lisp programs.
Difficulty:
Autolisp Lesson #10 - Input And Output
Autolisp Lesson #10 - Input And Output
The most important part of any program, other than the internal calculations that occur, will be the input / output section. These are the parts of your program that deal with getting Information from the user and storing or retrieving data from a storage area. The Dialog Control Language (DCL) will not be covered in this text, due to the expansive nature of the subject. The user interface
Difficulty:
Autolisp Lesson #2 - The Autolisp Environment
Autolisp Lesson #2 - The Autolisp Environment
The AutoLISP environment is entered when AutoCAD receives a "(" symbol at the command line. When AutoCAD sees the opening parentheses, it runs the AutoLISP interpreter. The interpreter then evaluates, as a list, what is between the opening "(" symbol and the closing ")" symbol.
Difficulty:
Autolisp Lesson #6 - Numbers & Letters
Autolisp Lesson #6 - Numbers & Letters
As you should know by now, all lists in AutoLISP start with a function and the remainder of the list is the arguments to the function. Math in AutoLISP is no different. If you want to add two numbers you first give the function name which is "+" then you give the numbers you want the addition performed on. The rest of the math function works the same way.
Difficulty:
Autolisp Lesson 9 - Data Structures
Autolisp Lesson 9 - Data Structures
All data structures in AutoLISP are list`s. Everything in AutoLISP is a list, if it`s not a function, it`s a list. If it`s a list, it`s a data structure.
Difficulty:
Autolisp Lesson #3 - Comments
Autolisp Lesson #3 - Comments
Why comment: In the lifecycle of a program there will be times when it is necessary to make changes, comments should be viewed as a revision and quality control function. Comments should only be written to aid in the later modification of the program or to find out what version of a particular program or function is currently being used. A good comment states something that is not obvious from looking at the code.
Difficulty:
Autolisp Lesson #4 - Program Format
Autolisp Lesson #4 - Program Format
An AutoLISP program can be written many ways, but there are certain structural points that are common to all programs. Here you will learn how to put together a program, structured in the manner that best suits your current application. One of the main differences between programming in AutoLISP and programming in other languages, is AutoLISP is an interpreted language, as I have stated before. That means it will take one line of code at a time and evaluate it by itself. You don`t have to write
Difficulty:
Autolisp Lesson #5 - Variables
Autolisp Lesson #5 - Variables
Variables are used as the principle means to store values. Files may also be used to store values, but variables are what store values for short-term use.
Difficulty:
Search Term(s) (2): autolisp lesson