高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】ext Alignment In Dwg Title Block
text alignment in dwg title block
text alignment in dwg title block
i have an autocad drawing with some title blocks which use isocp.shx font and some of them are left aligned, others center right or right aligned. the text values of the attributes need to be changed dynamically. we are using code like this:
pblkref->openattribute(pattr->objectid(), oddb::kforwrite, false);
odstring widefieldvalue(fieldvalue);
pattr->settextstring(widefieldvalue);
pattr->adjustalignment();
we also have implemented this method to return font location and it returns the file in the acad font directory (eg. c:\\program files\\autocad 2006\\fonts\\) if they exist there (and all the font files requested to exist there):
virtual odstring exhostappservices::findfile(
const odstring& filename,
oddbdatabase* pdb = 0,
oddbhostappservices::findfilehint hint = kdefault)
when the title blocks are modified dynamically, the alignment seems to be a little bit off. once the title block is opened through the enhnaced attribute editor of autocad and the dialog box is closed with cancel, the title blocks shifts a little bit (0.6 mm for a title block where the text is "skt/1/104").
is there anyway to make the title blocks not shift at all?
regards,
rama pangeni
quote:
originally posted by rama.pangeni
when the title blocks are modified dynamically, the alignment seems to be a little bit off. once the title block is opened through the enhnaced attribute editor of autocad and the dialog box is closed with cancel, the title blocks shifts a little bit (0.6 mm for a title block where the text is "skt/1/104").
is there anyway to make the title blocks not shift at all?
could you attach or send by mail (szajcev@softdev.spb.ru) example drawing with such text?
best regards,
sergey z.
hello rama pangeni,
it was bug in dwgdirect. start version 2.4.2 it was fixed.
best regards,
sergey z.
thanks sergey.
it works in 2.5.1.
regards,
rama
|