Esempio n. 1
0
        /// <summary>
        /// Adds relation from a element handle to a spatial element.
        /// </summary>
        /// <param name="spatialElementId">The spatial element id.</param>
        /// <param name="elemHandle">The element handle.</param>
        public void RelateToSpace(ElementId spatialElementId, IFCAnyHandle elemHandle)
        {
            SpaceInfo spaceInfo = FindSpaceInfo(spatialElementId);

            if (spaceInfo == null)
            {
                spaceInfo = new SpaceInfo();
                m_SpaceInfos[spatialElementId] = spaceInfo;
            }
            spaceInfo.RelatedElements.Add(elemHandle);
        }
Esempio n. 2
0
 /// <summary>
 /// Adds relation from a element handle to a spatial element.
 /// </summary>
 /// <param name="spatialElementId">The spatial element id.</param>
 /// <param name="elemHandle">The element handle.</param>
 public void RelateToSpace(ElementId spatialElementId, IFCAnyHandle elemHandle)
 {
     SpaceInfo spaceInfo = FindSpaceInfo(spatialElementId);
     if (spaceInfo == null)
     {
         spaceInfo = new SpaceInfo();
         m_SpaceInfos[spatialElementId] = spaceInfo;
     }
     spaceInfo.RelatedElements.Add(elemHandle);
 }