public void SetSuppliers(params IfcActorSelect[] suppliers)
 {
     if (_suppliers == null)
     {
         _suppliers = new XbimSet <IfcActorSelect>(this);
     }
     else
     {
         _suppliers.Clear();
     }
     foreach (IfcActorSelect item in suppliers)
     {
         _suppliers.Add(item);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Initialise the Editors List and add passed IfcActorSelect objects to list
 /// </summary>
 /// <param name="clear">if true will clear existing list if existing</param>
 /// <param name="ifcActorSelects">IfcActorSelect objects as list or ',' separated parameters</param>
 public XbimSet <IfcActorSelect> SetEditors(bool clear, params IfcActorSelect[] ifcActorSelects)
 {
     if (_editors == null)
     {
         _editors = new XbimSet <IfcActorSelect>(this);
     }
     else if (clear)
     {
         _editors.Clear();
     }
     foreach (IfcActorSelect ifcActorSelect in ifcActorSelects)
     {
         _editors.Add(ifcActorSelect);
     }
     return(_editors);
 }
Exemplo n.º 3
0
 /// <summary>
 ///   Initialise the Document Reference list and add passed IfcDocumentReference objects to list
 /// </summary>
 /// <param name="clear">if true will clear existing list if existing</param>
 /// <param name="ifcDocumentReferences">IfcDocumentReference objects as list or ',' separated parameters</param>
 public XbimSet <IfcDocumentReference> SetDocumentReferences(bool clear, params IfcDocumentReference[] ifcDocumentReferences)
 {
     if (_documentReferences == null)
     {
         _documentReferences = new XbimSet <IfcDocumentReference>(this);
     }
     else if (clear)
     {
         _documentReferences.Clear();
     }
     foreach (IfcDocumentReference ifcDocumentReference in ifcDocumentReferences)
     {
         _documentReferences.Add(ifcDocumentReference);
     }
     return(_documentReferences);
 }