| Python Script Engine 8.3 GL Studio Editor Python Script API

Public Types | Public Member Functions | Static Public Member Functions | List of all members
GlsDWBImporter Class Reference

## Public Types
enum | DWB_Units_e { DWB_UNITS_MM , DWB_UNITS_CM , DWB_UNITS_M , DWB_UNITS_IN , DWB_UNITS_FT }

## Public Member Functions
Group * | Import (String filename, Document doc, bool reposition, bool enableLighting, bool importAsMesh, float scale, DWB_Units_e units)

## Static Public Member Functions
static GlsDWBImporter & | GetInstance ()

## Detailed Description

Plug-in used to import DWB files into GL Studio.

## Member Enumeration Documentation

## ◆ DWB_Units_e

enum GlsDWBImporter::DWB_Units_e

The unit type enumeration.

Enumerator
DWB_UNITS_MM | Millimeter.
DWB_UNITS_CM | Centimeter.
DWB_UNITS_M | Meter.
DWB_UNITS_IN | Inch.
DWB_UNITS_FT | Foot.

## Member Function Documentation

## ◆ GetInstance()

static GlsDWBImporter & GlsDWBImporter::GetInstance | ( |  | ) |
| static

## ◆ Import()

Group * GlsDWBImporter::Import | ( | String | filename,
|  | Document | doc,
|  | bool | reposition,
|  | bool | enableLighting,
|  | bool | importAsMesh,
|  | float | scale,
|  | DWB_Units_e | units
| ) |  |

Imports a DWB file using the DWB Importer.

Parameters

  filename | Name of the file to import
  doc | Document into which the file should be imported
  reposition | Flag to determine if the imported objects should be repositioned
  enableLighting | Flag to determine if lighting should be enabled
  importAsMesh | Flag to import the file as a mesh
  scale | Scale to be applied to the newly imported objects
  units | Unit measurement within the DWB file

Returns
  A group containing objects imported from the DWB file

Exceptions

  CEIException |

The documentation for this class was generated from the following file:

- GlsDWBImporter.i