STLExportOptions.isBinaryFormat Property

Parent Object: STLExportOptions
Defined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/STLExportOptions.h>

Description

Indicates if the STL file is to be an ASCII or binary STL format. The default is true.

Syntax

"sTLExportOptions_var" is a variable referencing a STLExportOptions object.
# Get the value of the property.
propertyValue = sTLExportOptions_var.isBinaryFormat

# Set the value of the property.
sTLExportOptions_var.isBinaryFormat = propertyValue
"sTLExportOptions_var" Is a variable referencing a STLExportOptions Object.
#include <Fusion/Fusion/STLExportOptions.h>

// Get the value of the property.
boolean propertyValue = sTLExportOptions_var->isBinaryFormat();

// Set the value of the property, where value_var is a boolean.
bool returnValue = sTLExportOptions_var->isBinaryFormat(value_var);
"sTLExportOptions_var" Is a variable referencing a STLExportOptions Object.
// Get the value of the property.
propertyValue = sTLExportOptions_var.isBinaryFormat;

// Set the value of the property.
sTLExportOptions_var.isBinaryFormat = propertyValue;

Property Value

This is a read/write property whose value is a boolean.

Samples

Name Description
Export to other formats API Sample

Demonstrates exporting the active design to IGES, STEP, SAT, SMT, F3D, and STL formats.

Before running: Have a design open in the DESIGN workspace. Run the script from Scripts and Add-Ins. It writes translated files to a temporary directory and shows that path in a message box.

Version

Introduced in version January 2015