ReadOBJ.AddToSceneAsSingleObject (Environment, String, Int32, Color) Method

Adds entities and materials, read from the OBJ file, to the Viewport putting the entities inside a Block and creating a BlockReference referring to it.
Public Overrides Sub AddToSceneAsSingleObject( _ 
ByVal environment As Environment, _ 
ByVal blockName As String, _ 
ByVal layerIndex As Integer, _ 
ByVal color As Color
)
This language is not supported or no code example is available.
public override void AddToSceneAsSingleObject( 
Environment environment
string blockName
int layerIndex
Color color 
)
This language is not supported or no code example is available.

Parameters

environment
Environment

The Viewport used to add entities and materials

blockName
string

The block name

layerIndex
int

The destination layer index.

color
Color

The color assigned to the entities in the model

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