查看单个帖子
旧 2009-04-16, 07:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】修改线宽无法实现啊!!急急

修改线宽无法实现啊!!急急
修改线宽无法实现啊!!急急
我感觉是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,你查下帮助就知道了
恩,谢谢,问题已经解决
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)