objectarx tutorial

objectarx tutorial

Anonymous
Not applicable
830 Views
1 Reply
Message 1 of 2

objectarx tutorial

Anonymous
Not applicable
ok, so why does the tutorial show you one way to make .arx files then tells you to install the wizard and use that, which uses a completly differnt approach for creating .arx files. what is ADS??? and what is a ADA_name data type? and where is the entry_point() method when the wizard creates the template???
0 Likes
831 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi,

ADS is the old C API of AutoCAD which was introduced in R11/R12. ObjectARX
is a C++ API which was introduced in R13. ObjectARX also contains the ADS
API.
ADA_name is not a ADS/ObjectARX type, but ads-name is! an ads_name is
equivalent to an AcDbObjectId, but ads_name is the ADS type for object
identity. Some ADS/ObjectARX API still requires an ads_name parameter.

The ObjectARX Wizards is not doing any different from what the tutorial is
doing, but embed the acrxEntryPoint() into a class. Wizards generated code
uses a dbxEntryPoint.h/arxEntryPoint.h where the function is defined, but
you do not need to know the details of this implementation at all. All you
need to do is to add your code in the On_k... methods of the entrypoint
class defined in the entrypoint.cpp file.

Hope it helps,
cyrille
0 Likes