/// <summary> /// /// </summary> /// <param name="authorName"></param> /// <param name="authorCompany"></param> /// <param name="softwareName"></param> /// <param name="softwareVersion"></param> /// <param name="softwareCompany"></param> public void SetCreator( string authorName, string authorCompany, string softwareName, string softwareVersion, string softwareCompany) { var person = new IfcPerson { GivenName = authorName, FamilyName = authorName }; var organization = new IfcOrganization(authorCompany); var personAndOrganization = new IfcPersonAndOrganization(person, organization); var appOrganization = new IfcOrganization(softwareCompany); var application = new IfcApplication { ApplicationDeveloper = appOrganization, Version = softwareVersion, ApplicationFullName = softwareName, ApplicationIdentifier = softwareCompany + @"." + softwareName, }; IfcOwnerHistory = new IfcOwnerHistory() { OwningUser = personAndOrganization, OwningApplication = application, State = IfcStateEnum.READONLY, ChangeAction = IfcChangeActionEnum.NOCHANGE, CreationDate = IfcTimeStamp.GetTimeStamp(), }; }
protected BbSingleProperty(string name, DateTime value) { Name = name; _ifcValue = new IfcValue(); var iValue = IfcTimeStamp.GetTimeStamp(value); _ifcValue.Value = iValue; _ifcPropertySingleValue = new IfcPropertySingleValue { Name = this.Name, NominalValue = _ifcValue, }; }
protected BbListProperty(string name, DateTime value) { Name = name; var _ifcValue = new IfcValue(); var iValue = IfcTimeStamp.GetTimeStamp(value); _ifcValue.Value = iValue; _ifcPropertyListValue = new IfcPropertyListValue { Name = this.Name, ListValues = new List <IfcValue> { _ifcValue }, }; }