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