This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service. Back to Topic Listing Previous Next.
Filter by Lables. Message 1 of 7. Hi all, I finally got the above mentioned book to learn Map. Skimming the book, I was disappointed that the first or so pages were 'useless' to me as I already know plain vanilla AutoCAD very well. I wish that someone would write a book that takes this into account and just get to the meat of the program.
I will look into the AOTC courseware and hope that the first half of the course doesn't teach how to draw lines, circles, etc. Message 2 of 7. Therefore, the first pages were not useless to me and may not be for other users of Map. I too would like to see another text be written for Map. David N. Message 3 of 7. If you're going that route don't get the Map 5 book as it only deals with what's new since Map i so get the Map i release 4.
Quick Overview. Action Expressions and Callbacks. Action Expressions. Contents ix Callback Reasons. Handling Tiles. Initializing Modes and Values. Changing Modes and Values at Callback Time. Handling Radio Clusters. Handling Sliders. Handling Edit Boxes. Requesting a Password.
List Boxes and Pop-Up Lists. List Operations. Processing List Elements. Image Tiles and Buttons. Creating Images. Handling Image Buttons. Application-Specific Data. DCL Error Handling. Dialog Box Function Summary. Function Sequence. Chapter 13 Contents Attribute Types. Restricted Attributes. User-Defined Attributes. Synopsis of Predefined Attributes. DCL Attribute Catalog. Predefined Active Tiles. Tile Clusters. Decorative and Informative Tiles. Text Clusters. Restricted Tiles. DCL Tile Catalog.
Programmable Dialog Box Function Synopsis. Dialog Box Opening and Closing Functions. Tile- and Attribute-Handling Functions. Image Tile-Handling Functions. Application-Specific Data-Handling Functions. Part IV Appendixes. Basic Functions. Application-Handling Functions. Arithmetic Functions. Equality and Conditional Functions.
Error-Handling Functions. Function-Handling Functions. List Manipulation Functions. String-Handling Functions. Symbol-Handling Functions. Utility Functions. Conversion Functions. Device Access Functions. Display Control Functions. File-Handling Functions. Geometric Functions. Query and Command Functions. User Input Functions. Extended Data-Handling Functions. Object-Handling Functions. Selection Set Manipulation Functions. Symbol Table and Dictionary-Handling Functions. Memory Management Functions.
ActiveX Collection Manipulation Functions. ActiveX Data Conversion Functions. ActiveX Method Invocation Functions. ActiveX Object-Handling Functions. ActiveX Property-Handling Functions. Curve Measurement Functions. Dictionary Functions. Reactor Functions. VLX Namespace Functions. Namespace Communication Functions. Windows Registry Functions.
Contents xi Syntax Coloring. Configure Current. Set Current Window to Prototype. Set All Windows to Prototype. Environment Options. General Options. Page Format Options. Save Settings. It is based on the LISP programming language, whose origins date back to the late s. The VLISP integrated development environment IDE provides features to help ease the tasks of source-code creation and modification, program testing, and debugging.
Debugging your program meant adding statements to print the contents of variables at strategic points in your program. You had to figure out where in your program to do this, and what variables you needed to look at. And finally, when you got the program to work correctly, you needed to either comment out or remove the debugging code you added. Some of these operations—like text editing—are available with other software tools. This permits text editing, program debugging, and interaction with AutoCAD and other applications.
File Compiler improves the execution speed and provides a secure and efficient delivery platform. Comprehensive Inspect and Watch features provide convenient access to variable and expression values for data structure browsing and modification. Project Management system makes it easy to maintain multiple-file applications. The basic functions of the Console correspond to the AutoCAD Text Screen functions and provide a number of interactive features, such as history scrolling and full-input line editing.
The Readme file is in the AutoCAD Help directory and contains information that became available too late to be included in this manual. Refer to the AutoLISP Reference when you need to look up the syntax of a function, or determine what a function returns. This is a matter of personal comfort: if you feel you need to understand how everything works before using a tool, 4 Introduction This chapter also explains compiler optimization features, and how to use them in a project.
Introduction Document Conventions This document follows a number of stylistic and naming conventions when describing actions or defining terms. Often, distinct typefaces are used to distinguish items from the rest of the text. Typographical conventions Text element Example Program code examples are displayed in 8 pt Courier font. Double-click the file name drawline. A FAS file named appname-init. Use the entget function Use vlax-import-type-library to import Document Conventions 7 For example, it includes information on creating customized menus, linetypes, and hatch patterns.
You may need to refer to the DXF Reference when working with association lists describing entity data. If you develop AutoLISP applications that implement reactor functions, you may want to refer to this manual. In the figure shown on this page, the toolbars are adjacent to one another, each toolbar beginning with an icon.
You can execute many, but not all, menu commands from the toolbars. If you move your mouse pointer over a toolbar button and leave it there for a couple of seconds, VLISP displays a tooltip indicating the function of the button.
You can also issue many Visual LISP commands from this window, instead of using the menu or toolbars. Status Bar The information displayed in the status bar located at the bottom of the screen varies according to what you are doing in VLISP. You may also see a minimized Trace window. Begin with the drawline. NOTE The sample files are only included in your installation if you chose Full install, or if you chose Custom install and selected the Samples item. If you previously installed AutoCAD and did not install the samples, rerun the install, choose Custom, and select only the Sample item.
VLISP opens the file in a new window—the text editor window—and displays the name of the file in the status bar. The asterisk remains next to that file name until you either save your changes or close the file.
You can work on more than one file at a time. For example, when you trace the sequence of events during a running AutoLISP program, the Trace function opens a window and displays program events. You cannot enter text in these output windows, but you can copy text from them and paste the text into the editor or Console windows.
As an example, click in the text editor window containing the drawline. View Copy and paste text, undo the last change you made to text or undo the last command entered in the Console window , select text in the VLISP editor or Console windows, match parentheses in expressions, and redisplay previous commands entered in the Console window. Debug Set and remove breakpoints in your program and step through program execution one expression at a time. You can then check the state of variables and the results of expressions.
Tools Set VLISP options for text formatting and various environment options, such as the placement of windows and toolbars. Help Display online help. This is similar to what you can do in the AutoCAD Command window, but there are a few differences—some subtle—in how you accomplish the same task in these two windows. To view the value of a variable in AutoCAD, you must precede the variable name with an exclamation point!
For example, output from the print and princ functions is displayed in the Console window. You can scroll through the Console window to view previously entered text and output. The following is a brief summary of these features: s s s s s s s s s 18 Chapter 1 Evaluating AutoLISP expressions and displaying the return values from those expressions. Evaluating multiple expressions at one time. Copying and transferring text between the Console and text editor windows.
Most text editor commands are also available in the Console window. Retrieving previous commands entered in the Console by pressing TAB.
You can press TAB repeatedly to retrieve earlier commands. Performing an associative search through the input history by pressing TAB. Pressing ESC clears any text following the Console prompt. For example, you can use this feature to copy and paste text in the Console command line, search for text, and initiate VLISP debugging features. Getting Started This allows you to find program components easily such as function calls and variable names, and helps you find typographical errors.
You can choose from a number of different formatting styles. Parenthesis Matching AutoLISP code contains many parentheses, and the editor helps you detect missing parentheses by finding the close parenthesis that goes with an open parenthesis. Multiple File Searching The text editor can search for a word or expression in several files with a single command.
Loading is the process by which functions in a program file are made available to the VLISP command interpreter. You can try this out with the drawline. To load and run a program in a Visual LISP text editor window 1 Make sure the text editor window containing the drawline. If you are not sure whether the window is active, click anywhere in the window to activate it.
What you see next depends on whether or not the AutoCAD windows are currently displayed on your desktop. If this is the case, you must manually switch to the AutoCAD window.
These functions have names that begin with vla-, vlax-, and vlr. The vlaxfunctions provide ActiveX utility and data conversion functions, dictionary handling functions, and curve measurement functions.
The vlr- functions provide support for AutoCAD reactors. Before you can use any of these functions, you need to load the AutoLISP extensions with the following function call: vl-load-com This function first checks whether or not the AutoLISP extensions are already loaded; if so, the function does nothing, otherwise it loads the extensions.
But if you write programs that use any of the extended AutoLISP functions, you need to call vl-load-com in those programs to ensure that the functions are available to other users running your code. Upon exiting AutoCAD, if you have made any changes to the code in any VLISP text editor window and have not saved those changes, you will be asked if you want to save your changes.
VLISP retains its state when you exit. This chapter describes the s Getting Organized s Using the Console Window s Using the Text Editor features that help you during the coding phase of program development. Design the program. Write the code. Format the code for readability. Check for errors in the program. To delete a particular drive alias, highlight it then click on Delete. This completes the exercise on Establishing Drive Aliases.
Companion Search. United States Change your region. Companion Contents: Home Exercises.
0コメント