Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / EntityList Class / ReplaceBlockNames Method / ReplaceBlockNames<T>(Dictionary<String,String>,IList<Entity>,BlockKeyedCollection) Method
The dictionary that maps the old block name to the new one
The entities to process
The blocks to process

In This Topic
    ReplaceBlockNames<T>(Dictionary<String,String>,IList<Entity>,BlockKeyedCollection) Method
    In This Topic
    Replaces the block names in the BlockReference and Block objects found in the given entities and blocks with the ones specified by the mapping.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub ReplaceBlockNames(Of T As Block)( _
       ByVal blockNamesMapping As Dictionary(Of String,String), _
       ByVal entities As IList(Of Entity), _
       ByRef blocks As BlockKeyedCollection _
    ) 
    public static void ReplaceBlockNames<T>( 
       Dictionary<string,string> blockNamesMapping,
       IList<Entity> entities,
       ref BlockKeyedCollection blocks
    )
    where T: Block

    Parameters

    blockNamesMapping
    The dictionary that maps the old block name to the new one
    entities
    The entities to process
    blocks
    The blocks to process

    Type Parameters

    T
    See Also