ReadAutodesk.AddToScene (Environment, Boolean, 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.
Public Overrides Sub AddToScene( _ 
ByVal environment As Environment, _ 
ByVal replaceRootBlock As Boolean, _ 
Optional ByVal ro As RegenOptions = null _ 
)
This language is not supported or no code example is available.
public override void AddToScene( 
Environment environment
bool replaceRootBlock
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.

replaceRootBlock
bool

When true, the root block is replaced with the one loaded from the file, if it exists.

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.

.NET Framework

Supported in: 4.8

In this article

Definition