Skip to main content
Solved

ACAD writer ignoring viewport center attributes

  • June 20, 2024
  • 1 reply
  • 27 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).

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

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).


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