几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】修改线宽无法实现啊!!急急 (http://www.dimcax.com/hust/showthread.php?t=7109)

yang686526 2009-04-16 07:43 PM

【转帖】修改线宽无法实现啊!!急急
 
修改线宽无法实现啊!!急急
修改线宽无法实现啊!!急急
我感觉是setlineweight函数中的acdb::lineweight枚举类型的原因,谁能帮我改该啊?就是最后的那一句啊!!
void zzxchangelinewid()
{
#ifdef oarxwizdebug
acutprintf ("\noarxwizdebug - zzxchangelinewid() called.");
#endif // oarxwizdebug
// todo: implement the command
//open the entity
acdbblocktable* pblktbl;
acdbblocktablerecord* pblktblred;
if (acdbhostapplicationservices()->workingdatabase()->getblocktable(pblktbl, acdb::kforread) != acad::eok)
{
acutprintf(_t("\n connot open the blocktable!"));
return;
}
pblktbl->getat(acdb_model_space, pblktblred, acdb::kforread);
pblktbl->close();
acutprintf("111");
//build an iterator
acdbblocktablerecorditerator* pitr;
pblktblred->newiterator(pitr);

//iterate the entity
for (pitr->start(); !pitr->done(); pitr->step())
{
acdbentity* pent;
if (pitr->getentity(pent, acdb::kforwrite) != acad::eok)
{
acutprintf(_t("\n connot open the entity!"));
return;
}
//change the lineweight of entity
acdb::lineweight lineweight= pent->lineweight();
lineweight= ???????????????;// who can compelete it ?????
if (pent->setlineweight(lineweight) != acad::eok)
{
pent->close();
}

pent->close();
}
//delete the iterator
delete pitr;
pblktblred->close();
}
我是初学者,高手来一下啊
pent->setlineweight(klnwt009)
acdb::lineweight是个enum,你查下帮助就知道了
恩,谢谢,问题已经解决


所有的时间均为北京时间。 现在的时间是 05:54 AM.