Is there a way to get a specific Shape's bounding box from the shapesheet?

Started by Visisthebest, June 29, 2021, 02:32:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visisthebest

I use Shape.BoundingBox regularly to get the boundingbox of a shape with its data graphics:
https://docs.microsoft.com/en-us/office/vba/api/visio.shape.boundingbox

with this flag:
visBBoxIncludeDataGraphics   &H10000   Includes data-graphic callout shapes (and their sub-shapes) that are applied to the shape. Off by default.

Is it also possible to read this information from the shapesheet?

Use case: I want to know the size of the shape with its data graphics included.
Visio 2021 Professional


Visisthebest

Visio 2021 Professional

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 191 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1057KB.
Tokens: post-login.
Cache hits: 13: 0.00163s for 26,544 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]