Eyeshot 10 WPF API Reference
AddToSceneAsSingleObject(ViewportLayout,String,Int32) Method

WPF Assembly > devDept.Eyeshot.Translators Namespace > ReadFileAsync 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.
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 layerIndex As Integer _
) 
public virtual 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.
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

Reference

ReadFileAsync Class
ReadFileAsync Members
Overload List