Questions tagged [visio]

Visio is a diagramming tool included as part of the Microsoft Office suite. This tag is only for questions on programming against Visio objects or files—also tag with VBA.

Visio is a diagramming tool included as part of the Microsoft Office suite, though it is usually acquired separately. It is used to create documents such as flowcharts, organizational charts, network topologies, and software architecture diagrams. Visio includes a development environment known as the ShapeSheet and an API which can be used to develop diagraming and data visualization applications.

Ask programming-related questions about Microsoft Visio (ShapeSheet, API, UML, flow charts, database diagrams, etc.) here on Stack Overflow. For non-programming applications of Visio and for general Visio support, consider if your question might be a better fit on Super User.


Documentation:

1485 questions
2
votes
1 answer

I cannot reference a different Visio shape Master on the shapesheet

I'm attempting to create a custom stencil, and one of the ways I want to make developing this easier is to have children reference the dimensions of parent stencils (parametric design). In the below pictures I'm showing the values I want to refer to…
Myrddin Emrys
  • 42,126
  • 11
  • 38
  • 51
2
votes
1 answer

Find coordinates of shapes on a visio diagram

I need a way to programatically find the coordinates of shapes on a visio diagram. The shapes themselves are easy to identify, as they all have a unique name. The only information i need is the absolute coordinates of the shape on the visio diagram.…
richzilla
  • 40,440
  • 14
  • 56
  • 86
2
votes
2 answers

how to launch a Data Wizard (create diagram from a template) in Visio from Access

I'm trying to make a button in Access, that will open Visio and launch a Data Wizard to create a diagram. I've tried various solutions, but all I get is opening a blank Visio document (based on my template). The Wizard is not kicking in. For…
Pawel127
  • 63
  • 7
2
votes
2 answers

Why when I open an svg file in Inkscape, info is blacked out?

So I'm creating flowcharts using the Mermaid Live Editor which is a diagram creating program that allows me to export my flowcharts are svg files. The problem arises when I open the svg file in Inkscape to make some edits to the vector file, all the…
2
votes
2 answers

Retrieve Connection point names of a Visio shape in C#

I am working with Microsoft Visio 2007 and Visual C#. I have a stencil with some shapes. Each connection point of each master shape in the stencil has got a name. How can I get these names in C#? I need a way to distinguish connection points of a…
sciarp
  • 314
  • 3
  • 14
2
votes
3 answers

Visio programatically set page orientation with VBA

I need to change Page Orientation property to the "Landscape" value in a programmable way using VBA. Currently, I'm using the following code: Application.ActivePage.PageSheet.CellsU("PrintPageOrientation").Formula = 2 But this only works for a…
Andrii
  • 31
  • 6
2
votes
3 answers

Creating visio file is working from console app but not working from windows service

I have following code which opens visio file: Microsoft.Office.Interop.Visio.Document vXfuncStencil = null; var app = new Microsoft.Office.Interop.Visio.Application(); vXfuncStencil = app.Documents.OpenEx(@"C:\Program Files\Microsoft…
Prakash
  • 789
  • 6
  • 9
2
votes
1 answer

Unable to find "Macros" option while customizing Ribbon Visio 2016

I followed this document to create new ribbon and add Macro commands - https://support.office.com/en-ie/article/assign-a-macro-to-a-button-728c83ec-61d0-40bd-b6ba-927f84eb5d2c I noticed that the "Choose Commands from" does not list option "Macros".…
genericuser
  • 1,430
  • 4
  • 22
  • 40
2
votes
1 answer

How to programmatically change cursor in Visio?

Hi is there any way I can change the mouse cursor in Visio programmatically? I went through all the Automation classes in Visio SDK and could not find any related property, method, event....
Yury
  • 21
  • 3
2
votes
2 answers

Python and Visio 365: automated saving to .svg

I would like to create a script that opens Visio files (.vsd), save it to vsdx, pdf and svg (with every page of vsd being seperate file), close the file, opens the next until end of files. So far i was successful with saving it to .pdf using: Python…
Adam Satyr
  • 51
  • 11
2
votes
1 answer

Visio Stencil for Snowflake?

I want to design architectures that include Snowflake. My tool of preference is Visio; so I'm looking for Snowflake Visio stencils. My google searches have come up empty, and unfortunately Snowflake was not included in "The official AWS icon set for…
2
votes
2 answers

Creating an instance of Visio in vba when 2 versions are installed

I have the below code to create an instance of Visio from Excel. It works on machines where I have a single version of Visio installed, but on some machines I have 2 versions (2010 and 2016) installed. On these machines it fails to run with the…
Rwood
  • 65
  • 3
2
votes
0 answers

Activating an Excel Workbook created by a Visio ShapeReport

First-time poster here. I've written VBA within a Visio Document, which runs a ShapeReport and exports it as an Excel Workbook. In this code, I need to then activate that newly created workbook in order to run a separate macro on the exported…
Dan Hintz
  • 21
  • 2
2
votes
1 answer

VBA Microsoft Visio document manipulating without opening the application

I am working on manipulating the Visio documents from the Visual Basic 6.0. User needs to choose the input visio document. I am using Set appVisio = CreateObject("Visio.Application") appVisio.Visible = False Here the issue is, Visio Application is…
AjayR
  • 4,169
  • 4
  • 44
  • 78
2
votes
1 answer

Update the fill colour of each shape immediately after it is changed in a loop

I'm trying to get Visio to update the fill colour of each shape immediately after I change it. I've tried using various methods - screenupdate, showchanges, sendkeys "%^g" but nothing works with the colour. Only changing the screen size by 0.01%…
mattc123
  • 21
  • 2