![]() |
【转帖】attribute defnition
attribute defnition
attribute defnition hi, how we can add attributes defnitions for a block thanks rajeev since you say "definitions": oddbblocktableptr ptable = m_pdb->getblocktableid().safeopenobject( oddb::kforwrite ); oddbblocktablerecordptr pentry = oddbblocktablerecord::createobject(); strname.format( _t("vertcheck_symbol_%d"), imarker ); pentry->setname( (odstring)strname ); idmarker = ptable->add( pentry ); double dcoordx[] = { 0, 0, 0.5, -0.5}; double dcoordy[] = { -0.5, 0.5, 0, 0}; addblocklines( pentry, dcoordx, dcoordy, 4 ); oddbattributedefinitionptr pattdef = oddbattributedefinition::createobject(); pentry->appendoddbentity( pattdef ); pattdef->setprompt( _t("error value: ") ); pattdef->settag( _t("error_value") ); it is very helpful thank you. hi, please help me. when i displaying texts in multiline, i could not caculate its width properly.i using oddbentityptr::getgeomextents(odext) function. how i can calculate width of total entity?. any help regarding this is very useful to me. thanks rajeev i am afraid i can't personally help you with that one. andrew |
所有的时间均为北京时间。 现在的时间是 12:56 PM. |