private IStepFileHeader _fileHeader; // removed the initialiser because it's assigned from the model on write. #endregion /// <summary> /// Constructor of the XML writer. This writer implements conventions for IFC4 XML and needs to /// get configuration with speficic cases like inversed inverses and other special cases. /// Default settings and configuration are for IFC4 Add1. If you pass configuration and settings /// make sure both are for the same schema definition. /// </summary> /// <param name="settings">Settings for writer like namespaces and root element name</param> public XbimXmlWriter4(XbimXmlSettings settings) { _conf = settings.Configuration ?? configuration.IFC4Add2; TimeStamp = DateTime.Now.ToString("s"); var version = GetType().Assembly.GetName().Version; PreprocessorVersion = $"Xbim File Processor version {version}"; OriginatingSystem = $"Xbim version {version}"; _ns = settings.Namespace; _nsPrefix = settings.NamespacePrefix; _nsLocation = settings.NamespaceLocation; _expressUri = settings.ExpressUri; _configurationUri = settings.ConfigurationUri; _rootElementName = settings.RootName; }
private IStepFileHeader _fileHeader; // removed the initialiser because it's assigned from the model on write. #endregion /// <summary> /// Constructor of the XML writer. This writer implements conventions for IFC4 XML and needs to /// get configuration with speficic cases like inversed inverses and other special cases. /// Default settings and configuration are for IFC4 Add1. If you pass configuration and settings /// make sure both are for the same schema definition. /// </summary> /// <param name="configuration">XML to Express configuration</param> /// <param name="settings">Settings for writer like namespaces and root element name</param> public XbimXmlWriter4(configuration configuration = null, XbimXmlSettings settings = null) { _conf = configuration ?? configuration.IFC4Add1; TimeStamp = DateTime.Now.ToString("s"); PreprocessorVersion = string.Format("Xbim File Processor version {0}", Assembly.GetAssembly(GetType()).GetName().Version); OriginatingSystem = string.Format("Xbim version {0}", Assembly.GetExecutingAssembly().GetName().Version); if (settings == null) { return; } _ns = settings.Namespace; _nsPrefix = settings.NamespacePrefix; _nsLocation = settings.NamespaceLocation; _expressUri = settings.ExpressUri; _configurationUri = settings.Configuration; _rootElementName = settings.RootName; }