LibreDWG uses the Dwg_Object_LAYER struct to read a LAYER. The lineweight is stored in the 'values' variable, according to the spec you should mask it with 0x03E0 (valid for R2000 and newer files).
> Rodrigo, > > I am pretty sure the DXF spec states it's possible. This is something that > LibreDWG already does, > but I should read teh spec for sure, right?? :) > Saving and loading a DWG with draftsight also reveals that the lineweight is > loaded back. > with the drawing. I will see if I can look a bit further... > > Ries > > > > > On Apr 24, 2011, at 11:20 PM, Rodrigo Rodrigues da Silva wrote: > >> On 24-04-2011 13:28, R. van Twisk wrote: >>> Hey Guys, >>> >>> I am looking for the lineWeight parameter for the layer. >>> Unfortunately I cannot find it (similar to a entity). >>> >>> Anybody happen to know where I can find it? >> >> I looked on LAYER and LAYER CONTROL entities and couldn't find it either. >> >> Maybe the format cannot store a "by layer" linewheight, and the >> application just applies a linewheight to all objects in a layer? >> >> Did you look for it in the DXF spec? (don't have the link right now but >> you can find it easily at autodesk.com) >> >> -- >> Rodrigo Rodrigues da Silva >> >> http://polignu.org >> http://garoa.net.br >> http://gnu.org >> <0xE67BD84E.asc> > >
