FGDBExportModelSettings

Encodes geometry into the esri shape buffer format (revision 2012-02-17).

@example:
# Settings class used to control parameters for exporting models to Esri File GDB
exportSettings = FGDBExportModelSettings()
exportSettings.setOutputPath(ce.toFSPath("/python/models/batchExportTests") + "/")
exportSettings.setGeodatabaseName("fgdb_batchexport.gdb")
exportSettings.setTerrainLayers(exportSettings.TERRAIN_NONE)
ce.export(ce.selection()[0], exportSettings)

 

Methods defined here:

getEmitReports

getEmitReports(self):

Gets EmitReports field. Whether and how to emit GA reports reports on models.

@return: Value of EmitReports field.  ["NONE", "SUM_ONLY", "FULL"] [str]

getExportDatasetRelationships

getExportDatasetRelationships(self):

Gets ExportDatasetRelationships field. Create related dataset from prefixed object attributes.

@return: Value of ExportDatasetRelationships field.  [True/False]

getExportFeatures

getExportFeatures(self):

Gets ExportFeatures field. Choose which feature type to export. 'Models and Shapes' writes the start shapes and their generated models into two separate feature classes. 'Models' only writes the generated model into a multipatch feature class. 'Shapes' only writes the start shape into a feature class and disregards the model generation.

@return: Value of ExportFeatures field.  ["MODELS_AND_SHAPES", "MODELS", "SHAPES"] [str]

getExportGeometry

getExportGeometry(self):

Gets ExportGeometry field. Choose what geometry is exported. 'Models with Shape Fallback' writes the Start Shape if the Model generation fails. 'Models' skips to the next export item if the Model generation fails. 'Shapes' always writes the Start Shape and disregards the Model generation.

@return: Value of ExportGeometry field.  ["MODEL_GEOMETRY_FALLBACK", "MODEL_GEOMETRY", "SHAPE_GEOMETRY"] [str]

getExportLog

getExportLog(self):

Returns a dictionary containing details of the export.

@return: A dictionary containing details about the finished export.

getExportObjectAttributes

getExportObjectAttributes(self):

Gets ExportObjectAttributes field. Include object attributes in the feature class.

@return: Value of ExportObjectAttributes field.  [True/False]

getFacesWithHoles

getFacesWithHoles(self):

Gets FacesWithHoles field. Specifies how faces with holes should be handled during the export.

@return: Value of FacesWithHoles field.  ["PASS", "TRIANGULATE_FACES_WITH_HOLES", "DISCARD_HOLES", "CONVERT_HOLES_TO_FACES"] [str]

getGeodatabaseName

getGeodatabaseName(self):

Gets GeodatabaseName field. Name of the geodatabase.

@return: Value of GeodatabaseName field.  [str]

getGlobalScalingFactor

getGlobalScalingFactor(self):

Gets GlobalScalingFactor field. Scaling factor for vertex coordinates.

@return: Value of GlobalScalingFactor field.  [float]

getOutputPath

getOutputPath(self):

Gets OutputPath field. Output directory for all exported files.

@return: Value of OutputPath field.  [str]

getScript

getScript(self):

Gets Script field. Python script to use for export callbacks.

@return: Value of Script field.  [str]

getShapeNameDelimiter

getShapeNameDelimiter(self):

Gets ShapeNameDelimiter field. Delimiting character for resolution of shape name clashes.

@return: Value of ShapeNameDelimiter field.  [str]

getSimplifyTerrainMeshes

getSimplifyTerrainMeshes(self):

Gets SimplifyTerrainMeshes field. Perform geometry simplification on terrains.

@return: Value of SimplifyTerrainMeshes field.  [True/False]

getTerrainLayers

getTerrainLayers(self):

Gets TerrainLayers field. Choose how terrain layers are exported.

@return: Value of TerrainLayers field.  ["TERRAIN_ALL_VISIBLE", "TERRAIN_ALL_SELECTED", "TERRAIN_ALL", "TERRAIN_NONE"] [str]

getTerrainMeshResolution

getTerrainMeshResolution(self):

Gets TerrainMeshResolution field. Resolution of the generated terrain mesh. In the Python API this is an integer list [x-Resolution, y-Resolution]. A Python integer value of -1 will be replaced with the highest resolution of the selected terrains but limited at 1024.

@return: Value of TerrainMeshResolution field.  [sequence of int]

getTextureQuality

getTextureQuality(self):

Gets TextureQuality field. JPG image quality factor.

@return: Value of TextureQuality field.  [float]

getTriangulateMeshes

getTriangulateMeshes(self):

Gets TriangulateMeshes field. Triangulate resulting meshes.

@return: Value of TriangulateMeshes field.  [True/False]

getWriteLog

getWriteLog(self):

Gets WriteLog field. Write log file with statistics about this export session.

@return: Value of WriteLog field.  [True/False]

load

load(self, name):

Load the named settings from the current scene file.

@param name: The name of the settings to load.  [str]
@return: result. [FGDBExportModelSettings]

save

save(self, name):

Save the named settings to the current scene file.

@param name: The name of the settings to save.  [str]

setEmitReports

setEmitReports(self, stringValue):

Sets EmitReports field. Whether and how to emit GA reports reports on models.

