DXF graph export settings.
@example:
# Settings class used to control parameters for exporting graphs to DXF
graph = ce.getObjectsFrom(ce.scene, ce.withName("'Streetnetwork'"))
exportSettings = DXFExportGraphSettings()
exportSettings.setExportWidth(True)
exportSettings.setFilename(ce.toFSPath("data/batchExportTests/graph.dxf"))
ce.export(graph, exportSettings)
此处定义的方法如下:
getExportLog
getExportLog(self):
Returns a dictionary containing details of the export.
@return: A dictionary containing details about the finished export.
getExportWidth
getExportWidth(self):
Gets ExportWidth field. Export total street width into dxf line thinkness field.
@return: Value of ExportWidth field. [True/False]
getFilename
getFilename(self):
Gets Filename field. Path to the export location.
@return: Value of Filename field. [str]
getScript
getScript(self):
Gets Script field. Python script to use for export callbacks.
@return: Value of Script field. [str]
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. [DXFExportGraphSettings]
save
save(self, name):
Save the named settings to the current scene file.
@param name: The name of the settings to save. [str]
setExportWidth
setExportWidth(self, booleanValue):
Sets ExportWidth field. Export total street width into dxf line thinkness field.
@param booleanValue: the new value. [True/False]
setFilename
setFilename(self, stringValue):
Sets Filename field. Path to the export location.
@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]