Datatypes of AutoLISPDatatypes:
INTEGER: An Integer is a whole number that does not contain any decimal points. value which can be stored is from a range of +2,147,483,647 to -2,147,483,647.
To set an Integer value use the following syntax. This will assign 123456 value to symbol A.
(setq A 123456)
REAL: A real number that contain decimal points (i.e floating point numbers) which can be nagative or positive numbers.
To set a real value use the following syntax. This will assign 123456.123456 value to symbol A.
(setq A 123456.12345)
STRING: A String is a group of ALPHANUMERIC character enclosed by double quotes..
To set a string use the following syntax. This will assign “Manoj Madhavan” value to symbol Name.
(setq Name “Manoj Madhavan”)
LIST: A List start with a left parenthesis followed by any number of atoms and lists and terminated by a right parenthesis.
To set a list use the following syntax.
(3 2 4) or (x y z)
SYMBOL: It is a name given to a variable to hold data during the execution of the program.
my_name, your_name, Age etc.
CONSTANTS: A constant is a variable which does not change its value from time to time. AutoLISP already has some constants defined like T for TRUE, PI for 3.14159 etc.
SUBRS: Subroutines are small function codes which are build together to make a command.
FILE DESCRIPTOR: This is a pointer to the file that a program can access.
ENTITY NAME: AutoCAD assigns an unique name to each object in the current drawing, in AutoLISP we can access these object from AutoCAD database with the help of entity name.
SELECTION SET: Selection Set is a collection or an array of entity names.