@param stringValue: the new value ["NONE", "SUM_ONLY", "FULL"]. [str]

setExportDatasetRelationships

setExportDatasetRelationships(self, booleanValue):

Sets ExportDatasetRelationships field. Create related dataset from prefixed object attributes.

@param booleanValue: the new value. [True/False]

setExportFeatures

setExportFeatures(self, enumValue):

Sets ExportFeatures field. Choose which feature type to export. 'Models and Shapes' writes the start shapes and their generated models into two separate feature classes. 'Models' only writes the generated model into a multipatch feature class. 'Shapes' only writes the start shape into a feature class and disregards the model generation.

@param enumValue: the new value ["MODELS_AND_SHAPES", "MODELS", "SHAPES"]. [str]

setExportGeometry

setExportGeometry(self, enumValue):

Sets ExportGeometry field. Choose what geometry is exported. 'Models with Shape Fallback' writes the Start Shape if the Model generation fails. 'Models' skips to the next export item if the Model generation fails. 'Shapes' always writes the Start Shape and disregards the Model generation.

@param enumValue: the new value ["MODEL_GEOMETRY_FALLBACK", "MODEL_GEOMETRY", "SHAPE_GEOMETRY"]. [str]

setExportObjectAttributes

setExportObjectAttributes(self, booleanValue):

Sets ExportObjectAttributes field. Include object attributes in the feature class.

@param booleanValue: the new value. [True/False]

setFacesWithHoles

setFacesWithHoles(self, stringValue):

Sets FacesWithHoles field. Specifies how faces with holes should be handled during the export.

@param stringValue: the new value ["PASS", "TRIANGULATE_FACES_WITH_HOLES", "DISCARD_HOLES", "CONVERT_HOLES_TO_FACES"]. [str]

setGeodatabaseName

setGeodatabaseName(self, stringValue):

Sets GeodatabaseName field. Name of the geodatabase.

@param stringValue: the new value. [str]

setGlobalScalingFactor

setGlobalScalingFactor(self, floatValue):

Sets GlobalScalingFactor field. Scaling factor for vertex coordinates.

@param floatValue: the new value. [float]

setOutputPath

setOutputPath(self, stringValue):

Sets OutputPath field. Output directory for all exported files.

@param stringValue: the new value. [str]

setScript

setScript(self, stringValue):

Sets Script field. Python script to use for export callbacks.

@param stringValue: the new value. [str]

setShapeNameDelimiter

setShapeNameDelimiter(self, stringValue):

Sets ShapeNameDelimiter field. Delimiting character for resolution of shape name clashes.

@param stringValue: the new value. [str]

setSimplifyTerrainMeshes

setSimplifyTerrainMeshes(self, booleanValue):

Sets SimplifyTerrainMeshes field. Perform geometry simplification on terrains.

@param booleanValue: the new value. [True/False]

setTerrainLayers

setTerrainLayers(self, enumValue):

Sets TerrainLayers field. Choose how terrain layers are exported.

@param enumValue: the new value ["TERRAIN_ALL_VISIBLE", "TERRAIN_ALL_SELECTED", "TERRAIN_ALL", "TERRAIN_NONE"]. [str]

setTerrainMeshResolution

setTerrainMeshResolution(self, intArrayValue):

Sets TerrainMeshResolution field. Resolution of the generated terrain mesh. In the Python API this is an integer list [x-Resolution, y-Resolution]. A Python integer value of -1 will be replaced with the highest resolution of the selected terrains but limited at 1024.

@param intArrayValue: the new value. [sequence of int]

setTextureQuality

setTextureQuality(self, floatValue):

Sets TextureQuality field. JPG image quality factor.

@param floatValue: the new value. [float]

setTriangulateMeshes

setTriangulateMeshes(self, booleanValue):

Sets TriangulateMeshes field. Triangulate resulting meshes.

@param booleanValue: the new value. [True/False]

setWriteLog

setWriteLog(self, booleanValue):

Sets WriteLog field. Write log file with statistics about this export session.

@param booleanValue: the new value. [True/False]

Constants

This class defines the following constants:

CONVERT_HOLES_TO_FACES = 'CONVERT_HOLES_TO_FACES'
DISCARD_HOLES = 'DISCARD_HOLES'
FULL = 'FULL'
MODELS = 'MODELS'
MODELS_AND_SHAPES = 'MODELS_AND_SHAPES'
MODEL_GEOMETRY = 'MODEL_GEOMETRY'
MODEL_GEOMETRY_FALLBACK = 'MODEL_GEOMETRY_FALLBACK'
NONE = 'NONE'
PASS = 'PASS'
SHAPES = 'SHAPES'
SHAPE_GEOMETRY = 'SHAPE_GEOMETRY'
SUM_ONLY = 'SUM_ONLY'
TERRAIN_ALL = 'TERRAIN_ALL'
TERRAIN_ALL_SELECTED = 'TERRAIN_ALL_SELECTED'
TERRAIN_ALL_VISIBLE = 'TERRAIN_ALL_VISIBLE'
TERRAIN_NONE = 'TERRAIN_NONE'
TRIANGULATE_FACES_WITH_HOLES = 'TRIANGULATE_FACES_WITH_HOLES'