Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Translators Namespace / ReadFileAsyncWithMaterials Class / AddToSceneAsSingleObject Method / AddToSceneAsSingleObject(ViewportLayout,String,Color) Method
The ViewportLayout control used to add entities, layers, blocks and materials.
The block name
The color assigned to the entities in the model

In This Topic
    AddToSceneAsSingleObject(ViewportLayout,String,Color) Method
    In This Topic
    Adds to scene putting the entities inside a Block and creating a BlockReference referring to it.
    Syntax
    'Declaration
     
    Public Overloads Overrides Sub AddToSceneAsSingleObject( _
       ByVal viewportLayout As ViewportLayout, _
       ByVal blockName As String, _
       ByVal color As Color _
    ) 
    public override void AddToSceneAsSingleObject( 
       ViewportLayout viewportLayout,
       string blockName,
       Color color
    )

    Parameters

    viewportLayout
    The ViewportLayout control used to add entities, layers, blocks and materials.
    blockName
    The block name
    color
    The color assigned to the entities in the model
    See Also