-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The drawing and sheet are two different models with two different coordinate systems. The appearance of the geometry in the drawing when viewed on the sheet is determined entirely by the ViewDefinition that is attached to the sheet - currently, you cannot dynamically override it. To zoom in on an element in an attached drawing you would need to obtain its Placement in drawing coordinates, transform it into sheet coordinates, and use |
Beta Was this translation helpful? Give feedback.
The drawing and sheet are two different models with two different coordinate systems. The appearance of the geometry in the drawing when viewed on the sheet is determined entirely by the ViewDefinition that is attached to the sheet - currently, you cannot dynamically override it.
To zoom in on an element in an attached drawing you would need to obtain its Placement in drawing coordinates, transform it into sheet coordinates, and use
Viewport.zoomToPlacements
. To do that you need to know the Id of the ViewAttachment through which the element is being drawn onto the sheet (note, the same drawing element can appear on a single sheet through multiple view attachments), so that you can obtain …