-
First, thanks for this great library! It's big and I think I overlook something which is already there. My usecase is as follows: Because we want multiple pages, we need to use paperspace. I've already done a lot of research in that area and I now start with a predefined DXF-file with layers, viewports etc. add my drawing views in modelspace which are then automatically displayed in paperspace. The problem now is to add the dimensions. I know the points in modelspace relative to the WCS. But in paperspace that WCS is not there. Also the position of the viewport, scale etc have to be taken into account. And that's where I'm lost currently, how to translate my know points in modelspace to the correct position in paperspace? Does anybody had the same problem or do you have any idea where I can look? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The Viewport.get_transformation_matrix() method returns the transformation matrix from modelspace to paperspace. Transform a single coordinate by the Matrix44.transform() method or Matrix44.transform_vertices() to transform multiple coordinates at once. |
Beta Was this translation helpful? Give feedback.
The Viewport.get_transformation_matrix() method returns the transformation matrix from modelspace to paperspace.
Transform a single coordinate by the Matrix44.transform() method or Matrix44.transform_vertices() to transform multiple coordinates at once.