3 AutoLisp Programming : DataTypes


1 AutoLisp Programming : Introduction

2 AutoLisp Programming : Basic Knowledge Essentials

3 AutoLisp Programming : DataTypes

4 AutoLisp Programming : Arithmetic Functions

5 AutoLisp Programming : Trignometric Functions

6 AutoLisp Programming : Mathematical Functions

7 AutoLisp Programming : Exercise 01

8 AutoLisp Programming : Structure Functions

9 AutoLisp Programming : All Commands


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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s