How to know DWG and DXF image layout width and height?

  • DWG files has layouts.
    How to get each layouts width and height?

  • Same with DXF files, how to get each layouts width and height?

The reason why I asked this is I like to use the layouts width and height when converting each layout to JPEG image.

Or do you have an example code where you convert DWG to Jpeg and resizing Jpeg pagesize relative to DWG pagesize?

@franciss

You can explore the property PaperSize as there is no specific property for getting or setting layout. Perhaps, you may share the details of requirements and we will see how we can implement that.