When you upload any object from your local file system to a
repository, the object is automatically assigned an object type by EKM. This
is based on the file extension and in some cases, some additional
built-in logic. If EKM recognizes the object you are uploading
as a built-in or predefined custom type then it will assign the default
type to it. For example, when you upload a file with extension .dsdb, EKM will recognize it as a Mechanical Database type. Unrecognized files are assigned
the File type.
There are some built-in CAE file types that share the same extension (or have the same extension as registered file types) but have different formats. These are listed in the table below:
Table 7.2: CAE Built-in Types With Common Extensions
| Extension | Possible Types |
|---|---|
| dat | Polyflow Data, Fluent Data, Mechanical APDL Input, File |
| inp | Mechanical APDL Input, File |
In these cases EKM reduces the chance of setting the wrong type during upload by reading the first few lines of a file and using type-specific logic to infer the file type. If successful, it sets the default type to the corresponding type. This method of type validation ensures that in almost all cases, the correct type will be set as the default. If EKM cannot determine the file type, then it will use the preferred type for the given file extension that is specified in your global Preferences as the default.
Custom types are validated using a Java class defined in the
type’s typeValidatorClass attribute.
For more information about this attribute, see Defining Type Attributes for a Custom Type in the EKM Administration
Guide.
Note: If the file or archive you are uploading contains digits
after the file extension then EKM will ignore the digits and
type the file based on the recognized built-in or custom type extension.
For example, if you upload files myfile.cas.123 and myfile.cas.123.zip, then EKM will
assign both files the Fluent Case type. Similarly, if a custom type named ProE with file extension .prt is defined for your
workspace, then when you upload files named myfile.prt.5 and myfile.prt.5.gz, EKM will assign the ProE type to both.