Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

OperationCreateMISFileFromAll Method

Creates MIS files from all parts using the given file name.

See Tekla Structures Help for more information about MIS files.

Namespace:  Tekla.Structures.Model.Operations
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
public static bool CreateMISFileFromAll(
	OperationMISExportTypeEnum MISType,
	string FileName
)

Parameters

MISType
Type: Tekla.Structures.Model.OperationsOperationMISExportTypeEnum
The type of the MIS export.
FileName
Type: SystemString
The name of the MIS file to be used in creation.

Return Value

Type: Boolean
True if the MIS files are created, false if the numbering is not up-to-date or the used configuration is wrong.
Exceptions
Exception Condition
ArgumentNullException Thrown when the FileName is null.
ArgumentException Thrown when the FileName is not defined.
Examples
using Tekla.Structures.Model.Operations;
using System.Windows.Forms;

public class Example
{
       public void Example1()
       {
           if (Operation.CreateMISFileFromAll(Operation.MISExportTypeEnum.STEEL2000, "myExport.st2000"))
               MessageBox.Show("MIS creation successful");
       }
}
See Also