Current location - Health Preservation Learning Network - Slimming men and women - What is the LISP language in Auto cad? What's the use?
What is the LISP language in Auto cad? What's the use?
AutoLISP language is a programming language based on general LISP language, which extends many functions suitable for CAD applications. It is an explanatory evaluation language, which is slow and difficult to keep secret. It can be edited by any text editing software and saved in plain text format.

Everything in AutoLISP language is given in the form of functions, and it has no sentence concept or other grammatical structure. Executing AutoLISP program is to execute some functions and then call other functions.

(set qpt1(getpoint "\ nplease select the center insertion point").

(command "circle" pt1100); Command this insertion point to draw a circle with a radius of 100.

Extended data:

LISP(LISP, abbreviation of list processing) is an important table processing language developed in the early days. It is suitable for symbol processing, automatic reasoning, hardware description and VLSI design.

It is characterized by using table structure to represent non-numerical calculation problems, and the implementation technology is simple. LISP language has become the most influential and widely used artificial intelligence language.

In LISP language, data and functions are defined by symbolic expressions, and symbolic expressions are called S expressions, which are the collective names of primitive and table. Atoms are divided into symbolic atoms and several atoms.

Symbol atom refers to a string consisting of a limited number of uppercase letters and numbers, in which the first symbol must be a letter. Atoms NIL and t stand for logical false (or empty table) and logical true respectively. Digital atom refers to a series of numbers, the positive and negative of which are represented by symbols.

LISP language is not only widely used in expert system and CAD, but also in symbolic algebra, theorem proving, robot planning and other fields.

The main reasons that affect the use of LISP language are: first, LISP is a non-visual language; Secondly, the efficiency of LISP on general-purpose computers is low; Thirdly, the numerical calculation ability of LISP is poor; Fourth, people are not used to the programming style of functional languages.

Baidu encyclopedia -lisp language