예제 #1
0
        public System.Boolean RemoveFromObjectType(
            Dynamic.Tekla.Structures.Catalogs.CatalogObjectTypeEnum objectType_)
        {
            var objectType = Dynamic.Tekla.Structures.Catalogs.CatalogObjectTypeEnum_.GetTSObject(objectType_);

            try
            {
                var result = (System.Boolean)teklaObject.RemoveFromObjectType(objectType);

                return(result);
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException ex)
            {
                throw DynamicAPINotFoundException.CouldNotFindMethod(nameof(RemoveFromObjectType), ex);
            }
        }
        public Dynamic.Tekla.Structures.Catalogs.UserPropertyItemEnumerator GetUserPropertyItems(
            Dynamic.Tekla.Structures.Catalogs.CatalogObjectTypeEnum objectType_)
        {
            var objectType = Dynamic.Tekla.Structures.Catalogs.CatalogObjectTypeEnum_.GetTSObject(objectType_);

            try
            {
                var result = teklaObject.GetUserPropertyItems(objectType);

                var _result = Dynamic.Tekla.Structures.Catalogs.UserPropertyItemEnumerator_.FromTSObject(result);
                return(_result);
            }
            catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException ex)
            {
                throw DynamicAPINotFoundException.CouldNotFindMethod(nameof(GetUserPropertyItems), ex);
            }
        }