Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Translators Namespace / ReadAutodesk Class / AddToSceneAsSingleObject Method / AddToSceneAsSingleObject(ViewportLayout,String,Int32) Method
The ViewportLayout control used to add entities, layers and blocks.
The block name
The destination layer index.

In This Topic
    AddToSceneAsSingleObject(ViewportLayout,String,Int32) 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 layerIndex As Integer _
    ) 
    public override void AddToSceneAsSingleObject( 
       ViewportLayout viewportLayout,
       string blockName,
       int layerIndex
    )

    Parameters

    viewportLayout
    The ViewportLayout control used to add entities, layers and blocks.
    blockName
    The block name
    layerIndex
    The destination layer index.
    See Also