Author Topic: Cannot fill a shape with PolyLineTo  (Read 394 times)

0 Members and 1 Guest are viewing this topic.

Hackbrett

  • Newbie
  • *
  • Posts: 2
Cannot fill a shape with PolyLineTo
« on: February 20, 2023, 10:51:59 AM »
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:
  • I checked Geometry1.NoFill and it is set to FALSE.
  • I tried to use the "Join" command. While this allows me to fill the shape afterwards, it also removes the shape from its parent group shape and inserts it as second top-level shape.
  • I tried to change the FillForegnd and FillBkgnd cells. No effect.
  • I fiddled with the path commands to make it more clear the path is closed, but this has no effect.

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

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3342
    • Paul Herber's website
Re: Cannot fill a shape with PolyLineTo
« Reply #1 on: February 20, 2023, 11:35:17 AM »
The FillPattern is set to 0.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

hidden layer

  • Full Member
  • ***
  • Posts: 117
Re: Cannot fill a shape with PolyLineTo
« Reply #2 on: February 20, 2023, 11:38:42 AM »
ungrouping is not possible because  in Group Properties SelectMode is 0. If set to 1 you can ungroup.

;)

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3342
    • Paul Herber's website
Re: Cannot fill a shape with PolyLineTo
« Reply #3 on: February 20, 2023, 11:39:48 AM »
What has ungrouping got to do with it? Ungrouping will break the shape. Don't do it.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

hidden layer

  • Full Member
  • ***
  • Posts: 117
Re: Cannot fill a shape with PolyLineTo
« Reply #4 on: February 20, 2023, 11:44:56 AM »
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.


Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3342
    • Paul Herber's website
Re: Cannot fill a shape with PolyLineTo
« Reply #5 on: February 20, 2023, 12: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
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4596
  • Ideas Visio-lized into solutions
Re: Cannot fill a shape with PolyLineTo
« Reply #6 on: February 20, 2023, 12: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.
« Last Edit: February 20, 2023, 12:22:28 PM by wapperdude »
Visio 2019 Pro

Hackbrett

  • Newbie
  • *
  • Posts: 2
Re: Cannot fill a shape with PolyLineTo
« Reply #7 on: February 21, 2023, 04:53:46 AM »
Thanks to you all. Removing the "GUARD()" around the FillPattern did the trick.