Ejemplo n.º 1
0
 public IfcOwnerHistory(IfcPersonAndOrganization owningUser, IfcApplication application)
 {
     if (owningUser == null) throw new ArgumentNullException("owningUser");
     OwningUser = owningUser;
     OwningApplication = application;
     ChangeAction = IfcChangeActionEnum.NOCHANGE;
     CreationDate = IfcTimeStamp.GetTimeStamp();
 }
Ejemplo n.º 2
0
 public IfcOwnerHistory(IfcPersonAndOrganization owningUser, IfcApplication application)
 {
     if (owningUser == null)
     {
         throw new ArgumentNullException("owningUser");
     }
     OwningUser        = owningUser;
     OwningApplication = application;
     ChangeAction      = IfcChangeActionEnum.NOCHANGE;
     CreationDate      = IfcTimeStamp.GetTimeStamp();
 }
Ejemplo n.º 3
0
        /// <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(),
            };
        }