ReadAutodesk.AddToScene (Environment, RegenOptions) Method

Adds to the Environment control the entities loaded from the file, along with the other master collections. Items contained previously in the Environment are merged, except the root block that is replaced with the one loaded from the file, if it exists.
Public Overrides Sub AddToScene( _ 
ByVal environment As Environment, _ 
Optional ByVal ro As RegenOptions = null _ 
)
This language is not supported or no code example is available.
public override void AddToScene( 
Environment environment
RegenOptions ro = null 
)
This language is not supported or no code example is available.

Parameters

environment
Environment

The Environment control used to add entities and other collections.

ro
RegenOptions

Asynchronous regeneration options

Exception type Condition

EyeshotException

Thrown when trying to add to the Environment a file with a root block but that also contains ReadFileAsync.Entities not belonging to any block.

Remarks
 
The default behaviour is to replace the environment root block with the one loaded from the file, if you don't want to replace it use ReadFileAsyncWithBlocks.AddToScene

.NET Framework

Supported in: 4.8

In this article

Definition