Share via


BaseID Property [Visio 2003 SDK Documentation]

Returns a base ID for a master.

strRet = object**.BaseID**

strRet     String. A Master object's base ID.

object     Required. An expression that returns a Master object.

Version added

2000

Remarks

A base ID is assigned to a master when it is created. When a master is copied, the copies all have the same base ID as the original master.

A Master object also has a UniqueID property that remains the same as that of the original master when copied. If the copy of the master gets changed, the unique ID changes but the base ID remains the same.

The only way to change a master's base ID is to use the NewBaseID property.

If you know the base ID of a master, you can use the following code to retrieve the master from the Master's collection of the active document:

'Retrieve the master whose BaseID value is 
'{0478DA94-1315-9876-8E4C-006523ABC9B2}
Dim vsoMaster As Visio.Master
Set vsoMaster = Visio.ActiveDocument.Masters("B{0478DA94-1315-9876-8E4C-006523ABC9B2}")   

If you know the base ID or the unique ID of a master, but are not sure which kind of ID it is, you can use the following code to retrieve the master from the Masters collection of the active document:

'Retrieve the master whose UniqueID or BaseID value is
'{0478DA94-1315-9876-8E4C-006523ABC9B2}
Dim vsoMaster As Visio.Master
Set vsoMaster = Visio.ActiveDocument.Masters("A{0478DA94-1315-9876-8E4C-006523ABC9B2}")

Applies to | Master object

See Also | NewBaseID property | UniqueID property