Programming
in C/C++
Owen Ransen
PREFACE XV
Who Should Read This Book? xv
What Do I Need To Start Programming Autocad In C And C++? xvi
A Note On The Text xvii
Source Code Availability xvii
Acknowledgements xviii
Contacting The Author xviii
1 PROGRAMMING AUTOCAD 1
1.1 Introduction 1
1.2 why Use Autocad? 1
1.3 Autolisp, C Or C++? 2
1.4 Pure Ads, Arx And Rxads 5
1.4.1 Pure Ads 5
1.4.2 Arx 6
1.4.3 Rxads 7
1.4.4 Mixed Ads And Arx Programming 7
4 USER INPUT 35
4.1 Introduction 35
4.2 User Input With The Ads_Getxxx() Functions 35
4.3 Using Ads_Initget() To Control User Input 36
4.4 Allowing Default Responses To Ads_Getxxx(), Rsg_Nonull 37
4.5 Ads_Getxxx() Return Values, Gracefully Accepting Rejection, Rtcan 38
4.6 Keyword Input To Help Selection 38
4.7 Two Ready-Made Dialog Boxes 40
4.7.1 The Ads_Alert() Function 40
4.7.2 The File Selection Dialog Box 41
4.8 Other Text Output 42
4.9 Long Loops And Aborting Commands, Ads_Usrbrk() 43
4.10 Listings 45
5.5 Listings 65
INDEX 483