Get Visble Layout Extents
Posted: 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
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