Author Topic: Add a version number to a visio file  (Read 4849 times)

0 Members and 1 Guest are viewing this topic.

Gomez

  • Newbie
  • *
  • Posts: 8
Add a version number to a visio file
« on: November 06, 2017, 07:04:24 AM »
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

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3301
    • Paul Herber's website
Re: Add a version number to a visio file
« Reply #1 on: November 06, 2017, 07:22:42 AM »
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.

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

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

Gomez

  • Newbie
  • *
  • Posts: 8
Re: Add a version number to a visio file
« Reply #2 on: November 06, 2017, 09:00:15 AM »
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.

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3301
    • Paul Herber's website
Re: Add a version number to a visio file
« Reply #3 on: November 06, 2017, 09:26:57 AM »
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.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

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

Gomez

  • Newbie
  • *
  • Posts: 8
Re: Add a version number to a visio file
« Reply #4 on: November 06, 2017, 10:18:45 AM »
Thank you very mutch, this works perfectly!



Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3301
    • Paul Herber's website
Re: Add a version number to a visio file
« Reply #5 on: November 06, 2017, 11:09:24 AM »
The cells need formulae in the form
=TheDoc!User.Version
or
=TheDoc!Prop.Version
Electronic and Electrical engineering, business and software stencils and applications for Visio -

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