Skip to main content
Solved

AutoCAD DWG page size


deanhowell
Influencer
Forum|alt.badge.img+23

Is there a way to check the page size of an AutoCAD DWG that is read into a FME workspace?

Best answer by chrisatsafe

Hi @deanhowell2009,

You can check the layout page size using the DWG reader by selecting to read paper space in the DWG Reader Parameters, here you can also specify which layout you want to read in:

Note: if you just want the page extents, you can just select read paper space; however, if you want the features that are visible in that viewport select read model space entities through viewport as well. See the Autocad Reader Parameters documentation for more info.

Once you have read your data in using paper space, the page size is accessible through the autocad_layour_limit_max_x and autocad_layour_limit_max_y format attributes. These can be exposed in the Reader Feature Type or using an AttributeExposer. The precision may be too high (i.e.10.99999975970411, 8.49999975970411) so you may need to use an AttributeRounder to round the max x/y attributes to 1 decimal place (i.e.11, 8.5).

I have attached an example as well: DWG_Page_Size.fmwt

View original
Did this help you find an answer to your question?

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • August 1, 2019

Hi @deanhowell2009,

You can check the layout page size using the DWG reader by selecting to read paper space in the DWG Reader Parameters, here you can also specify which layout you want to read in:

Note: if you just want the page extents, you can just select read paper space; however, if you want the features that are visible in that viewport select read model space entities through viewport as well. See the Autocad Reader Parameters documentation for more info.

Once you have read your data in using paper space, the page size is accessible through the autocad_layour_limit_max_x and autocad_layour_limit_max_y format attributes. These can be exposed in the Reader Feature Type or using an AttributeExposer. The precision may be too high (i.e.10.99999975970411, 8.49999975970411) so you may need to use an AttributeRounder to round the max x/y attributes to 1 decimal place (i.e.11, 8.5).

I have attached an example as well: DWG_Page_Size.fmwt


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • August 1, 2019
chrisatsafe wrote:

Hi @deanhowell2009,

You can check the layout page size using the DWG reader by selecting to read paper space in the DWG Reader Parameters, here you can also specify which layout you want to read in:

Note: if you just want the page extents, you can just select read paper space; however, if you want the features that are visible in that viewport select read model space entities through viewport as well. See the Autocad Reader Parameters documentation for more info.

Once you have read your data in using paper space, the page size is accessible through the autocad_layour_limit_max_x and autocad_layour_limit_max_y format attributes. These can be exposed in the Reader Feature Type or using an AttributeExposer. The precision may be too high (i.e.10.99999975970411, 8.49999975970411) so you may need to use an AttributeRounder to round the max x/y attributes to 1 decimal place (i.e.11, 8.5).

I have attached an example as well: DWG_Page_Size.fmwt

Thanks @chrisatsafe, that is perfect for what I need.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings