查看单个帖子
旧 2009-05-06, 06:18 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】name of arrow of dimension

name of arrow of dimension
name of arrow of dimension
i come from china. i am a college student.now, i have a question with secondary develop.
i want to know the name of arrow of dimension ,the program is as follow:
acad::errorstatus es;
styleobjid1=acdbdimension::cast(pentity)->dimensionstyle();
if (styleobjid1 != acdbobjectid::knull) {
acutprintf(" styleobjid1 != acdbobjectid::knull");
}
es = acdbopenacdbobject(temp1,styleobjid1,acdb::kforrea d); /////
if (es == acad::eok)
{
acutprintf(" acdbopenacdbobject success");
}
acdbdimstyletablerecord* precord1 =acdbdimstyletablerecord::cast(temp1); //
arrow_style1=precord1->arrowid(acdb::kfirstarrow); ///getdimblk1(poutputname); //dimblk()
if (arrow_style1 == acdbobjectid::knull) {
acutprintf(" arrow_style1 == acdbobjectid::knull");
}
acdbsymboltablerecord* tblrec;
es = acdbopenobject(tblrec, arrow_style1, acdb::kforread);
if (es == acad::eok) {
const char* locname;
tblrec->getname(locname);
acutprintf(" the name of firstarrow: %s", locname);
tblrec->close();
}
temp1->close();
pdimstyletable->close();
precord1->close();
i find that the question is that arrow_style1 is acdbobjectid::knull and the locname printed is empty string.
i can not get the name of the arrow of dimension.
it is important to me.can you help me?
thank you very much!
arrow id equal acdbobjectid::knull means "closed filled".
best regards,
sergey z.
thanks, sergey
now i understand,and i test other type of arrow,it' ok.thanks a lot!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)