Exemple #1
0
 internal IfcWorkCalendar(DatabaseIfc m, List<IfcWorkTime> working, List<IfcWorkTime> exception, IfcWorkCalendarTypeEnum type, IfcProject prj)
     : base(m)
 {
     if (working != null)
         mWorkingTimes = working.ConvertAll(x => x.mIndex);
     if (exception != null)
         mExceptionTimes = exception.ConvertAll(x => x.mIndex);
     mPredefinedType = type;
     if (prj != null)
         prj.AddDeclared(this);
 }
Exemple #2
0
		internal IfcCostSchedule(DatabaseIfc m, IfcCostScheduleTypeEnum t, string status, DateTime submitted, IfcProject prj)
			: base(m) 
		{
			mPredefinedType = t;
			if (!string.IsNullOrEmpty(status)) 
				mStatus = status.Replace("'", "");
			if (submitted != DateTime.MinValue)
				mSubmittedOn = (m.mSchema == Schema.IFC2x3 ? "#" + new IfcDateAndTime(new IfcCalendarDate(m,submitted.Day,submitted.Month,submitted.Year),new IfcLocalTime(m,submitted.Hour,submitted.Minute,submitted.Second)).mIndex : IfcDateTime.Convert(  submitted));// IfcDate.convert(submitted); 
			mUpdateDate = IfcDate.convert(DateTime.Now); 
			if (prj != null) 
				prj.AddDeclared(this);
		}
Exemple #3
0
		internal static void parseFields(IfcProject p, List<string> arrFields, ref int ipos) { IfcContext.parseFields(p, arrFields, ref ipos); }
Exemple #4
0
		internal static IfcProject Parse(string strDef) { IfcProject p = new IfcProject(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return p; }
Exemple #5
0
		internal IfcProject(IfcProject o) : base(o) { }