ReadFileAsync.AddToSceneAsSingleObject (Environment, String, Int32) Method

NOTE: This member is now obsolete. Use the method that accepts the layer name instead.

Adds to scene putting the entities inside a Block and creating a BlockReference referring to it.
Public Overridable Sub AddToSceneAsSingleObject( _ 
ByVal environment As Environment, _ 
ByVal blockName As String, _ 
ByVal layerIndex As Integer
)
This language is not supported or no code example is available.
public virtual void AddToSceneAsSingleObject( 
Environment environment
string blockName
int layerIndex 
)
This language is not supported or no code example is available.

Parameters

environment
Environment

The Environment control used to add entities, layers and blocks.

blockName
string

The block name

layerIndex
int

The destination layer index.

Remarks
 
For the ReadFileAsyncWithBlocks classes the BlockReference is affected by a scale factor (from Block.Units to Model.Units).

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition