Page 1 of 1

Get Visble Layout Extents

Posted: 09 Feb 2012, 17:54
by psusset
Hi,

I'm currently evaluating CadImage.dll in order to include it in my software.
My goal is to let the user point a dwg file and convert it as an Image to use in my software.

I would like to know how I can get the extents of all visible layer in order to crop the generated image correctly?

Three possibilities, create a new Layout and fill it with visible Layer. But I don't see how to create a new Layout and add layer.
Remove the unvisible layers from the layout and get the new extents. But I don't see how we can remove layers from Layout.
Calaculate the extents of each visible layer. But I don't see how I can get this values.

Any help is greatly appreciated.

Best Regards,

Pierre

Re: Get Visble Layout Extents

Posted: 10 Feb 2012, 16:54
by support
Hello.
CAD Image DLL allows export DWG drawings to raster and vector formats. The library provides the GetExtentsCAD function that retrieves extents of an imported drawing.
CAD Image DLL doesn't allow to create layouts, layers or visible entities as well as modifying an imported drawing. Please note, the extents doesn't calculated for a layer, but for all entities within a drawing.

Alexander.