查看单个帖子
旧 2009-04-18, 04:27 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】求助 arx帮助文件

求助 arx帮助文件
求助 arx帮助文件
手头只有一电子版本中文arx帮助文件 chm格式的
发现其中没有acedgetstring的说明
请大家推荐个好的帮助文件
比如英文版的
谢谢
//另请教
//为什么加入
//acrx_abort("\n应用程序关闭块表失败,错误码为:%s",
// acaderrorstatustext(es));
//就会出现告警?
// objectarx defined commands
#include "stdafx.h"
#include "stdarx.h"
#include "dbents.h "
#include "acdocman.h"
#include "acedads.h"
acad::errorstatus createcircle(acdbobjectid &circleid)
{
circleid =acdbobjectid::knull;
acgepoint3d center(9.0,3.0,0.0);
acgevector3d normal(0.0,0.0,1.0);
acdbcircle *pcirc =new acdbcircle(center, normal,2.0);

if(pcirc==null)
return acad::eoutofmemory;
acdbblocktable *pblocktable;
acad::errorstatus es=acdbhostapplicationservices()->workingdatabase()
->getsymboltable(pblocktable,acdb::kforread);
if(es!=acad::eok)
{
delete pcirc;
return es;
}
acdbblocktablerecord *pblocktablerecord;
es = pblocktable->getat(acdb_model_space,
pblocktablerecord,acdb::kforwrite);
if(es!=acad::eok)
{
acad::errorstatus es2=pblocktable->close();
if(es2!=acad::eok)
{
//acrx_abort("\n应用程序x关闭块表失败,错误码未:%s",acaderrorstatustext(es2));
}
delete pcirc;
return es;
}
es=pblocktable->close();
if(es!=acad::eok)
{
//acrx_abort("\n应用程序关闭块表失败,错误码为:%s",
// acaderrorstatustext(es));
}
es=pblocktablerecord->appendacdbentity(circleid,pcirc);
if(es!=acad::eok)
{
acad::errorstatus es2 =pblocktablerecord->close();
if(es2!=acad::eok)
{
acrx_abort("\n应用程序关闭模型空间块表记录失败,错误码为:%s",acaderrorstatustext(es2));
}
delete pcirc;
return es;
}
es=pblocktablerecord->close();
es=pcirc->close();
return es;


}
// this is command 'createcircle'
void defcreatecircle()
{
// todo: implement the command
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)