Inheritance: BaseClassIfc, IfcActorSelect, IfcResourceObjectSelect
Example #1
0
 internal static void parseFields(IfcOrganization o, List <string> arrFields, ref int ipos)
 {
     o.mIdentification = arrFields[ipos++];
     o.mName           = arrFields[ipos++].Replace("'", "");
     o.mDescription    = arrFields[ipos++];
     o.mRoles          = ParserSTEP.SplitListLinks(arrFields[ipos++]);
     o.mAddresses      = ParserSTEP.SplitListLinks(arrFields[ipos++]);
 }
Example #2
0
		internal IfcOrganization(DatabaseIfc db, IfcOrganization o) : base(db,o)
		{
			mIdentification = o.mIdentification;
			mName = o.mName;
			mDescription = o.mDescription;
			Roles = o.Roles.ConvertAll(x => db.Factory.Duplicate(x) as IfcActorRole);
			Addresses = o.Addresses.ConvertAll(x => db.Factory.Duplicate(x) as IfcAddress);
		}
Example #3
0
 internal IfcOrganization(DatabaseIfc db, IfcOrganization o) : base(db, o)
 {
     mIdentification = o.mIdentification;
     mName           = o.mName;
     mDescription    = o.mDescription;
     o.Roles.ToList().ForEach(x => AddRole(db.Factory.Duplicate(x) as IfcActorRole));
     o.Addresses.ToList().ForEach(x => AddAddress(db.Factory.Duplicate(x) as IfcAddress));
 }
Example #4
0
 internal override void ParseXml(XmlElement xml)
 {
     base.ParseXml(xml);
     foreach (XmlNode child in xml.ChildNodes)
     {
         string name = child.Name;
         if (string.Compare(name, "RelatingOrganization") == 0)
         {
             RelatingOrganization = mDatabase.ParseXml <IfcOrganization>(child as XmlElement);
         }
         else if (string.Compare(name, "RelatedOrganizations") == 0)
         {
             foreach (XmlNode cn in child.ChildNodes)
             {
                 IfcOrganization o = mDatabase.ParseXml <IfcOrganization>(cn as XmlElement);
                 if (o != null)
                 {
                     RelatedOrganizations.Add(o);
                 }
             }
         }
     }
 }
Example #5
0
 internal static IfcOrganization Parse(string strDef)
 {
     IfcOrganization o = new IfcOrganization(); int ipos = 0; parseFields(o, ParserSTEP.SplitLineFields(strDef), ref ipos); return(o);
 }
Example #6
0
		internal IfcApplication(DatabaseIfc m) : base(m)
		{
			IfcOrganization o = new IfcOrganization(m, "Geometry Gym Pty Ltd");
			mApplicationDeveloper = o.mIndex;
			try
			{
				mVersion = "'" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + "'";
			}
			catch (Exception) { }
#if(GH)
			mApplicationFullName = "'ggGrasshopperIFC - Geometry Gym Plug-in for Grasshopper3d'";
			mApplicationIdentifier = "'ggGrasshopperIFC'";
#elif(CONVERTER)
			mApplicationFullName = "'ggIFCConverter - Geometry Gym Pty Ltd'";
			mApplicationIdentifier = "'ggIFCConverter'";
#else
			mApplicationFullName = "'ggRhinoIFC - Geometry Gym Plug-in for Rhino3d'";
			mApplicationIdentifier = "'ggRhinoIFC'";
#endif
		}
Example #7
0
		internal IfcPersonAndOrganization(DatabaseIfc m) : base(m) { mThePerson = new IfcPerson(m).mIndex; mTheOrganization = new IfcOrganization(m).mIndex; }
Example #8
0
 internal IfcOrganization(IfcOrganization i) : base()
 {
     mIdentification = i.mIdentification; mName = i.mName; mDescription = i.mDescription; mRoles = i.mRoles; mAddresses = i.mAddresses;
 }
Example #9
0
		public IfcApplication(IfcOrganization developer, string version, string fullName, string identifier) :base(developer.mDatabase) { ApplicationDeveloper = developer; Version = version; ApplicationFullName = fullName; ApplicationIdentifier = identifier; }
Example #10
0
		internal IfcApplication(DatabaseIfc db) : base(db)
		{
			IfcOrganization o = new IfcOrganization(db, "Geometry Gym Pty Ltd");
			mApplicationDeveloper = o.mIndex;
			try
			{
				mVersion =  System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
			}
			catch (Exception) { mVersion = "Unknown"; }
			mApplicationFullName = db.Factory.ApplicationFullName;
			mApplicationIdentifier = db.Factory.ApplicationIdentifier;

		}
Example #11
0
		internal static IfcOrganization Parse(string strDef) { IfcOrganization o = new IfcOrganization(); int ipos = 0; parseFields(o, ParserSTEP.SplitLineFields(strDef), ref ipos); return o; }
Example #12
0
		internal static void parseFields(IfcOrganization o, List<string> arrFields, ref int ipos)
		{
			o.mIdentification = arrFields[ipos++];
			o.mName = arrFields[ipos++].Replace("'", "");
			o.mDescription = arrFields[ipos++];
			o.mRoles = ParserSTEP.SplitListLinks(arrFields[ipos++]);
			o.mAddresses = ParserSTEP.SplitListLinks(arrFields[ipos++]);
		}
Example #13
0
		internal IfcOrganization(IfcOrganization i) : base() { mIdentification = i.mIdentification; mName = i.mName; mDescription = i.mDescription; mRoles = i.mRoles; mAddresses = i.mAddresses; }