This is possible, although it is a little complicated and requires using FME 2016 beta. There are now viewport features in the paper space, which have a polygon geometry and attributes for the model space extents they cover.
- Use a PointOnAreaOverlayer or LineOnAreaOverlayer to transfer the viewport attributes to the paper space features within them, grouping by autocad_space.
- Use an Offsetter to offset the features by the negative of autocad_viewport_center_point_x and autocad_viewport_center_point_y.
- Use a Scaler to scale the features by the inverse of autocad_viewport_custom_scale.
- Use another Offsetter to offset the features by autocad_viewport_view_center_x and autocad_viewport_view_center_y
This process will work for simple top down viewports with no perspective.
Thanks a lot. It works in FME2016beta.
For full success for my data I've used additionaly Rotator (360-@Value(autocad_viewport_twist_angle)) before first offsetter and Offsetrer(autocad_viewport_resolved_target_x and y)) instead of autocad_viewport_view_center_ parameters
This is possible, although it is a little complicated and requires using FME 2016 beta. There are now viewport features in the paper space, which have a polygon geometry and attributes for the model space extents they cover.
- Use a PointOnAreaOverlayer or LineOnAreaOverlayer to transfer the viewport attributes to the paper space features within them, grouping by autocad_space.
- Use an Offsetter to offset the features by the negative of autocad_viewport_center_point_x and autocad_viewport_center_point_y.
- Use a Scaler to scale the features by the inverse of autocad_viewport_custom_scale.
- Use another Offsetter to offset the features by autocad_viewport_view_center_x and autocad_viewport_view_center_y
This process will work for simple top down viewports with no perspective.
Hello @daveatsafe this is exactly what I am trying to do so was wondering if you have any examples you could provide to show how the above is done.
For full success for my data I've used additionaly Rotator (360-@Value(autocad_viewport_twist_angle)) before first offsetter and Offsetrer(autocad_viewport_resolved_target_x and y)) instead of autocad_viewport_view_center_ parameters
Hello @arekpierchala, I know it was a while ago but just wondering if you might be able to share the workspace fundamentals on how you achieved the above as I am trying to do the same.
Here is what I did based on the instructions from @daveatsafe above. Thanks :)
Or use the chspace command in autocad