Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: Hackbrett on February 20, 2023, 03:51:59 PM

Title: Cannot fill a shape with PolyLineTo
Post by: Hackbrett on February 20, 2023, 03:51:59 PM
Hello,

I'm trying to modify one the stencils that come with Visio (see attached file). I'm trying to set a fill on an inner shape (Sheet.12 in the Master Explorer), but Visio doesn't let me. In the Format Shape window, I cannot select anything other than "No Fill".

What I've tried:

In general, which properties determine whether a shape is/can be filled, or not?

What's also peculiar is that I cannot ungroup the top-level shape. I've checked shape protection, etc. but I can't figure out what prevents me from ungrouping the shape.

Any help is appreciated.

Thanks,
Lukas
Title: Re: Cannot fill a shape with PolyLineTo
Post by: Paul Herber on February 20, 2023, 04:35:17 PM
The FillPattern is set to 0.
Title: Re: Cannot fill a shape with PolyLineTo
Post by: hidden layer on February 20, 2023, 04:38:42 PM
ungrouping is not possible because  in Group Properties SelectMode is 0. If set to 1 you can ungroup.

;)
Title: Re: Cannot fill a shape with PolyLineTo
Post by: Paul Herber on February 20, 2023, 04:39:48 PM
What has ungrouping got to do with it? Ungrouping will break the shape. Don't do it.
Title: Re: Cannot fill a shape with PolyLineTo
Post by: hidden layer on February 20, 2023, 04:44:56 PM
Good point, Paul, you're right. Not ungrouping! But if set to 1 you have access to the subshapes and see what you can change there.

Title: Re: Cannot fill a shape with PolyLineTo
Post by: Paul Herber on February 20, 2023, 05:05:26 PM
You have access to the sub-shapes anyway. Use Edit Group, or use the Master Explorer.
Rule 1: Do not ungroup shapes.
Rule 2: See Rule 1
Title: Re: Cannot fill a shape with PolyLineTo
Post by: wapperdude on February 20, 2023, 05:09:07 PM
In shapesheet,  scroll down to Fill Format.  You can change colors there.  There is much guarding done in both the Line and Fill Format Sections.

Note, this particular shape is actually 3 stacked shapes.  Not sure why.  One shape is just outline.  Next shape is a fill hatch pattern.  3rd shape is a fill color.  All of this could have been done in single shape. 

Note 2.  Assuming you've enabled developer mode, in the Developer tab, with main shape selected, Behavior has selection set to Members only.  You can set this to either main or submembers 1st.    This way you can directly click on a membershape.  Or, just use the DEW Window.
Title: Re: Cannot fill a shape with PolyLineTo
Post by: Hackbrett on February 21, 2023, 09:53:46 AM
Thanks to you all. Removing the "GUARD()" around the FillPattern did the trick.