2011

Table Of Contents
The following example shows one method of ensuring that your startup
function works with other functions.
(defun-q MYSTARTUP ( )
... your startup function ...
)
(setq S::STARTUP (append S::STARTUP MYSTARTUP))
The previous code appends your startup function to that of an existing
S::STARTUP function and then redefines the S::STARTUP function to include
your startup code. This works properly regardless of the prior existence of an
S::STARTUP function.
ObjectARX
ObjectARX technology provides the foundation for design software applications
to share intelligent object data. You can run third-party ObjectARX application
programs or write your own.
Overview of ObjectARX
ObjectARX
®
(AutoCAD for Mac Runtime Extension) is a compiled-language
programming environment for developing AutoCAD for Mac applications.
The ObjectARX programming environment allows you to load and run your
compiled projects in the same address space as AutoCAD for Mac. This allows
your programs to operate directly with core AutoCAD for Mac data structures
and code.
The ObjectARX libraries allow you to take advantage of the AutoCAD for Mac
open architecture, providing direct access to the AutoCAD for Mac database
structures, graphics system, and AutoCAD for Mac geometry engine to extend
AutoCAD for Mac classes and capabilities at runtime. Additionally, you can
define new commands that operate exactly the same way as native AutoCAD
for Mac commands.
You can use ObjectARX libraries in conjunction with AutoLISP, enabling
cross-API integration.
The ObjectARX programming environment is described in the ObjectARX
Developer's Guide. The documentation is part of the ObjectARX Software
Development Kit (SDK), which can be downloaded from the Development
Tools section of the Autodesk website.
102 | Chapter 7 Introduction to Programming Interfaces