查看单个帖子
旧 2009-05-04, 04:22 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)