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

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

    Parameters

    viewportLayout
    The ViewportLayout control used to add entities, layers and blocks.
    blockName
    The block name
    layerName
    The destination layer name.
    Remarks
    For the ReadFileAsyncWithBlocks classes the BlockReference is affected by a scale factor (from devDept.Eyeshot.Block.Units to devDept.Eyeshot.ViewportLayout.Units).
    See Also