![]() |
【转帖】求助 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 } |
所有的时间均为北京时间。 现在的时间是 03:52 AM. |