AutoCAD Platform Customization : AutoLISP.
Giving you the power to enhance your program's experience and output, this book provides real-world examples that show you how to do everything from modifying graphical objects and reading and setting system variables to communicating with external programs. --
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sybex,
2014.
Ã2014 |
Colección: | Autodesk.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Title Page; Copyright; Contents; Introduction; Chapter 1 Quick Start for New AutoLISP Programmers; Working with AutoLISP Expressions; Working with Commands and Input; Conditionalizing and Repeating Expressions; Grouping Expressions; Storing and Loading AutoLISP Expressions; Chapter 2 Understanding AutoLISP; Getting Started with AutoLISP; Understanding the Syntax of an Expression; Executing Expressions; Accessing the AutoLISP Documentation; Storing and Retrieving Values; Setting and Using Variables; Working with System Variables; Accessing Environment Variables; Exploring Data Types
- Leveraging AutoCAD and Third-Party CommandsUsing the command Function; Using the command-s Function; Working with Commands That Display a Dialog Box; Defining and Using Custom Functions; Defining a Custom Function; Using a Custom Function; Example: Drawing a Rectangle; Chapter 3 Calculating and Working with Values; Calculating Values with Math Functions; Performing Basic Math Calculations; Performing Advanced Math Calculations; Working with Bitwise Operations; Manipulating Strings; Concatenating Strings; Getting the Length of and Searching for Strings; Replacing and Trimming Strings
- Changing the Case of a StringEvaluating Values to Strings; Converting Data Types; Converting Numeric Values to Strings; Converting Strings to Numeric Values; Converting Numeric Values to Other Number Types; Returning a Value from a Custom Function; Exercise: Drawing a Rectangle (Revisited); Creating the drawplate.lsp File; Revising the drawplate Function; Adding the Revised drawplate Function to drawplate.lsp; Creating the utility.lsp File; Loading the LSP Files into AutoCAD; Chapter 4 Working with Lists; What Are Lists?; Creating a List; Getting an Element from a List
- Retrieving a Specific ElementStepping Through a List; Appending, Substituting, and Removing Elements; Appending Elements; Substituting Elements; Removing Elements; Determining Whether an Item Exists in a List; Sorting the Elements of a List; Using Point Lists to Calculate Geometric Values; Measuring Angular and Distance Values; Calculating Points; Finding and Snapping to Points; Translating Points; Converting Measurement Units; Accessing the AutoCAD Calculator; Converting Lists to Strings and Strings to Lists; Exercise: Adding Holes to the Plate
- Defining the New Get-Sysvars and Set-Sysvars Utility FunctionsDefining the New createcircle Utility Function; Revising the drawplate Function; Using the Revised drawplate Function; Chapter 5 Requesting Input and Using Conditional and Looping Expressions; Interacting with the User; Requesting Input at the Command Prompt; Providing Feedback to the User; Working with the Graphics Windows; Conditionalizing and Branching Expressions; Comparing Values; Grouping Comparisons; Validating Values; Evaluating if a Condition Is Met; Testing Multiple Conditions; Repeating and Looping Expressions