几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】need help to extract as graphics file from dwgdxf (http://www.dimcax.com/hust/showthread.php?t=17304)

yang686526 2009-05-06 06:23 PM

【转帖】need help to extract as graphics file from dwgdxf
 
need help to extract as graphics file from dwg/dxf
need help to extract as graphics file from dwg/dxf
dear,
i need to modify source code implemented in our project to load dwg file into our product. the source code have been implemented before 2003.
to load dwg file following function have been used,
extern ad_db_handle adcdecl adloadfile _((void *fn,char preloadstrat,short adda2kobjs)); is defined in ad2.h.
at present we are using dwgdirect 1.14.02 library version.i could not find such a function and header file above mentioned in present version of library.
i need a information about method name which is functioning equivalent to adloadfile function.suppose there is any misunderstanding of library usage,it is better to make me to know.
can you explain what is ad_db_handle ?.
note:
i need to implement functionality in our product for previewing of dwg/dxf files,extraction as graphic file(bmp format) from dwg/dxf file and size of extracted graphic file(bmp).
thanking you,
petchi muthu
last edited by petchi_muthu_t; 11th august 2006 at 10:06 amfff">.
the adloadfile command is from the older opendwg viewkit / toolkits not the dwgdirect libraries.
if your code was developed prior to 2003 it was most likely developed using the opendwg toolkit and not dwgdirect.
it seems like dwgdirect is the only product being actively developed by the opendesign alliance. older viewkit / toolkit products are only receiving bug fixes (if any) at this stage. if you require support for autocad 2004 and newer dwg files, then dwgdirect seems to be the only way to go.
regards


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