示例#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 },
            };
        }
示例#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
                },
            };
        }
示例#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 },
            };
        }
示例#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
                },
            };
        }