1.

Record Nr.

UNINA9910465427903321

Autore

Ambrosius Lee

Titolo

AutoCAD platform customization : AutoLISP / / Lee Ambrosius ; book designers Maureen Forys, Happenstance Type-O-Rama, Judy Fung

Pubbl/distr/stampa

[Somerset County, New Jersey] : , : Sybex, , 2014

©2014

ISBN

1-118-90696-9

1-118-90055-3

Edizione

[1st edition]

Descrizione fisica

1 online resource (427 p.)

Collana

Autodesk

Disciplina

620.004202855369

Soggetti

AutoLISP (Computer program language)

Electronic books.

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

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

Repeating Expressions a Set Number of Times

Sommario/riassunto

Customize and personalize programs built on the AutoCAD platform AutoLISP is the key to unlocking the secrets of a more streamlined experience using industry leading software programs like AutoCAD, Civil 3D, Plant 3D, and more.  AutoCAD Platform Customization: AutoLISP 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. It also features a resources appendix and downloadable datasets and customization examples-tools that ensure swift and easy adoption. Find out how to r