Skip to main content
Solved

ACAD writer ignoring viewport center attributes

  • June 20, 2024
  • 1 reply
  • 42 views

kweller
Contributor
Forum|alt.badge.img+8

So I have a workspace that reads a DWG, and writes another one after setting viewport attributes according to this article: https://support.safe.com/hc/en-us/articles/25407658483341-Working-with-AutoCAD-Layouts

However, even though I’ve set autocad_viewport_view_center_xautocad_viewport_view_center_y, autocad_viewport_center_point_x and autocad_viewport_center_point_y to display the view at the center of the page, I keep getting the viewport centered at 0, 0 in paper space, so my viewport content is centered close to the lower left corner of the page on output.  I have quintuple-checked that all the required viewport attributes are set correctly.  It seems like the writer is simply ignoring my viewport center settings.

I’ve been banging on this for more than a day now, and have made no headway against it.  Hopefully some kind soul out there will have an idea of what could be going wrong.

The layout page
The viewport, 1st page of attributes
The viewport, 2nd papge of attributes + geometry

 

Best answer by kweller

I just solved the problem.  You have to specify autocad_viewport_view_center_z, even if it’s just 0.0 (since paper is effectively two-dimensional).

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.

1 reply

kweller
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • Best Answer
  • June 21, 2024

I just solved the problem.  You have to specify autocad_viewport_view_center_z, even if it’s just 0.0 (since paper is effectively two-dimensional).