Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Translators Namespace / ReadFile Class / AddToSceneAsSingleObject Method / AddToSceneAsSingleObject(ViewportLayout,String,Int32,Color) Method
The Viewport used to add entities and materials
The block name
The destination layer index.
The color assigned to the entities in the model

In This Topic
    AddToSceneAsSingleObject(ViewportLayout,String,Int32,Color) Method
    In This Topic
    Adds entities and materials, read from the Eyeshot file, to the Viewport 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, _
       ByVal color As Color _
    ) 
    public override void AddToSceneAsSingleObject( 
       ViewportLayout viewportLayout,
       string blockName,
       int layerIndex,
       Color color
    )

    Parameters

    viewportLayout
    The Viewport used to add entities and materials
    blockName
    The block name
    layerIndex
    The destination layer index.
    color
    The color assigned to the entities in the model
    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