-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
97 additions
and
5 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
sources/RevitDBExplorer/Domain/DataModel/MembersOverrides/RevitLinkType/RevitLinkType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Collections.Generic; | ||
using Autodesk.Revit.DB; | ||
using RevitDBExplorer.Domain.DataModel.Members; | ||
using RevitDBExplorer.Domain.DataModel.Members.Base; | ||
|
||
// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md | ||
|
||
namespace RevitDBExplorer.Domain.DataModel.MembersOverrides | ||
{ | ||
internal class RevitLinkType_Overrides : IHaveMembersOverrides | ||
{ | ||
public IEnumerable<IMemberOverride> GetOverrides() => | ||
[ | ||
MemberOverride<RevitLinkType>.ByFunc((document, element) => RevitLinkType.IsLoaded(document, element.Id)), | ||
]; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
sources/RevitDBExplorer/Domain/DataModel/MembersOverrides/ViewSchedule/ViewSchedule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
using Autodesk.Revit.DB; | ||
using RevitDBExplorer.Domain.DataModel.Members; | ||
using RevitDBExplorer.Domain.DataModel.Members.Base; | ||
|
||
// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md | ||
|
||
namespace RevitDBExplorer.Domain.DataModel.MembersOverrides | ||
{ | ||
internal class ViewSchedule_Overrides : IHaveMembersOverrides | ||
{ | ||
public IEnumerable<IMemberOverride> GetOverrides() => | ||
[ | ||
MemberOverride<ViewSchedule>.ByFunc((document, target) => ViewSchedule.GetValidCategoriesForSchedule()), | ||
MemberOverride<ViewSchedule>.ByFunc((document, target) => ViewSchedule.GetValidCategoriesForKeySchedule()), | ||
MemberOverride<ViewSchedule>.ByFunc((document, target) => ViewSchedule.GetValidCategoriesForMaterialTakeoff()), | ||
MemberOverride<ViewSchedule>.ByFunc((document, target) => ViewSchedule.GetValidFamiliesForNoteBlock(document)), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ces/RevitDBExplorer/Domain/DataModel/MembersTemplates/ParameterFilterElement_Templates.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections.Generic; | ||
using Autodesk.Revit.DB; | ||
using RevitDBExplorer.Domain.DataModel.Members; | ||
using RevitDBExplorer.Domain.DataModel.Members.Base; | ||
|
||
// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md | ||
|
||
namespace RevitDBExplorer.Domain.DataModel.MembersTemplates | ||
{ | ||
internal class ParameterFilterElement_Templates : IHaveMemberTemplates | ||
{ | ||
public IEnumerable<ISnoopableMemberTemplate> GetTemplates() => | ||
[ | ||
|
||
MemberTemplate<ParameterFilterElement>.Create((doc, target) => doc.ActiveView.GetFilterOverrides(target.Id), kind: MemberKind.AsArgument), | ||
MemberTemplate<SelectionFilterElement>.Create((doc, target) => doc.ActiveView.GetFilterOverrides(target.Id), kind: MemberKind.AsArgument), | ||
MemberTemplate<ParameterFilterElement>.Create((doc, target) => doc.ActiveView.GetFilterVisibility(target.Id), kind: MemberKind.AsArgument), | ||
MemberTemplate<SelectionFilterElement>.Create((doc, target) => doc.ActiveView.GetFilterVisibility(target.Id), kind: MemberKind.AsArgument), | ||
MemberTemplate<ParameterFilterElement>.Create((doc, target) => doc.ActiveView.GetIsFilterEnabled(target.Id), kind: MemberKind.AsArgument), | ||
MemberTemplate<SelectionFilterElement>.Create((doc, target) => doc.ActiveView.GetIsFilterEnabled(target.Id), kind: MemberKind.AsArgument), | ||
MemberTemplate<ParameterFilterElement>.Create((doc, target) => doc.ActiveView.IsFilterApplied(target.Id), kind: MemberKind.AsArgument), | ||
MemberTemplate<SelectionFilterElement>.Create((doc, target) => doc.ActiveView.IsFilterApplied(target.Id), kind: MemberKind.AsArgument), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
sources/RevitDBExplorer/Domain/DataModel/MembersTemplates/ViewSchedule_Templates.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Collections.Generic; | ||
using Autodesk.Revit.DB; | ||
using RevitDBExplorer.Domain.DataModel.Members; | ||
using RevitDBExplorer.Domain.DataModel.Members.Base; | ||
|
||
// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md | ||
|
||
namespace RevitDBExplorer.Domain.DataModel.MembersTemplates | ||
{ | ||
internal class ViewSchedule_Templates : IHaveMemberTemplates | ||
{ | ||
public IEnumerable<ISnoopableMemberTemplate> GetTemplates() => | ||
[ | ||
MemberTemplate<ViewSchedule>.Create((document, target) => TableView.GetAvailableParameters(document, target.Definition.CategoryId), kind: MemberKind.StaticMethod), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters