---------- Forwarded message ---------- From: gagan <[email protected]> Date: Sun, Jun 16, 2013 at 9:47 PM Subject: Re: [libredwg] Sample functions To: Till Heuschmann <[email protected]>
On 6/14/13, Till Heuschmann <[email protected]> wrote: > Iterating over the dwg->object[] array and counting/collecting entities > ignores the block relation and leads to parentless data. > The testSVG example that comes with libredwg does it in a better way: > > function output_SVG() > The first element in the dwg->object[] is always the block control > (other name for block table). Using this object all blocks can be > accessed and with the special model space block all entities of the > drawing can be found. Hi till, Thanks for correcting me. I studied the testSVG program, So now should I count number according to blocks ? Moreover should extracting entities be based on blocks ? Should I count model_space and *paper_space in blocks also ? -- Thanks Gaganjyot -- Thanks Gaganjyot
