Author Topic: Can a Visio Shape ever have an ID of 0 (zero)?  (Read 703 times)

0 Members and 1 Guest are viewing this topic.

Visisthebest

  • Hero Member
  • *****
  • Posts: 886
Can a Visio Shape ever have an ID of 0 (zero)?
« on: October 04, 2023, 05:50:55 AM »
Can a Visio Shape ever have an ID of 0 (zero)?
Visio 2021 Professional

Yacine

  • Hero Member
  • *****
  • Posts: 3236
Re: Can a Visio Shape ever have an ID of 0 (zero)?
« Reply #1 on: October 04, 2023, 05:57:19 AM »
the first shape in a drawing has an id of 1 and can't be modified.
You may however test if manually overwriting this value in the xml of the file will break it or not.
Is it an academical question, or do you have a real life problem?
« Last Edit: October 04, 2023, 05:58:56 AM by Yacine »
Yacine

Visisthebest

  • Hero Member
  • *****
  • Posts: 886
Re: Can a Visio Shape ever have an ID of 0 (zero)?
« Reply #2 on: October 04, 2023, 06:09:57 AM »
Only in real life, I don't care about a manually changed Visio file (by editing XML). Thank you Yacine!
Visio 2021 Professional

Surrogate

  • Hero Member
  • *****
  • Posts: 1836
    • ShapeSheet™ Knowledge Base
Re: Can a Visio Shape ever have an ID of 0 (zero)?
« Reply #3 on: October 04, 2023, 07:49:35 AM »
Can a Visio Shape ever have an ID of 0 (zero)?
FYI (in academical sence) ;D
Quote from: Tumanov a.k.a. Croc in Russian Visio forum's post
Code
=Pages[Page-1]!ThePage!Prop.Prop1
or
Code
=Pages[Page-1]!ThePage!Prop.Row_1
, if the lines are not named
By the way, if you write
Code
=Pages[Page-1]!Sheet.0!Prop.Row_1
, then it will itself be renamed to ThePage.

Because ThePage is also a shape, but zero.

Read initial post via Google Translate service
« Last Edit: October 04, 2023, 07:54:19 AM by Surrogate »

Yacine

  • Hero Member
  • *****
  • Posts: 3236
Re: Can a Visio Shape ever have an ID of 0 (zero)?
« Reply #4 on: October 04, 2023, 12:38:09 PM »
smart!
Yacine