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


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-07, 04:51 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】ext Wrap

text wrap
text wrap
i am having problems with text wrapping being done slightly wrong. many text strings wrap correctly, but some do not. typically the lines of text end up longer than they should, so the text block is wider and does not contain as many lines as it should.
in the attached file, the text is supposed to wrap to three lines with the initial line break after the word "annotation" in the first line. instead it wraps to two lines with the line break after "wrap".
i have tried both odamfcapp and odvectorizeex and both have the same problem. i have also noticed several applications, like bentley view, that are based on the toolkit have the same wrapping problem.
i have attached the dwg and a jpg converted from that file. look at the text in the view "vwfront".
attached images
the reason of different from acad text displaying is incorrect font used (it should be txt.shx) the font used has different from txt.shx metrics so text is splitted between lines in another way.
btw, if txt.shx is available odamfcapp displays the text exactly as autocad does.
sergey slezkin
specifiy font location
you are correct that if i put txt.shx in the same directory as the file then everything works. i had it numerous places (including the executable directory) but not in with the drawing.
what call can i use to set a pointer to a different location? i need one spot where the font files can be, not scattered with all the drawings. i tried setting the acad environment variable but that did not help.
thanks.
you can override oddbhostappservices::findfile() to look for fonts at some specific place.
see also developer's guide/font handling.
sergey slezkin
quote:
originally posted by sergey slezkin
you can override oddbhostappservices::findfile() to look for fonts at some specific place.
see also developer's guide/font handling.
the developer's guide to font handling says that it will look in the location(s) pointed to by the acad environment variable. the header file says "acadprefix". i have tried every reasonable combination i can think of based on that and nothing seems to work for finding fonts.
i have tried:
acad
acadprefix
acadfont
acadfonts
acadshx
i have pointed the environment variable to the main acad directory and to the fonts subdirectory, but nothing seems to work. should the fonts be able to be found by checking the acad environment variable? if so, why does it not appear to work?
dd uses "acad" evironment variable to search for font files. have you restarted your computer after setting acad variable?
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



所有的时间均为北京时间。 现在的时间是 09:18 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多