![]() |
【转帖】修改线宽无法实现啊!!急急
修改线宽无法实现啊!!急急
修改线宽无法实现啊!!急急 我感觉是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. |