1.six ARX class unions
AcRx: for register and recognition/identification.(key function:cast());
AcEd: in support reactor(Undo,ESC).
AcDb: to store user's data of graphics including the info of layer,linetype,textstyle es.
AcGi: support service procedures
AcGe: general class primary in geometry.It contains vector,point,and matrix and so on.
ADSRX:derived from ADS,using C programme language.
2.extern function
ex:
extern "C" AcRx::AppRetCode
acrxEntryPoint()
{
}
extern "C" gives AutoCAD system a notice,informing that acrxEntryPoint is a extern function.
acrxEntryPoint is the function's name, and its return type is AcRx::AppRetCode.
3.the statement of a function with a parameter with default value.
ex:
.h
static double RToG(double a=0);
.cpp
::RToG(double a)
{
}
Notes:
The parameter with a default value should be declared in the .h document.
Don't do this in the .cpp document .It's not allowed.
4.AcDbPolyline::addVertexAt(,,double bulge=0,,);
bulge:a parameter is used when you are going to create a polyline (line or arc ) with two or more points.
it equals tan((double)angle between the two points/4 ).If is bigger than 1,the arc is called superior arc,if not ,it is a inferior arc .
5.append ()
add a point into a array.
6. graphics closed open editing
Handle ID Pointer
7.the deference between close() and setClose();
p->close() .close a object
p->setClose().It sets the polyline to be closed.