Exemple #1
0
        public System.Boolean GetPhase(
            out Dynamic.Tekla.Structures.Model.Phase phase_)
        {
            var phase = Dynamic.Tekla.Structures.Model.Phase_.GetTSObject(null);

            try
            {
                var result = (System.Boolean)MethodInvoker.InvokeMethod("Tekla.Structures.Model.ModelObject", "GetPhase", teklaObject, out phase);
                phase_ = Dynamic.Tekla.Structures.Model.Phase_.FromTSObject(phase);
                return(result);
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException ex)
            {
                throw DynamicAPINotFoundException.CouldNotFindMethod(nameof(GetPhase), ex);
            }
        }
Exemple #2
0
        public System.Boolean SetPhase(
            Dynamic.Tekla.Structures.Model.Phase phase_)
        {
            var phase = Dynamic.Tekla.Structures.Model.Phase_.GetTSObject(phase_);

            try
            {
                var result = (System.Boolean)teklaObject.SetPhase(phase);

                return(result);
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException ex)
            {
                throw DynamicAPINotFoundException.CouldNotFindMethod(nameof(SetPhase), ex);
            }
        }