Get Visble Layout Extents

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

Moderators: support, SDS, admin

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

Get Visble Layout Extents

Post by psusset » 09 Feb 2012, 17:54

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

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

Re: Get Visble Layout Extents

Post by support » 10 Feb 2012, 16:54

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply