problem with exportdwf v1.12 !!
problem with exportdwf v1.12 !!
hi !!
it is not possible for me to export a dwf file with images in my application correctly anymore !! it seems like the exporting of objects stops ones dd meets an image !! exporting the same structure to dwg work ok !!
any hits - please help
soeren
have you the same result with odamfcapp? please, send your sample file in this case.
misha kuzinets
thanks !!
attached a simpel test files - dwg/dwf - generated on the same fill structure !!
/soeren
attached files (20.7 kb, 8 views)
sorry the dwg files must be saved in model sapce mode to be able to view the design in odamfcapp application !! loadeding the dwg file will not display the image - autocad has no problem !!
/soeren
attached files (20.7 kb, 6 views)
odamfcapp doesn't display image because function exrastermodule::loadrasterimage() fails to load raster image file.
it fails due to these reasons:
1. file has extension bmp, but really its format is jpg
2. by default, exrastermodule::loadrasterimage() doesn't use any libraries for loading raster formats different from bmp.
to support jpg format, you can compile exraster module with symbol raster_jpeg6b defined (in this case jpeg6b library will be used to load jpgs). to make raster image rendering working in case different format and extension you should implement your own exrastermodule (probably through some library performing raster operations).
sincerely yours,
george udov
thanks for your reply !!
the image format and extension has to match - sorry !!
but still when i export to a dwf file inside my application only half of the structure is included !! it seems that the exporting stops onces it gets to an bmp image object !!
i believe that the images is imbedded in the dwf format and some kind of rendering has to be performed !! i guess that some implementation is missing !!
what is required to perform an exportdwf ??
when i export an dwg file and afterwards use odamfcapp to convert it to a dwf file it comes out ok !!
regards
soeren
what has happend with these function in v1.12 ??
//odrxinitmodelergeometry();
//odrxuninitmodelergeometry();
regards
soeren
quote:
originally posted by
sa@ige-xao.dk
what has happend with these function in v1.12 ??
//odrxinitmodelergeometry();
//odrxuninitmodelergeometry();
regards
soeren
obsoletely
misha kuzinets
quote:
originally posted by
sa@ige-xao.dk
what is required to perform an exportdwf ?
i didn't understand exactly what's happened in your application. i guess the good solution would be to look at dwfexport.
misha kuzinets
well i really tried - but still no success !! attachaced is my application source file 鈥?please study !!
is it possible for you to create a oddwfexport exampel project ??
thanks
regards
soeren
attached files (14.8 kb, 12 views)
quote:
originally posted by
sa@ige-xao.dk
is it possible for you to create a oddwfexport exampel project ??
i have exported your file to dwf using odamfcapp with success. if you need dd_dwfexport.dsp let me, please, your e-mail. i will send you the project file.
misha kuzinets
i exported my.dwg using odamfcapp to dwf with success also !! please send me your oddwfexport.dsp file - !!
thanks
soeren
i think you forgot about how to export images. check your systemservices, especially gsbitmapdevice(). i hope you have dwfexport code.
misha kuzinets