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)
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
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)