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); }
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); }
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); }
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); }