CreateBlocks: IDimBlocks
The CreateBlocks method returns collection of dictionary blocks.
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;
Blocks: IDimBlocks;
Begin
MB := MetabaseClass.Active;
Dim := MB.ItemById("DYNDIM").Open(Null) As IDynamicInstance;
// Get collection of dictionary blocks
Blocks := Dim.CreateBlocks;
// Display collection size
Debug.WriteLine("Blocks in dictionary: " + Blocks.Count.ToString);
End Sub UserProc;
After executing the example the console displays size of dictionary blocks collection.
See also: