¼¸ºÎ³ß´çÓ빫²îÂÛ̳------ÖÂÁ¦ÓÚ²úÆ·¼¸ºÎÁ¿¹«²î±ê×¼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, 06:00 PM   #1
yang686526
¸ß¼¶»áÔ±
 
×¢²áÈÕÆÚ: 06-11
Ìû×Ó: 14579
¾«»ª: 1
ÏÖ½ð: 224494 ±ê×¼±Ò
×ʲú: 234494 ±ê×¼±Ò
yang686526 Ïòןõķ½Ïò·¢Õ¹
ĬÈÏ ¡¾×ªÌû¡¿use Predefined Hatchpatterns

use predefined hatchpatterns
use predefined hatch patterns
hello,
i want to create hatches and set predefined patterns. when i set solid it works fine, but all other predefined patterns doesn't work.
i know, that opendwg like to open .pat-files for the definitions, but i can't use this in our programm (and i don't like do redefine them, too).
i call setdatabasedefaults (null) to prevent that.
when i open the created dwg-file with autocad and i don't see the created hatches, but singledoc and odamfcapp show them. if i save the file with odamfcapp or singledoc once, i could see them at autocad, too.
how could i create the hatches on the rigth way?
last edited by math; 24th january 2006 at 07:19 amfff">.
when dwgdirect needs a .pat file, it call the oddbhostappservices::findfile.
you can override this virtual function and use your own path.
can this help your problem?
or you don't want to use .pat files at all?
best regards
chudomir
i afraid, i know what happend. the example applications find the pat-files, because there is an autocad at my computer.
well i don't like to use pat-files at all, but i afraid it's the only solution for my problem.
... and my config-file grows and grows....
i know that! : ) our configurations grow constantly too...
btw you can have your own formats for hatch patterns and convert them to pat files only temporarily, but that's not a reasonable solution...
best regards
chudomir
hi,
well, you can't reduce amount of information necessary for your program, you either put an information in resource file or hardcode it into the code...
what about hatch patterns, you can append pattern definition to pattern manager object via odhatchpatternmanager::appendpattern(); to access pattern manager call oddbhostappservices:atternmanager().
odwriteex sample contains code to append a pattern to pattern manager without .pat file - see "my_stars" pattern.
where is also a method to avoid using pattern manager at all. see setpattern() method accepting not only name but all pattern parameters.
sergey slezkin
yang686526ÀëÏßÖÐ   »Ø¸´Ê±ÒýÓôËÌû
GDT×Ô¶¯»¯ÂÛ̳£¨½öÓοͿɼû£©
»Ø¸´


Ö÷Ì⹤¾ß ËÑË÷±¾Ö÷Ìâ
ËÑË÷±¾Ö÷Ìâ:

¸ß¼¶ËÑË÷
ÏÔʾģʽ

·¢Ìû¹æÔò
Äú²»¿ÉÒÔ·¢±íÐÂÖ÷Ìâ
Äú²»¿ÉÒԻظ´Ö÷Ìâ
Äú²»¿ÉÒÔÉÏ´«¸½¼þ
Äú²»¿ÉÒԱ༭ÄúµÄÌû×Ó

vB ´úÂ뿪Æô
[IMG]´úÂ뿪Æô
HTML´úÂë¹Ø±Õ

ÏàËÆµÄÖ÷Ìâ
Ö÷Ìâ Ö÷Ìâ·¢ÆðÕß ÂÛ̳ »Ø¸´ ×îºó·¢±í
¡¾×ªÌû¡¿predefined 3d views yang686526 DirectDWG 0 2009-05-06 10:21 PM
¡¾×ªÌû¡¿hatching entities yang686526 DirectDWG 0 2009-05-05 12:01 PM
¡¾×ªÌû¡¿hatch- solid predefined yang686526 DirectDWG 0 2009-05-05 11:58 AM
¡¾×ªÌû¡¿adding predefined type hatch yang686526 DirectDWG 0 2009-05-04 03:45 PM
¡¾×ªÌû¡¿vistax64 and nvidia quadro fx570 settings yang686526 SolidWorks¶þ´Î¿ª·¢ 0 2009-04-13 03:19 PM


ËùÓеÄʱ¼ä¾ùΪ±±¾©Ê±¼ä¡£ ÏÖÔÚµÄʱ¼äÊÇ 02:23 AM.


ÓÚ2004Äê´´°ì£¬¼¸ºÎ³ß´çÓ빫²îÂÛ̳"ÖÂÁ¦ÓÚ²úÆ·¼¸ºÎÁ¿¹«²î±ê×¼GD&T | GPSÑо¿/CADÉè¼Æ/CAM¼Ó¹¤/CMM²âÁ¿"¡£ÃâÔðÉùÃ÷£ºÂÛ̳ÑϽû·¢²¼É«Çé·´¶¯ÑÔÂÛ¼°ÓйØÎ¥·´¹ú¼Ò·¨ÂÉ·¨¹æÄÚÈÝ£¡Çé½ÚÑÏÖØÕßÌṩÆäIP£¬²¢ÅäºÏÏà¹Ø²¿ÃŽøÐÐÑÏÀ÷²é´¦£¬ÈôƒÈÈÝÓÐÉæ¼°ÇÖȨ£¬ÇëÁ¢¼´ÁªÏµÎÒÃÇQQ:44671734¡£×¢£º´ËÂÛ̳Ðë¹ÜÀíÔ±ÑéÖ¤·½¿É·¢Ìû¡£
»¦ICP±¸06057009ºÅ-2
¸ü¶à