Eyeshot 9.0 WinForms API Reference
AddToSceneAsSingleObject(ViewportLayout,String,Int32,Color) Method

WinForms Assembly > devDept.Eyeshot.Translators Namespace > ReadFileAsynchWithBlocks Class > AddToSceneAsSingleObject Method : AddToSceneAsSingleObject(ViewportLayout,String,Int32,Color) Method
The ViewportLayout control used to add entities, layers and blocks.
The block name
The destination layer index.
The color assigned to the entities in the model
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, _
   ByVal color As Color _
) 
public override void AddToSceneAsSingleObject( 
   ViewportLayout viewportLayout,
   string blockName,
   int layerIndex,
   Color color
)

Parameters

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

Reference

ReadFileAsynchWithBlocks Class
ReadFileAsynchWithBlocks Members
Overload List