Example #1
0
        protected BbBoltAssembly(BbElement mainElement, BbElement attachedElement)
            : this()
        {
            MainElement = mainElement;
            AttachedElement = attachedElement;

            IfcRelConnectsElements = new IfcRelConnectsWithRealizingElements
            {
                GlobalId = IfcGloballyUniqueId.NewGuid(),
                OwnerHistory = BbHeaderSetting.Setting3D.IfcOwnerHistory,
                RelatingElement = MainElement.IfcObject as IfcElement,
                RelatedElement = AttachedElement.IfcObject as IfcElement,
                RealizingElements = new List<IfcElement> { _ifcElement },
            };
        }
Example #2
0
        protected BbBoltAssembly(BbElement mainElement, BbElement attachedElement)
            : this()
        {
            MainElement     = mainElement;
            AttachedElement = attachedElement;

            IfcRelConnectsElements = new IfcRelConnectsWithRealizingElements
            {
                GlobalId          = IfcGloballyUniqueId.NewGuid(),
                OwnerHistory      = BbHeaderSetting.Setting3D.IfcOwnerHistory,
                RelatingElement   = MainElement.IfcObject as IfcElement,
                RelatedElement    = AttachedElement.IfcObject as IfcElement,
                RealizingElements = new List <IfcElement> {
                    _ifcElement
                },
            };
        }
Example #3
0
        BbWeld(BbElement mainElement, BbElement attachedElement)
        {
            _ifcElement = new IfcFastener
            {
                GlobalId = IfcGloballyUniqueId.NewGuid(),
                OwnerHistory = BbHeaderSetting.Setting3D.IfcOwnerHistory,

                ObjectType = "Weld",

            };

            MainElement = mainElement;
            AttachedElement = attachedElement;

            IfcRelConnectsElements = new IfcRelConnectsWithRealizingElements
            {
                GlobalId = IfcGloballyUniqueId.NewGuid(),
                OwnerHistory = BbHeaderSetting.Setting3D.IfcOwnerHistory,
                RelatingElement = MainElement.IfcObject as IfcElement,
                RelatedElement = AttachedElement.IfcObject as IfcElement,
                RealizingElements = new List<IfcElement> { _ifcElement },
            };
        }
Example #4
0
        BbWeld(BbElement mainElement, BbElement attachedElement)
        {
            _ifcElement = new IfcFastener
            {
                GlobalId     = IfcGloballyUniqueId.NewGuid(),
                OwnerHistory = BbHeaderSetting.Setting3D.IfcOwnerHistory,

                ObjectType = "Weld",
            };

            MainElement     = mainElement;
            AttachedElement = attachedElement;

            IfcRelConnectsElements = new IfcRelConnectsWithRealizingElements
            {
                GlobalId          = IfcGloballyUniqueId.NewGuid(),
                OwnerHistory      = BbHeaderSetting.Setting3D.IfcOwnerHistory,
                RelatingElement   = MainElement.IfcObject as IfcElement,
                RelatedElement    = AttachedElement.IfcObject as IfcElement,
                RealizingElements = new List <IfcElement> {
                    _ifcElement
                },
            };
        }