STEP Object
Import Step CAD data.
Reset
Resets the import options to the default.
FileName ( filename filename )
Sets the name of the imported file.
Id ( int id )
A CAD file may be imported more than once into the same project with different settings of import options. In order to improve the performance of structure rebuilds, an intermediate sat file is stored during the import process which allows to quickly re-read the data during rebuilds in case that the original CAD file has not been modified. The naming convention of the intermediate sat file has to be unique for each individual import step. Therefore, in case that the same file is imported more than once or a file with the same name is imported into the project, the Id setting needs to be increased. The Id will then be incorporated into the file name which ensures unique file names for every import.
Version ( double version )
Sets the version of the import filter, since the behaviour of the import may slightly change from version to version. This setting is available for backward compatibility reasons and should ensure that later versions of the import can exactly reproduce the behaviour of earlier versions. The most recent version of the import is 10.0.
Healing ( bool switch )
If set to True vertices or edges which are not aligned are healed during the import.
ScaleToUnit ( bool switch )
If set to True the imported model is scaled to the currently active unit. If not activated the import feature uses the source units. In such a case, no scaling occurs.
ImportToActiveCoordinateSystem ( bool switch )
Import the CAD data relative to the active coordinate system.
Curves ( bool switch )
Identifies if curves should be imported as curves or as solids.
ImportAttributes ( bool switch )
Identifies if attributes like solid names, material names and material color should be read from the import file.
ImportCurveAttributes ( bool switch )
Identifies if the attributes like curve names should be read from the import file.
ExportAttributes ( bool switch )
Identifies if attributes like curve names, solid names, material names and material color should be written to the export file.
Read
Starts the actual import of the file.
Write
Performs the export.
WriteAll
Exports all data.
FileName ("")
Healing (True)
ImportToActiveCoordinateSystem (False)
ImportCurves (True)
ImportAttributes (True)
With STEP
.Reset
.FileName (".\example.stp")
.Id ("1")
.Version ("8.5")
.Healing (True)
.ImportToActiveCoordinateSystem (False)
.ImportCurves (True)
.ImportAttributes (True)
.Read
End With