![]() |
【转帖】export text of dimensions gets los
export: text of dimensions gets lost
export: text of dimensions gets lost hi, i recently updated my code to version 2.1.0. now i noticed that on export my dimension entites lose their text. in autocad, only after modifying the entity, the text is new calculated. the only thing i changed is setdimensiontext(..), which now is fed with unicode strings - however, i don't think that this could be the reason... code: // create the object oddbrotateddimensionptr poddimension = oddbrotateddimension::createobject(); // set data poddimension->setlayer( *m_poddimblklayerid, true ); poddimension->setlinetype( *m_podlinetypeid, true ); poddimension->setcolorindex( getcolor( m_icolor ) ); //poddimension->setlineweight( getlineweight( )); poddimension->setdimensionstyle( *m_poddimstyleid ); poddimension->setdimlinepoint( odgepoint3d( dlinedefptx, dlinedefpty, 0.0 ) ); // dxf 10 poddimension->setxline1point( odgepoint3d( ddefpt2x, ddefpt2y, 0.0 ) ); // dxf 13 poddimension->setxline2point( odgepoint3d( ddefpt3x, ddefpt3y, 0.0 ) ); // dxf 14 poddimension->usesettextposition(); poddimension->settextattachment(oddbmtext::kbottomcenter); poddimension->settextposition( odgepoint3d( dtextmidptx, dtextmidpty, 0.0 ) ); // dxf 11 poddimension->settextrotation( 0.0 ); // text rotation is always 0.0 poddimension->setdimensiontext( _t("test") ); poddimension->setrotation( ddimang ); poddimension->recordgraphicsmodified( false ); // add entity to active blocktablerecord oddbblocktablerecordptr podactiveblockrecord = m_odactiveblocktablerecordid.safeopenobject(oddb::kforwrite); m_odlastcreateddimid = podactiveblockrecord->appendoddbentity( poddimension ); any ideas? torsten |
所有的时间均为北京时间。 现在的时间是 12:05 AM. |