Visio Guy

Visio Discussions => General Visio => Topic started by: Gomez on November 06, 2017, 12:04:24 PM

Title: Add a version number to a visio file
Post by: Gomez on November 06, 2017, 12:04:24 PM
Hello,

i have a question about visio 2007.

I create a visio file which will be edited by many persons over a longer time.
To evade version problems in the future (like someone uses not the newest version of my file) i want to insert a version tag on every drawing page of my file.
Is there a way to create a global variable which contains the Versionnumber? (something like "2017.01")
If I update the file I just want to change the global variable and not the textfield on every drawing page (they should always show the same number as the global variable).

I hope you can understand what i'm trying to do.


Thanks,

Gomez
Title: Re: Add a version number to a visio file
Post by: Paul Herber on November 06, 2017, 12:22:42 PM
Yes, use the Document shapesheet to add either a User-defined row or a Custom Properties row. These also exist for each page and each sheet so ensure you get the Document level.

Title: Re: Add a version number to a visio file
Post by: Gomez on November 06, 2017, 02:00:15 PM
I' ve added a User-defined row to the document shapesheet but a cant use the Value of this row.
As I unterstand it, I have to insert a field and choose than the category "User-defined Cells", but there is not the cell I added to the document shapesheet.
I'm adding the field to a process shape which is in a drawing page.
Title: Re: Add a version number to a visio file
Post by: Paul Herber on November 06, 2017, 02:26:57 PM
I've attached a file. I've added two document cells, one in the Custom Properties and one in the User-defined cells. The document contains two shapes, one has a field to the Custom Properties, one to the User-defined cell.
The Insert Field dialog doesn't offer you the Document fields so you have to know or work out the syntax.
Title: Re: Add a version number to a visio file
Post by: Gomez on November 06, 2017, 03:18:45 PM
Thank you very mutch, this works perfectly!


Title: Re: Add a version number to a visio file
Post by: Paul Herber on November 06, 2017, 04:09:24 PM
The cells need formulae in the form
=TheDoc!User.Version
or
=TheDoc!Prop.Version