Autolisp to Visual lisp: Design Solutions for Autocad instructor’s Guide Chapter One



Download 210.39 Kb.
Page5/8
Date05.05.2018
Size210.39 Kb.
#47999
1   2   3   4   5   6   7   8

Answers to Review Questions

2. DCL is used solely for the definition of dialog boxes whereas AutoLISP is used to develop applications that interface with or without dialog boxes.


3. Diesel is used solely for the customization of the AutoCAD status bar, whereas AutoLISP is used to develop applications that interface with or without dialog boxes.
4. Often the GUI interface is the only direct contact that the end user will have with an application. Therefore, if the interface is difficult to follow the user is more likely to not want to use the application.
5. The length of a string that can be passed to the MODEMACRO system cariable is limited by restrictions that are imposed by AutoLISP and the AutoLISP to AutoCAD communication buffer (255 characters).
6. MODEMACRO
7. True
8. False, DIESEL function can be nested within one another.
9. True
10. True
11. A custom tile used in a dialog. Prototypes are typically defined when the developer wants to keep a certain consistency among several different dialog boxes or when a particular arrangement of tiles is to be used over and over again in different dialog boxes.
12. To place a comment in a DCL file, the developer uses two forward slashes. When the comment is embedded within a line of DCL code it is separated from the code with a /* at the beginning of the comment and a */ at the end.
13. When supplied with a text string specifies the Key or tile that is Initially highlighted and therefore will be activated once the user presses enter.
14. A radio button is typically used by a programmer when it is necessary to limit the end user to only one possible selection from a group of options.
15. A list box is a component that is used to display text strings arranged in a vertical row. The list as well as the list box can be variable in length or a fixed length. A pop list when display at runtime will look similar to an edit box that has a downward pointing arrow displayed to its right.
16. User input can be entered into a dialog box by using either a edit box, toggles, radio buttons, buttons, image buttons, list boxes and popup list.
17. True
18. "This is an example or DIESEL"


19. "Drawing Name = $(getvar, dwgname"


20. "Drawing Name = ($getvar dwgname), Dim = $(getvar, dimstyle)"


21.


22. nil
23. 2.0001e+007
24. ; error: bad argument type: stringp 2.0001e+007
25.


26. "M=\nCurrent Time : $(edtime, $(getvar, date), DDDD MONTH DD YYYY HH:MM:SS AM/PM)"


27. "$(if, $(=, ans 1), The value of variable ans = 1"




Chapter Seven





Download 210.39 Kb.

Share with your friends:
1   2   3   4   5   6   7   8




The database is protected by copyright ©ininet.org 2024
send message

    Main page