Get Visble Layout Extents

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: support, SDS, admin

Post Reply
Posts: 1
Joined: 09 Feb 2012, 17:42

Get Visble Layout Extents

Post by psusset » 09 Feb 2012, 17:54


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,


Posts: 2930
Joined: 30 Mar 2005, 11:36

Re: Get Visble Layout Extents

Post by support » 10 Feb 2012, 16:54

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.

Technical Support E-mail:
Chat support on Skype:

Post Reply