几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】attribute defnition (http://www.dimcax.com/hust/showthread.php?t=15164)

yang686526 2009-05-04 04:22 PM

【转帖】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.