Page Unique ID ?

Started by tommy, July 24, 2009, 09:13:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tommy

Hi,

Do you know how to retrieve page's unique ID ? There is property called ID exposed by the Page object. According to the documentation:

Quote
The ID of a shape is unique only within the scope of the page or master. The ID of a page, master, or style is unique within the scope of the document.

If a shape, page, master, or style is deleted, future objects in the same scope may be assigned the same ID. Therefore, persisting shape or style IDs in separate data stores is generally not as sound as persisting unique IDs using the UniqueID property.

UniqueID ? No, it doesn't exist i.e. I can't find a property or a method to retrieve such an ID.

The problem is that I export pages to .png files based on their names and use them for something else in other script.
If user renames a page then I end up in trouble.


Any ideas how to retrieve page's unique id ? Thanks

tommy

Paul Herber

It's not a uniqueID in thsame way as uniqueID for shapes. It's just an integer : pagObj.ID

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

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