Example #1
0
        public static Definition CreateOrGetACHMParameter(DefinitionFile file)
        {
            Definition achm  = null;
            var        group = RevitParameterUtility.CreateOrGetGroupInSharedParameterFile(file, VentilationGroupName);

            try
            {
                achm = group.Definitions.get_Item("ACHM");
            }

            catch (Exception e)
            {
            }

            var opts = new ExternalDefinitionCreationOptions("ACHM", ParameterType.Number);

            achm = achm ?? group.Definitions.Create(opts);

            return(achm);
        }
Example #2
0
        public static Definition CreateOrGetPressureModelParameter(DefinitionFile file)
        {
            Definition press_mod = null;
            var        group     = RevitParameterUtility.CreateOrGetGroupInSharedParameterFile(file, VentilationGroupName);

            try
            {
                press_mod = group.Definitions.get_Item("PRESSURIZATION_MOD");
            }

            catch (Exception e)
            {
            }

            var opts = new ExternalDefinitionCreationOptions("PRESSURIZATION_MOD", ParameterType.Number);

            press_mod = press_mod ?? group.Definitions.Create(opts);

            return(press_mod);
        }
Example #3
0
        public static Definition CreateOrGetPressureRequiredParameter(DefinitionFile file)
        {
            Definition press_req = null;
            var        group     = RevitParameterUtility.CreateOrGetGroupInSharedParameterFile(file, VentilationGroupName);

            try
            {
                press_req = group.Definitions.get_Item("PRESSURIZATION_REQ");
            }

            catch (Exception e)
            {
            }

            var opts = new ExternalDefinitionCreationOptions("PRESSURIZATION_REQ", ParameterType.Integer);

            press_req = press_req ?? group.Definitions.Create(opts);

            return(press_req);
        }
Example #4
0
        public static Definition CreateOrGetOAACHRParameter(DefinitionFile file)
        {
            Definition oaachr = null;
            var        group  = RevitParameterUtility.CreateOrGetGroupInSharedParameterFile(file, VentilationGroupName);

            try
            {
                oaachr = group.Definitions.get_Item("OAACHR");
            }

            catch (Exception e)
            {
            }

            var opts = new ExternalDefinitionCreationOptions("OAACHR", ParameterType.Number);

            oaachr = oaachr ?? group.Definitions.Create(opts);

            return(oaachr);
        }