STL Object

Most of today’s CAD systems offer STL import/export options. In case your CAD system does not support SAT or IGES export you might import structure data via the STL interface. Though STL data export/import is very common, STL data import can take some time and might lead to a very slow meshing process, because every STL triangle will be converted to an ACIS FACE.

If you have the choice between a high end data format like SAT / IGES and STL – choose the high end format, because further operations on the structure will be much faster.

Methods

Reset

Resets the import options to the default.

 

FileName ( filename filename )

Sets the name of the imported file.

 

Name ( name name )

Sets a name.

 

Component ( name componentname )

Sets the component name for the solid.

 

ScaleToUnit ( bool switch )

If set to True the imported model is scaled to the currently active unit. The scale factor is determined by the unit of the import model and the currently active unit in the project. As the unit of the import model are not defined in the import file you have to specify the unit of the import model by using  ImportFileUnits. If not activated no scaling occurs.

 

ImportFileUnits ( enum {"m", "cm", "mm", "um", "nm", "ft", "mil", "in"} units )

Sets the units of the imported model. The units have to be defined when ScaleToUnit is activated.

 

ImportToActiveCoordinateSystem ( bool switch )

Import the CAD data relative to the active coordinate system.

 

Read

Starts the actual import of the file.

 

Write

Performs the export.

Default Settings

FileName ("")

Name ("")

Component ("default")

ImportToActiveCoordinateSystem (False)

Examples

With STL

    .Reset

    .FileName (".\example.stl")

    .Name ("test")

    .Component ("default")

    .ImportToActiveCoordinateSystem (False)

    .Read

End With

 

With STL

    .Reset

    .FileName (".\example.stl")

    .Name ("solid1")

    .Component ("component1/component1")

    .Write

End With