WriteWebGL(IList<Entity>, IEnumerable<Layer>, IDictionary<StringBlock>, IDictionary<StringMaterial>, Material, Stream, Double, Boolean, Nullable<Color>, String) Constructor

NOTE: This member is now obsolete. Use the constructor that accepts the WriteParams instead.

To stream with tolerance constructor. The exported model will be regenerated with specified tolerance.
Public Sub New( _ 
ByVal entList As IList(Of Entity), _ 
ByVal layerList As IEnumerable(Of Layer), _ 
ByVal blockDict As IDictionary(Of String, Block), _ 
ByVal matDict As IDictionary(Of String, Material), _ 
ByVal defaultMaterial As Material, _ 
ByVal stream As Stream, _ 
ByVal deviation As Double, _ 
Optional ByVal selectedOnly As Boolean = false, _ 
Optional ByVal htmlBodyColor As Nullable(Of Color) = null, _ 
Optional ByVal htmlTemplate As String = null _ 
)
This language is not supported or no code example is available.
public WriteWebGL( 
IList<Entity> entList
IEnumerable<Layer> layerList
IDictionary<string, Block> blockDict
IDictionary<string, Material> matDict
Material defaultMaterial
Stream stream
double deviation
bool selectedOnly = false, 
Nullable<Color> htmlBodyColor = null, 
string htmlTemplate = null 
)
This language is not supported or no code example is available.

Parameters

entList
IList<Entity>

The entity list.

layerList
IEnumerable<Layer>

The layer list.

blockDict
IDictionary<string, Block>

The block dictionary.

matDict
IDictionary<string, Material>

The material dictionary.

defaultMaterial
Material

The default material.

stream
Stream

The file stream.

deviation
double

Tolerance used to tessellate surface entities.

selectedOnly
bool

When true, only selected entities at root level are written.

htmlBodyColor
Nullable<Color>

The Color for the HTML body. It can be null/Nothing.

htmlTemplate
string

A string representing the HTML template for the output. It must contain both EyeshotGeometry and EyeshotScripts html comment tags to work properly.

Remarks
 
The htmlBodyColor will add the bgcolor attribute but it may not work when you use a custom htmlTemplate.
Example
 
         <html>
          
              <script>
                ...
                <!-- EyeshotScripts -->
                ...
              </script>
              <body>
                ...
                <!-- EyeshotGeometry -->
                ...
              </body>
                  
    </html>					

.NET Framework

Supported in: 4.8

In this article

Definition