SetSPFFHeader

This call is an aggregate of several SetSPFFHeaderItem calls. In several cases the header can be set easily with this call. In case an argument is zero, this argument will not be updated, i.e. it will not be filled with 0.

Syntax

public const string IFCEngineDLL = @"IFCEngine.dll";

[DllImport(IFCEngineDLL, EntryPoint = "SetSPFFHeader")]
public static extern void SetSPFFHeader(Int64 model, string description, string implementationLevel, string name, string timeStamp, string author, string organization, string preprocessorVersion, string originatingSystem, string authorization, string fileSchema);

[DllImport(IFCEngineDLL, EntryPoint = "SetSPFFHeader")]
public static extern void SetSPFFHeader(Int64 model, byte[] description, byte[] implementationLevel, byte[] name, byte[] timeStamp, byte[] author, byte[] organization, byte[] preprocessorVersion, byte[] originatingSystem, byte[] authorization, byte[] fileSchema);    

Property model

Size: 64 bit / 8 byte (value)
Handle of the model containing the IFC file, this handle is needed in many other calls and given when the model is created.

Property description

Size: 64 bit / 8 byte (reference)
The description in the header.

Property implementationLevel

Size: 64 bit / 8 byte (reference)
The implementation level in the header.

Property name

Size: 64 bit / 8 byte (reference)
The name in the header.

Property timeStamp

Size: 64 bit / 8 byte (reference)
The time stamp in the header.

Property author

Size: 64 bit / 8 byte (reference)
The author in the header.

Property organization

Size: 64 bit / 8 byte (reference)
The organization in the header.

Property preprocessorVersion

Size: 64 bit / 8 byte (reference)
The preprocessor version in the header.

Property originatingSystem

Size: 64 bit / 8 byte (reference)
The originating system in the header.

Property authorization

Size: 64 bit / 8 byte (reference)
The authorization in the header.

Property fileSchema

Size: 64 bit / 8 byte (reference)
The file schema in the header.

Examples

Here you can find code snippits that show how the API call SetSPFFHeader can be used.

string ifcFileName = "myFileName", timeStamp = "current date and time";

...
...

IfcEngine.x86.SetSPFFHeader(
            model,
            System.Text.Encoding.UTF8.GetBytes("ViewDefinition [CoordinationView]"),
            System.Text.Encoding.UTF8.GetBytes("2;1"),
            System.Text.Encoding.UTF8.GetBytes(ifcFileName),
            System.Text.Encoding.UTF8.GetBytes(timeStamp),
            System.Text.Encoding.UTF8.GetBytes("Architect"),
            System.Text.Encoding.UTF8.GetBytes("Building Designer Office"),
            System.Text.Encoding.UTF8.GetBytes("IFC Engine DLL"),
            System.Text.Encoding.UTF8.GetBytes("Documentation Example"),
            System.Text.Encoding.UTF8.GetBytes("The authorising person"),
            System.Text.Encoding.UTF8.GetBytes("IFC4")
        );


OR


string ifcFileName = "myFileName", timeStamp = "current date and time";

...
...

IfcEngine.x86.setStringUnicode(1);
IfcEngine.x86.SetSPFFHeader(
            model,
            System.Text.Encoding.Unicode.GetBytes("ViewDefinition [CoordinationView]"),
            System.Text.Encoding.Unicode.GetBytes("2;1"),
            System.Text.Encoding.Unicode.GetBytes(ifcFileName),
            System.Text.Encoding.Unicode.GetBytes(timeStamp),
            System.Text.Encoding.Unicode.GetBytes("Architect"),
            System.Text.Encoding.Unicode.GetBytes("Building Designer Office"),
            System.Text.Encoding.Unicode.GetBytes("IFC Engine DLL"),
            System.Text.Encoding.Unicode.GetBytes("Documentation Example"),
            System.Text.Encoding.Unicode.GetBytes("The authorising person"),
            System.Text.Encoding.Unicode.GetBytes("IFC4")
        );