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

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】adding predefined type hatch (http://www.dimcax.com/hust/showthread.php?t=15054)

yang686526 2009-05-04 03:45 PM

【转帖】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


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