CreateBlocksInstance: IDimBlocksInstance;
The CreateBlocksInstance method returns collection of dictionary blocks instances.
Executing the example requires that the repository contains MDM table dictionary with set dynamic loading of elements and with the DYNDIM identifier.
Add links to the Dimensions and Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Dim: IDynamicInstance;
BlocksInst: IDimBlocksInstance;
Begin
MB := MetabaseClass.Active;
Dim := MB.ItemById("DYNDIM").Open(Null) As IDynamicInstance;
// Get collection of dictionary blocks instances
BlocksInst := Dim.CreateBlocksInstance;
// Display collection size
Debug.WriteLine("Blocks in the dictionary: " + BlocksInst.Count.ToString);
End Sub UserProc;
After executing the example the console displays size of dictionary blocks collection.
See also: