没有合适的资源?快使用搜索试试~ 我知道了~
首页ObjectARX&Dummies教程.pdf
ObjectARX&Dummies教程.pdf

这个资料来源于http://www.objectarx.net/bbs/index.php论坛,我做了简单的处理,然后做成了pdf的电子书,谢谢大家观看!也希望大家都能掌握ObjectARX这门技术
资源详情
资源评论
资源推荐

ObjectARX&Dummies
教程(一)——
Overview
一个巴西人写的
ObjectARX
教程,其后面所讲到的自定义实体
的教程,应该是这方面最好的教程了。
呵呵,没时间翻译,大家就将就着看英文吧。
Class 1 - Overview
Introduction
ObjectARX is an AutoCAD Runtime Extension.
With ObjectARX SDK you can build applications that will alow you to
extend AutoCAD features like commands, dialog boxes, entities, objects
and much more.
The ObjectARX application is actually a DLL that is loaded into
AutoCAD environment and allows you to access new features as
mentioned above. To be able to build these DLLs you need to follow
some basic rules to setup Microsoft Visual Studio.NET environment and
assert your application will respect AutoCAD requirements.
The performance of this application will be the same of native
features. By the way, Autodesk uses ObjectARX to build vertical
products you may already know like Autodesk MAP and Architectural
Desktop, among many others.

User Requirements
Because ObjectARX is not a simple customization tool, some
requirements must be observed to allow you to be able to proceed. If you
don't match these requirements I would recommend you to first increase
your skills and then go back to try this course.
The minimum requirements to learn at least basic ObjectARX are:
(
1
)
Basic Visual Studio.NET concepts;
(
2
)
Average C++ knowledge;
(
3
)
Advanced AutoCAD knowledge;
(
4
)
MFC (Microsoft Foundation Classes) concepts;
(
5
)
Object Oriented Techniques;
As mentioned before, this course is not intended to be a complex
guide or even cover advanced features. I believe you can go further by
yourself after learn the basic features and mainly the basic concepts
which are the secret of ObjectARX.
I will not cover .NET Framework capabilities to make the course as
much simple as I can. Once you learn and figure out how AutoCAD
works from inside you will open your mind to ObjectARX capabilities
and will be able to build great application!
How to use ObjectARX SDK
Once you have downloaded your copy of ObjectARX SDK and

extracted it to your hard drive, you will find the following folders inside
it:
\arxlabs : This directory consists of a set of labs that shows some aspects
of the ObjectARX.
\classmap
:
This directory contains an AutoCAD drawing with the ObjectARX
class hierarchy tree.
\docs
:
This directory contains the ObjectARX online help files.
\inc
:
The inc directory contains the ObjectARX header files.
\lib
:
The lib directory contains the ObjectARX library files.
\redistrib
:
This directory contains DLLs that may be required for an
ObjectARX application to run.
\samples
:
This directory contains examples of ObjectARX applications.
\utils
:
This directory contains other libraries like brep for boundary
representation and ObjARXWiz for the ObjectARX wizards.
ObjectARX Classes Naming
ObjectARX classes names follow the following prefix standards:
AcRx : Classes for binding an application and for runtime class
registration and identification.
AcEd : Classes for registering native AutoCAD commands and for
AutoCAD event notification.
AcDb : AutoCAD database classes.
AcGi : Graphics classes for rendering AutoCAD entities.

AcGe : Utility classes for common linear algebra and geometric
objects.
Depending on which set of features you use in your applications you
will need to use the corresponding library as follows:
AcRx : acad.lib, rxapi.lib, acdb16.lib
AcEd : acad.lib, rxapi.lib, acedapi.lib, acdb16.lib
AcDb : acad.lib, rxapi.lib, acdb16.lib
AcGi : acad.lib, rxapi.lib, acdb16.lib
AcGe : acad.lib, rxapi.lib, acge16.lib, acdb16.lib
ObjectARX Wizard
I will bypass the Visual Studio environment configuration to build
ObjectARX applications. You could refer to this information inside SDK
documentation. We will use on this course the Wizard provided by ADN
(Autodesk Developer Network) team. It is located inside ObjectARX
directory called \utils\ObjARXWiz. Inside it you will find the installation
package named ArxWizards.msi.
To install this Wizard, close your Visual Studio.NET and double click
the above mentioned file. Follow the steps. When finished, open Visual
Studio.NET again and you will see a new toolbar.
See you on Class 2!

ObjectARX&Dummies
教程(二)——
AutoCAD's Database
Class 2 - AutoCAD's Database
Introduction
Each AutoCAD drawing represents a structured Database which
stores several types of objects. When you just open a new drawing,
AutoCAD creates behind the scenes a organized and efficient Database.
This Database has a minimun data that allows you to make basic
drawings.
This minimun data is represented basically by objects like layers,
linetypes, text styles, etc. Due that you have layer 0, stadard text style,
continuous linetype and others.
Since AutoCAD Release 2000 you can work with multiple drawings
at the same time which is called MDI environment. This functionality
brings great flexbility but also bring some extra complexity when dealing
with more than one drawing. We won't discuss MDI aspects on this
course but this will be probably a requirement for your future ObjectARX
applications.
How data is stored
This Database mantains all sort of objects a drawing needs to exist.
These objects are stored into appropriate containers which are special
剩余119页未读,继续阅读
















安全验证
文档复制为VIP权益,开通VIP直接复制

评论2