CATIA Object

Import CATIA V4 and CATIA V5 files.

Methods

Reset

Resets the import options to the default.

 

FileName ( filename filename )

Sets the name of the imported file.

 

CatiaVersion ( int version )

Sets the file catia version. Versions 4 and 5 are valid options.

 

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.

 

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.

 

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. Is only used in combination with CATIA 5 import files.

 

ImportCurveAttributes ( bool  switch )

Identifies if the attributes like curve names should be read from the import file. Is only used in combination with CATIA 5 import files.

 

Read

Starts the actual import of the file.

Default Settings

FileName ("")

Version (4)

Healing (True)

ImportToActiveCoordinateSystem (False)

ImportCurves (True)

ImportAttributes (True)

Example

With CATIA

    .Reset

    .FileName (".\example.model")

    .Healing (True)

    .ImportToActiveCoordinateSystem (False)

    .ImportCurves (True)

    .ImportAttributes (True)

    .Read    

End With