Пример #1
0
        public RebarSplice(Dynamic.Tekla.Structures.Model.RebarGroup InputRebar1, Dynamic.Tekla.Structures.Model.RebarGroup InputRebar2)
        {
            var args = new object[2];

            args[0]          = Dynamic.Tekla.Structures.Model.RebarGroup_.GetTSObject(InputRebar1);
            args[1]          = Dynamic.Tekla.Structures.Model.RebarGroup_.GetTSObject(InputRebar2);
            this.teklaObject = TSActivator.CreateInstance("Tekla.Structures.Model.RebarSplice", args);
        }
        public static Dynamic.Tekla.Structures.Model.ModelObjectEnumerator Ungrouping(
            Dynamic.Tekla.Structures.Model.RebarGroup Reinforcement_)
        {
            var Reinforcement = Dynamic.Tekla.Structures.Model.RebarGroup_.GetTSObject(Reinforcement_);
            var result        = MethodInvoker.InvokeStaticMethod("Tekla.Structures.Model.Operations.Operation", "Ungrouping", Reinforcement);
            var _result       = Dynamic.Tekla.Structures.Model.ModelObjectEnumerator_.FromTSObject(result);

            return(_result);
        }
        public static Dynamic.Tekla.Structures.Model.RebarGroup Split(
            Dynamic.Tekla.Structures.Model.RebarGroup Object_,
            Dynamic.Tekla.Structures.Geometry3d.Line SplitLine_)
        {
            var Object    = Dynamic.Tekla.Structures.Model.RebarGroup_.GetTSObject(Object_);
            var SplitLine = Dynamic.Tekla.Structures.Geometry3d.Line_.GetTSObject(SplitLine_);
            var result    = MethodInvoker.InvokeStaticMethod("Tekla.Structures.Model.Operations.Operation", "Split", Object, SplitLine);
            var _result   = Dynamic.Tekla.Structures.Model.RebarGroup_.FromTSObject(result);

            return(_result);
        }
        public static Dynamic.Tekla.Structures.Model.RebarGroup Combine(
            Dynamic.Tekla.Structures.Model.RebarGroup ObjectToCombineTo_,
            Dynamic.Tekla.Structures.Model.RebarGroup ObjectToBeCombined_)
        {
            var ObjectToCombineTo  = Dynamic.Tekla.Structures.Model.RebarGroup_.GetTSObject(ObjectToCombineTo_);
            var ObjectToBeCombined = Dynamic.Tekla.Structures.Model.RebarGroup_.GetTSObject(ObjectToBeCombined_);
            var result             = MethodInvoker.InvokeStaticMethod("Tekla.Structures.Model.Operations.Operation", "Combine", ObjectToCombineTo, ObjectToBeCombined);
            var _result            = Dynamic.Tekla.Structures.Model.RebarGroup_.FromTSObject(result);

            return(_result);
        }