示例#1
0
        /// <summary>
        /// Processes object placement of the product.
        /// </summary>
        /// <param name="ifcProduct">The IfcProduct handle.</param>
        protected void ProcessObjectPlacement(IFCAnyHandle ifcProduct)
        {
            IFCAnyHandle objectPlacement = IFCAnyHandleUtil.GetInstanceAttribute(ifcProduct, "ObjectPlacement");

            if (!IFCAnyHandleUtil.IsNullOrHasNoValue(objectPlacement))
            {
                ObjectLocation = IFCLocation.ProcessIFCObjectPlacement(objectPlacement);
            }
        }
示例#2
0
        /// <summary>
        /// Processes object placement of the product.
        /// </summary>
        /// <param name="ifcProduct">The IfcProduct handle.</param>
        protected void ProcessObjectPlacement(IFCAnyHandle ifcProduct)
        {
            IFCAnyHandle objectPlacement = IFCAnyHandleUtil.GetInstanceAttribute(ifcProduct, "ObjectPlacement");

            if (!IFCAnyHandleUtil.IsNullOrHasNoValue(objectPlacement))
            {
                ObjectLocation = IFCLocation.ProcessIFCObjectPlacement(objectPlacement);
                IFCSite.ActiveSiteSetter.CheckObjectPlacementIsRelativeToSite(this, ifcProduct.StepId, objectPlacement.StepId);
            }
        }