- 5
- 0
- 约3.42千字
- 约 13页
- 2019-03-20 发布于天津
- 举报
道路CAD上机作业
1、hello world!
// This is command HELLO
void winhello()
{
acutPrintf(Hello World!);
// TODO: Implement the command
}
2、test command
// This is command TEST
void wintest()
{
AcGePoint3d p1,p2;
p1.x=0,p1.y=0;
p2.x=200,p2.y=100;
crtLine(p1,p2);
// TODO: Implement the command
}
3、画圆command(此程序使用老师上课讲的改变颜色的函数)
// This is command YUAN
void winyuan()
{
AcGePoint3d p1;
int i;
double r = 100;
p1.x=0,p1.y=0;
for(i=1;i100;i++)
{
AcDbObjectId id;
id=crtCircle(p1,r);
changeColor(id,i);
r++;
p1.z++;
}
// TODO: Implement the command
}
4、五角星command
// This is command
原创力文档

文档评论(0)