It sounds reasonable that we might add such a method to our API, right?!

On Mon, Dec 13, 2010 at 1:13 PM, Giampaolo Bellini <[email protected]> wrote:

> Hello Till
>
> thanks a lot for the info... I'm totally new to dwf format so I miss
> most of the basic infos.
>
> so... looking at the first 6 bytes is a chance... but is there a way
> to get this info using libredwg without parsing the entire file and
> risk a segfault ?
>
>      Giampaolo
>
>
> 2010/12/13 Till Heuschmann <[email protected]>:
> > The file version is stored in the first 6 bytes of the file.
> >
> > AC1015 for R2000 files
> > AC1018 for R2004 files
> > AC1021 for R2007 files
> > ...
> >
> > Or are you looking for a function in libredwg that returns this value?
> >
> > 2010/12/13 Giampaolo Bellini <[email protected]>:
> >> Hi all
> >>
> >>   opening and parsing some dwg files I got a segmentation fault,
> >> probably due to unsupported version of dwg: is there a way to retrieve
> >> the dwg revision of a file before trying to parse it's contents ?
> >>
> >>         Giampaolo
> >>
> >>
> >
> >
>
>

Reply via email to