Home Page Icon
Home Page
Table of Contents for
Title Page
Close
Title Page
by Lee Ambrosius
AutoCAD Platform Customization
Title Page
Copyright
Publisher's Note
Dedication
Acknowledgments
About the Author
Introduction
About This Book
Is This Book for You?
AutoLISP in AutoCAD
What to Expect
Other Information
Styles and Conventions of This Book
Contacting the Author
Chapter 1: Quick Start for New AutoLISP Programmers
Working with AutoLISP Expressions
Storing and Loading AutoLISP Expressions
Chapter 2: Understanding AutoLISP
Getting Started with AutoLISP
Storing and Retrieving Values
Exploring Data Types
Leveraging AutoCAD and Third-Party Commands
Defining and Using Custom Functions
Example: Drawing a Rectangle
Chapter 3: Calculating and Working with Values
Calculating Values with Math Functions
Manipulating Strings
Converting Data Types
Returning a Value from a Custom Function
Exercise: Drawing a Rectangle (Revisited)
Chapter 4: Working with Lists
What Are Lists?
Creating a List
Getting an Element from a List
Appending, Substituting, and Removing Elements
Determining Whether an Item Exists in a List
Sorting the Elements of a List
Using Point Lists to Calculate Geometric Values
Converting Lists to Strings and Strings to Lists
Exercise: Adding Holes to the Plate
Chapter 5: Requesting Input and Using Conditional and Looping Expressions
Interacting with the User
Conditionalizing and Branching Expressions
Repeating and Looping Expressions
Exercise: Getting Input from the User to Draw the Plate
Chapter 6: Creating and Modifying Graphical Objects
Working with Entity Names and Dotted Pairs
Adding Objects to a Drawing
Selecting Objects
Modifying Objects
Working with Complex Objects
Extending an Object's Information
Exercise: Creating, Querying, and Modifying Objects
Chapter 7: Creating and Modifying Nongraphical Objects
Working with Symbol Tables
Working with Dictionaries
Exercise: Creating and Incrementing Room Labels
Chapter 8: Working with the Operating System and External Files
Storing Information in the Windows Registry or a Plist File
Accessing Data from External Files
Working with Directories and Files in the Operating System
Exercise: Reading and Writing Data
Chapter 9: Catching and Handling Errors
Identifying and Tracking Down Errors
Catching Errors in a Program
Defining and Using a Custom Error Handler
Grouping Functions into a Single Undo Action
Exercise: Handling Errors in the drawplate Function
Chapter 10: Authoring, Managing, and Loading AutoLISP Programs
Storing AutoLISP Expressions
Writing Modular Code
Adding Comments
Undefining and Redefining Standard AutoCAD Commands
Defining a Startup Function
Loading AutoLISP Files
Managing the Locations of AutoLISP Files
Deploying AutoLISP Files
Exercise: Deploying the drawplate Function
Chapter 11: Using the Visual LISP Editor (Windows only)
Accessing the Visual LISP Editor
Managing AutoLISP Files with the Visual LISP Editor
Formatting an AutoLISP File
Validating and Debugging Code
Creating a Visual LISP Project
Compiling LSP and PRJ Files into a VLX File
Exercise: Working with the Visual LISP Editor
Chapter 12: Working with ActiveX/COM Libraries (Windows only)
Understanding the Basics of ActiveX
Importing COM Libraries
Using the AutoCAD COM Library
Leveraging the Windows and Microsoft Office COM Libraries
Chapter 13: Implementing Dialog Boxes (Windows only)
What Is Dialog Control Language?
Defining and Laying Out a Dialog Box
Loading and Displaying a Dialog Box
Interacting with and Responding to a User
Exercise: Implementing a Dialog Box for the drawplate Function
End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Contents
Next
Next Chapter
Copyright
AutoCADĀ® Platform Customization AutoLISPĀ®
Lee Ambrosius
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset