News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Cannot fill a shape with PolyLineTo

Started by Hackbrett, February 20, 2023, 03:51:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hackbrett

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

Electronic and Electrical engineering, business and software stencils for Visio -

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

hidden layer

ungrouping is not possible because  in Group Properties SelectMode is 0. If set to 1 you can ungroup.

;)

Paul Herber

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 for Visio -

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

hidden layer

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

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 for Visio -

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

wapperdude

#6
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.
Visio 2019 Pro

Hackbrett

Thanks to you all. Removing the "GUARD()" around the FillPattern did the trick.

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: 285 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1143KB.
Tokens: post-login.
Cache hits: 13: 0.00127s for 26,764 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]