|
各位大侠:
你们好!
我用acedCommand命令画线。但怎么执行时出现了异常。
void DrawL()
{
AcGePoint3d pt,pt1,pt2,pt3,pt4,pt5,pt6,pt7,pt8;
acedGetPoint(NULL,"Please select insert point:",asDblArray(pt));
pt1[X]=pt[X];
pt1[Y]=pt[Y];
pt2[X]=pt1[X];
pt2[Y]=pt1[Y]+10;
pt3[X]=pt2[X]-5;
pt3[Y]=pt2[Y];
pt4[X]=pt3[X];
pt4[Y]=pt3[Y]+10;
pt5[X]=pt4[X]+20;
pt5[Y]=pt4[Y];
pt6[X]=pt5[X];
pt6[Y]=pt5[Y]-10;
pt7[X]=pt6[X]-5;
pt7[Y]=pt6[Y];
pt8[X]=pt7[X];
pt8[Y]=pt7[Y]-10;
acedCommand(RTSTR,"LINE",RT3DPOINT,pt1,RT3DPOINT,pt2,RT3DPOINT,pt3,RT3DPOINT,pt4,RT3DPOINT,pt5,RT3DPOINT,pt6,RT3DPOINT,pt7,RT3DPOINT,pt8,RT3DPOINT,pt1,0);
}
谢谢。。 |
|