Example #1
0
 public IfcFileHeader(HeaderCreationMode Mode)
 {
     if (Mode == HeaderCreationMode.InitWithXbimDefaults)
     {
         FileDescription = new FileDescription("2;1");
         FileName        = new FileName(DateTime.Now)
         {
             PreprocessorVersion =
                 string.Format("Xbim.Ifc File Processor version {0}",
                               Assembly.GetExecutingAssembly().GetName().Version),
             OriginatingSystem =
                 string.Format("Xbim version {0}",
                               Assembly.GetExecutingAssembly().GetName().Version),
         };
         FileSchema = new FileSchema("IFC2X3");
     }
     else
     {
         // Please note do not put any value initialisation in here
         // Any value initialised here is added to ALL models read from IFC
         //
         // Any information required before writing a file for schema constraint needs to be checked upon writing
         // e.g. cfr. FileDescription.MakeValid();
         //
         FileDescription = new FileDescription();
         FileName        = new FileName();
         FileSchema      = new FileSchema();
     }
 }
Example #2
0
 public IfcFileHeader(HeaderCreationMode Mode)
 {
     if (Mode == HeaderCreationMode.InitWithXbimDefaults)
     {
         FileDescription = new FileDescription("2;1");
         FileName = new FileName(DateTime.Now)
             {
                 PreprocessorVersion =
                     string.Format("Xbim.Ifc File Processor version {0}",
                                   Assembly.GetExecutingAssembly().GetName().Version),
                 OriginatingSystem =
                     string.Format("Xbim version {0}",
                                   Assembly.GetExecutingAssembly().GetName().Version),
             };
         FileSchema = new FileSchema("IFC2X3");
     }
     else
     {
         // Please note do not put any value initialisation in here
         // Any value initialised here is added to ALL models read from IFC
         // 
         // Any information required before writing a file for schema constraint needs to be checked upon writing
         // e.g. cfr. FileDescription.MakeValid();
         //
         FileDescription = new FileDescription();
         FileName = new FileName();
         FileSchema = new FileSchema();
     }
 }