AutoLISP is a small, dynamically scoped, dynamically typed Lisp language dialect with garbage collection, immutable list structure, and settable symbols, lacking in such regular Lisp features as macro system, records definition facilities, arrays, functions with variable number of arguments or let bindings. The properties of these graphical entities are revealed to AutoLISP as association lists in which values are paired with AutoCAD group codes that indicate properties such as definitional points, radii, colors, layers, linetypes, etc.
LSP files. AutoLISP code can interact with the user through AutoCAD's graphical editor by use of primitive functions that allow the user to pick points, choose objects on screen, and input numbers and other data. After that, its development was neglected by Autodesk in favor of more fashionable development environments like Visual Basic for Applications VBA ,.
However, it has remained AutoCAD's main user customizing language. This is part of a long-term process of changing from VBA to.
NET for user customizing. Note the final line inside the function definition: when evaluated with no arguments, the princ function returns a null symbol, which is not displayed by the AutoCAD command-line interface.
Therefore, without the final call to the princ function, the result of this would be:. The above code defines a new function which generates an AutoCAD point object at a given point, with a one-line text object displaying the X and Y coordinates beside it. Defining Commands. Source Code Files. Point Lists. Dotted Pairs. Entity Names. Angular Conversion. String Conversions.
Coordinate System Transformations. Geometric Utilities. Unit Conversion. System and Environment Variables. Undoing Changes Made by a Routine. Accessing and Assigning Help to a Command. Accessing and Requesting User Input.
Controlling User-Input Function Conditions. Arbitrary Keyboard Input. Adding an Entity without Using the Command Function. Modifying an Entity without the Command Function.
Obtaining Entity Information. Selecting Objects and Selection Sets. Attaching Extended Data to an Entity. Symbol Tables. Dictionary Objects and Entries. Configuration Files. Controlling the Graphics and Text Windows. Controlling Low-Level Graphics. Controlling Menus. Calibrating Tablets. Searching for Files. File Descriptors. Error Handling. Catching Errors and Continuing Program Execution.
0コメント