Forum Discussion
Visio Visual - Too Many Shapes
- 8 years ago
Hi all,
I've been able to find a solution as provided by the Tell Visio team. I recommend using Workaround 3 with the Unique Key Workaround. They can be completed at the same time when in the stencil to save time. The latter is required because by selecting only 1 shape to pull through to a # layer in workaround 3, the unique key data is not pulled through with it into PowerBI and hence the automapping cannot take place.
Problem:
The shape that I used (ie. in the org chart) is a group shape and has 10 shapes within it. It has properties that protect the shape which inhibit selecting sub-shapes or even ungrouping the group shape.Workarounds:
- OPTION 1 Go to home tab > Tools group> Rectangle shape > Add a rectangle on top of each shape > Add this shape to the # layer (i.e. single shape) > Format this shape to remove fill and line colors OR just add a rectangle shape from Basic shapes stencil. [Dirty workaround but easiest]
- OPTION 2 Go to Developer tab. If you can’t see developer tab, go to file > options > customize ribbon > Enable developer tab. In developer tab > Look for Drawing Explorer in the far right of the ribbon > find the rectangle sub-shape in the executive belt shape > right click and add to the # layer. This will add just the sub-shape to the # layer. You’ll have to do this for all shapes in your diagram.
- OPTION 3 Changing the master shape itself which means you do this once and it will add the right shapes to the # layer in one go, hence my favorite workaround for the time-being (users usually don’t edit master shape, because it affects all shapes but then that’s what we want in this scenario right?)
- Go to developer tab
- Open document stencil (will show below your stencils in the stencil pane)
- Right click on Executive belt shape > Edit master shape
- Keep expanding the shapes on the left till selecting a shape in the document stencil highlights (grey boundary around your shape) the rectangle that we want to add to the # layer
- Right click > Layer > Add to a # layer
- Now when you close this window, it will ask if you want to update the master and its instances > Click Yes. Now you should see only 1 shape per executive belt shape added to your # layer
Unique Key Workaround
- Go to Edit master shape from document stencil like in solution 3
- Right click on the shape in master explorer which you just added to the # layer earlier
- Show shapesheet (shapesheet has meta-data for shapes)
- Right – click on any value inside the shapesheet
- Insert Section
- Check Shape data checkbox
- Now look for Shape data section and add a formula in the Value field like the below pointing to the shape data field of group shape you want to refer to Shapesheet > Shape Data section > Prop.Row_1 > Value > =Sheet5!Prop.ResourceID
- Note that Sheet5 is the name of my group shape, it could be different for you.
- Now close the window, you will be prompted to save the master and its instances, choose yes. Now your sub-shape should have shape data that’s a part of your group shape.
- Now automatic mapping based on Resource ID should work for you.
Hi all,
I've been able to find a solution as provided by the Tell Visio team. I recommend using Workaround 3 with the Unique Key Workaround. They can be completed at the same time when in the stencil to save time. The latter is required because by selecting only 1 shape to pull through to a # layer in workaround 3, the unique key data is not pulled through with it into PowerBI and hence the automapping cannot take place.
Problem:
The shape that I used (ie. in the org chart) is a group shape and has 10 shapes within it. It has properties that protect the shape which inhibit selecting sub-shapes or even ungrouping the group shape.
Workarounds:
- OPTION 1 Go to home tab > Tools group> Rectangle shape > Add a rectangle on top of each shape > Add this shape to the # layer (i.e. single shape) > Format this shape to remove fill and line colors OR just add a rectangle shape from Basic shapes stencil. [Dirty workaround but easiest]
- OPTION 2 Go to Developer tab. If you can’t see developer tab, go to file > options > customize ribbon > Enable developer tab. In developer tab > Look for Drawing Explorer in the far right of the ribbon > find the rectangle sub-shape in the executive belt shape > right click and add to the # layer. This will add just the sub-shape to the # layer. You’ll have to do this for all shapes in your diagram.
- OPTION 3 Changing the master shape itself which means you do this once and it will add the right shapes to the # layer in one go, hence my favorite workaround for the time-being (users usually don’t edit master shape, because it affects all shapes but then that’s what we want in this scenario right?)
- Go to developer tab
- Open document stencil (will show below your stencils in the stencil pane)
- Right click on Executive belt shape > Edit master shape
- Keep expanding the shapes on the left till selecting a shape in the document stencil highlights (grey boundary around your shape) the rectangle that we want to add to the # layer
- Right click > Layer > Add to a # layer
- Now when you close this window, it will ask if you want to update the master and its instances > Click Yes. Now you should see only 1 shape per executive belt shape added to your # layer
Unique Key Workaround
- Go to Edit master shape from document stencil like in solution 3
- Right click on the shape in master explorer which you just added to the # layer earlier
- Show shapesheet (shapesheet has meta-data for shapes)
- Right – click on any value inside the shapesheet
- Insert Section
- Check Shape data checkbox
- Now look for Shape data section and add a formula in the Value field like the below pointing to the shape data field of group shape you want to refer to Shapesheet > Shape Data section > Prop.Row_1 > Value > =Sheet5!Prop.ResourceID
- Note that Sheet5 is the name of my group shape, it could be different for you.
- Now close the window, you will be prompted to save the master and its instances, choose yes. Now your sub-shape should have shape data that’s a part of your group shape.
- Now automatic mapping based on Resource ID should work for you.