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

about function setdimblockid
about function setdimblockid
when i use dwgdirect1.12 for creating a dwg file, i had created a oddbrotateddimension entity: first, create a dimension look block.
then use the oddbdimension::setdimblockid(const oddbobjectid&) member function to set this block as the look associated with this dimension. after generated the dwg file, i found the dimblock did not work, the dwgdirect created another dimblock automatically associated with that dimension entity. i am very puzzled, which talent could tell me why i could not set my dimblock to a dimension entity and how to forbid the dwgdirect sdk recomputing and setting the dimblock automatically?
if you need to make the dimension block yourself call
pdim->recordgraphicsmodified(false) after setting all properties to the dimension. it will prevent block from recomputing.
but note that any modification of this dimension in autocad (and in dd) will cause recomputing of dimension block.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)