几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem pattern hatch (http://www.dimcax.com/hust/showthread.php?t=18054)

yang686526 2009-05-06 10:54 PM

【转帖】problem pattern hatch
 
problem pattern hatch.
problem pattern hatch.
hi.
i have a problem with pattern hatch. if i want to know the pattern definition number then i call to hatch->numpatterndefinition() function. but dwgdirect tries to open acadiso.pat file. so, i use my program at a computer without autocad setup and this computer doesn't have acadiso.pat. my question is: why does dwgdirect tries to open acadiso.pat? how can i solve this problem?
thank you.
if the autocad system variable measurement is set to 1, autocad (and hence dwgdirect) will attempt to read the hatch pattern from acadiso.pat.
if the variable is set to 0, they will attempt to read the hatch pattern from acad.pat.
last edited by mjf; 30th december 2003 at 10:21 amfff">.
you have several options:
1. you can override
code:
oddbhatchpattermmanager * oddbhostappservices::patternmanager()
to return your implementation of pattern manager interface.
2. you can use default implementation. but before setting pattern name to hatch entity you need to add required pattern definition (make it known to pattern manager implementation) by calling
code:
odpatternmanager::appendpattern()
sergey slezkin
last edited by mmuratov; 5th january 2004 at 03:01 amfff">.


所有的时间均为北京时间。 现在的时间是 10:45 AM.