I am trying to work out the actual scale of the viewport(s) in AutoCAD DWG to make sure they conform to a particular scale.
Attached is an example DWG that I am trying to determine the scale of the viewport.
Any assistance would be greatly appreciated.
Regards
Dean
Best answer by becchr
Hi @deanhowell,
I'm pretty new to FME, but had the same question on one of my projects too. Maybe there's a more elegant way but this worked for me:
in the dwg-reader make sure you read the paper space and select the layouts you want the viewports to read from:
in the reader group by 'geometry' so you can select just the viewports as feature types and expose the format attributes 'autocad_viewport_custom_scale' and 'autocad_space'
depending of the drawing units and layout units you can calculate a traditional "1:X"-scale
Hope this can help you? I attached the workspace with your dwg (i changed and added some viewports just for testing)
I'm pretty new to FME, but had the same question on one of my projects too. Maybe there's a more elegant way but this worked for me:
in the dwg-reader make sure you read the paper space and select the layouts you want the viewports to read from:
in the reader group by 'geometry' so you can select just the viewports as feature types and expose the format attributes 'autocad_viewport_custom_scale' and 'autocad_space'
depending of the drawing units and layout units you can calculate a traditional "1:X"-scale
Hope this can help you? I attached the workspace with your dwg (i changed and added some viewports just for testing)
I'm pretty new to FME, but had the same question on one of my projects too. Maybe there's a more elegant way but this worked for me:
in the dwg-reader make sure you read the paper space and select the layouts you want the viewports to read from:
in the reader group by 'geometry' so you can select just the viewports as feature types and expose the format attributes 'autocad_viewport_custom_scale' and 'autocad_space'
depending of the drawing units and layout units you can calculate a traditional "1:X"-scale
Hope this can help you? I attached the workspace with your dwg (i changed and added some viewports just for testing)
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.