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