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

adding predefined type hatch
adding predefined type hatch
hello!
i can抰 add a hatch with predefined pattern. for example 揂nsi31?
dd create a hatch, but it doesn抰 display on screen. you sample 揙dwriteex?has same problem with hatch 揂ngle?
i think it happened because patterndefinitions in file is empty. in odt it filled by 揾atchblob? how create predefined hatch in directdwg?
thank you for advance.
best regards,
ivan obraztsov

dwgdirect is unable to locate acad.pat file on your computer to get definition of the hatch pattern.
you have the following options:
1. override oddbhostappservices::findfind() to locate .shx, .ttf, .pat files etc.
2. default implementation of findfile() uses "acad" variable from environment as a list of search paths. so to make odwriteex working you need to specify it.
3. if you do not want to have on computer or redistribute acad.pat file you can add patterns using hatch pattern manager.
sergey slezkin

thank you,
hatch pattern manager solved problem with predefined hatch.
best regards,
ivan obraztsov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)