Recent Posts

Pages: [1] 2 3 ... 10
1
General Visio / Re: Master's Guard function being overwritten by style
« Last post by PiP on May 23, 2019, 05:33:10 PM »
Thanks both, know at least its not doing something dumb.

I'll have a play around with the NoShow and see if that works.
2
General Visio / Re: Master's Guard function being overwritten by style
« Last post by Paul Herber on May 23, 2019, 04:26:57 AM »
This was a problem with many shapes when Themes were introduced. Shapes with a text box would suddenly sprout a border on the text area where one had not been visible previously. Setting the NoShow on the text area was the fix to that problem
3
General Visio / Re: Master's Guard function being overwritten by style
« Last post by Yacine on May 23, 2019, 03:54:05 AM »
Hello Pip,
I could indeed replicate your problem.
I don't know how to avoid it, but I could propose a workaround: instead of relying on the line style to hide the border of the main shape, you can work with the "NoShow" property in the geometry section. Setting it to true will hide the border, regardless of the line style.
Option2 would be to delete the geometry section, but I suspect you need it for the smartness of the shape.

Regards,
Y.
4
Add multiple pages, one for each area and copy/paste to the page.  You can optionally, change page scaling to see full page, grab/stretch the contents of the pasting, etc.
5
Programming & Code / Re: Interrupt VBA while Running
« Last post by pavane on May 22, 2019, 01:53:57 AM »
Thanks for the suggestions, but they all rely on identifying code which might loop. The program is so large and complex that this is not feasible. (It has many functions, including building a tree of test cases from an excel spreadsheet, and writing a Gherkin script fron the test case tree). A general way of interrupting the code is what I really need. In previous versions, I have been able to do this.
6
General Visio / Re: Is there a way of setting multiple print areas within Visio
« Last post by Yacine on May 22, 2019, 01:36:30 AM »
The printout command should do the job, but it requires coding.
https://docs.microsoft.com/en-us/office/vba/api/visio.document.printout
7
General Visio / Is there a way of setting multiple print areas within Visio
« Last post by scottyoddjob on May 21, 2019, 06:12:51 PM »
Hi All.

I create layout plans for large area major events.

We generally have multiple zones within an event site with Safety Warden in each area.

I would like to find a way to print their zone only directly from Visio / or save an image of their zone, with out doing low quality screen shots or similar.

Any ideas?  Thanks Scott
8
I ended up doing:

List<int> connectors = new List<int>((int[])v._shape.GluedShapes(Microsoft.Office.Interop.Visio.VisGluedShapesFlags.visGluedShapesOutgoing1D, ""));
                     string startLocation = "";
                    foreach (int connector in connectors)
                    {
                        Shape tempConnector = v._parent._page.Shapes.ItemFromID[connector];
                        int j = 0;
                        string tempLocation = "";
                        bool found = false;
                        foreach(Connect test123 in tempConnector.Connects)
                        {
                            if (j == 0)
                            {
                                tempLocation = new Regex("Connections.(.*).X").Match(test123.FromCell.Formula).Groups[1].Value;
                                j++;
                            }
                            if (j==1 && l_vPath[i + 1]._shape == test123.ToSheet)
                            {
                                found = true;
                                break;
                            }
                        }
                        if (found)
                        {
                            startLocation = tempLocation;
                            break;
                        }
                    }
9
User-submitted Stuff / Re: Lab Equipment Stencil
« Last post by N1702 on May 21, 2019, 07:09:13 AM »
Hello Stefan,

Thank you so much for your stencil!
It's really great and one I was looking for since a very long time!

Many, many thanks from me and future lab-technicians.
10
General Visio / Re: Master's Guard function being overwritten by style
« Last post by PiP on May 21, 2019, 05:39:23 AM »
Hello

Have included a file if above description vague.

The page shape has been created from the stencil master.  It has a guard function on linePattern inherited from the master.

When I apply one of my custom styles, the guard is ignored and the line pattern changes according to the style.

If I manually change the page shape to have a guard function on the linePattern (i.e. 'locally' guarded), the style does not overwrite the linePattern.

How do I make a master who's linepattern is guarded against style changes?

Regards,

PiP
Pages: [1] 2 3 ... 10