Skip to content

How to zoom elements in sheet view? #7439

Closed Answered by pmconne
fatalstar asked this question in Q&A
Discussion options

You must be logged in to vote

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 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fatalstar
Comment options

Answer selected by fatalstar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants