Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: Visisthebest on June 29, 2021, 02:32:02 PM

Title: Is there a way to get a specific Shape's bounding box from the shapesheet?
Post by: Visisthebest on June 29, 2021, 02:32:02 PM
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.
Title: Re: Is there a way to get a specific Shape's bounding box from the shapesheet?
Post by: Surrogate on June 29, 2021, 03:16:25 PM
I know only 2 functions which related with BoundingBox in ShapeSheet:
I can't find there this flag.
Title: Re: Is there a way to get a specific Shape's bounding box from the shapesheet?
Post by: Visisthebest on June 29, 2021, 03:53:22 PM
Thank you Surrogate!