![]() |
【转帖】read coordinate dwf
read coordinate dwf
read coordinate dwf i have a simple question in attach dwf file there is a square with coordinate: (-9,9);(9,9);(9,-9);(-9,-9);(-9,9) i try to open with odamfcapp and obtain (105.64,100.664);(115.024,100.664); (115.024,91.2799);(105.64,91.2799);(105.64,100.664 ) how do i do to obtain the original coordinate? thanks attached files currently coordinates are not preserved during import. i think this will be implemented in the first update to 1.13 (if not in 1.13 itself) thanks for the answer it is the same for map color? the problem with dwf color map is that it has no correspondence in dwg. i see no easy solution to the problem, because even if import would report what color map was in dwf, it cannot use it for entities colors, because application cannot store this palette in dwg and the colors will be distorted next time. currently dwf import checks if the palette stored in dwf coincides with acad standard "dark" or "light" palettes, and depending on that, preserves color indices, or replaces the colors with rgb equivalents from dwf palette. for resolve the problem of color's map in dwf file it is more simple to use rgb color?in dwf file entitycolor is set always bycolor and i can obtain always the right color. it is only an idea i don't know if is possibile ... i didn't quite understand your idea, but i will try to make more clear my previous post. there is a color map stored in dwf. dwf entities may have their colors set by index (from this color map) and by rgb. lets suppose that colors are set by indices and the color map does not correspond to standard acad palette. in this case, while importing dwf entity we have the choice: 1. preserve the color index 2. replace the color with rgb value from color map if we preserve the color index, then the imported dwg will look different from original dwf, because palettes are different. if we replace indexed colors with rgb, then original indexes will be lost. we have chosen the second way, because preserving original look seem to be more important. there may be small improvements to this algorithm. e.g: we may test what standard palette is closest to the one stored in dwf and preserve indices of colors that coincide in both palettes. this modification is simple and may be included in 1.13 last edited by vkalinin; 9th march 2005 at 08:50 amfff">. thanks a lot.now i have understood. there will be an option in dwf import in 1.13 that enables/disables color indices preservation. dwfimporter property is called "preservecolorindices". |
所有的时间均为北京时间。 现在的时间是 04:29 PM. |