Skip to content

refactor: Rewrite pyRevit configurations #2482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 50 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
decf1d1
add new configuration project
dosymep Dec 18, 2024
492e6e3
add ini project
dosymep Dec 18, 2024
98c40b3
fix build
dosymep Dec 18, 2024
d9c2251
remove unnecessary usings
dosymep Dec 18, 2024
63393d7
update create config
dosymep Dec 18, 2024
2afea49
rewrite config class to new configs
dosymep Dec 18, 2024
68efd97
change return default value for lists
dosymep Dec 18, 2024
e7c28d7
add override name to create config
dosymep Dec 18, 2024
f4d0b36
added configuration path and save
dosymep Dec 18, 2024
b079c2f
update service interface
dosymep Dec 18, 2024
1b52854
Добавил сервис конфигурации
dosymep Dec 18, 2024
8618fad
fix spelling
dosymep Dec 20, 2024
8e4eddf
add sections classes
dosymep Dec 20, 2024
4bfae44
Merge branch 'develop' into features/configuration
jmcouffin Dec 20, 2024
a22a053
update
dosymep Dec 23, 2024
caea3f3
add configuration name
dosymep Dec 23, 2024
da4575d
add support requred and init features for net48
dosymep Dec 23, 2024
1661d2e
add parse config by reflection
dosymep Dec 23, 2024
08919b5
Merge remote-tracking branch 'origin/features/configuration' into fea…
dosymep Dec 23, 2024
29bc6ef
add attribute settings
dosymep Dec 23, 2024
6baf57d
add save config sections
dosymep Dec 27, 2024
cf74632
update public interface
dosymep Dec 27, 2024
6122fd9
update console config command
dosymep Dec 27, 2024
1b92380
update read and write propeties
dosymep Dec 27, 2024
7faee38
update pyRevit environment config
dosymep Dec 27, 2024
6e10ac0
Merge branch 'develop' into features/configuration
dosymep Dec 27, 2024
3825ecb
fix typo
dosymep Dec 28, 2024
3b09e3e
fix override config name
dosymep Dec 28, 2024
6f81e4a
update getting config file service
dosymep Dec 28, 2024
9e1f6bd
add readonly properti to service (python)
dosymep Dec 28, 2024
0b4fd1c
add user extensions
dosymep Dec 28, 2024
24927a5
update python code
dosymep Dec 28, 2024
0954681
update tests
dosymep Dec 28, 2024
23b218f
add realization
dosymep Dec 28, 2024
c1fef09
add reference
dosymep Dec 28, 2024
5c7dec2
add revit version to config
dosymep Dec 28, 2024
df9de22
fix override config name
dosymep Dec 28, 2024
6375993
fix override config prioritization
dosymep Dec 28, 2024
838f163
update references
dosymep Dec 28, 2024
eae821a
remove references
dosymep Dec 28, 2024
20a7b61
add remove section method
dosymep Jan 10, 2025
1b138bb
add get section names and option names
dosymep Jan 28, 2025
a390d1a
add configs properties
dosymep Jan 28, 2025
2420814
add dynamic section parser
dosymep Jan 28, 2025
ac9b38e
update config class name
dosymep Jan 28, 2025
e078a4b
add save config
dosymep Jan 28, 2025
141e3b3
Merge branch 'develop' into features/configuration
dosymep Jan 28, 2025
b49999b
add remove option when seve section
dosymep Jan 28, 2025
fa49ba2
add skip save value if has in other config
dosymep Jan 28, 2025
0a2c4b1
update configs
dosymep Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unnecessary usings
  • Loading branch information
dosymep committed Dec 18, 2024
commit d9c2251386d4c4eeb8ac9f7413901b6e9ee12ef4
6 changes: 2 additions & 4 deletions dev/pyRevitLabs/pyRevitLabs.PyRevit/PyRevitAttachments.cs
Original file line number Diff line number Diff line change
@@ -2,15 +2,13 @@
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Linq;
using System.Text.RegularExpressions;

using pyRevitLabs.Common;
using pyRevitLabs.Common.Extensions;

using MadMilkman.Ini;
using pyRevitLabs.Json.Linq;
using pyRevitLabs.NLog;
using pyRevitLabs.TargetApps.Revit;
14 changes: 2 additions & 12 deletions dev/pyRevitLabs/pyRevitLabs.PyRevit/PyRevitCaches.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.IO;
using System.Text.RegularExpressions;
using System.Security.Principal;
using System.Text;

using pyRevitLabs.Common;
using pyRevitLabs.Common.Extensions;

using MadMilkman.Ini;
using pyRevitLabs.Json.Linq;
using pyRevitLabs.NLog;
using pyRevitLabs.TargetApps.Revit;

namespace pyRevitLabs.PyRevit {
public static class PyRevitCaches {
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
private static readonly Logger _logger = LogManager.GetCurrentClassLogger();

// pyrevit cache folder
// @reviewed
4 changes: 1 addition & 3 deletions dev/pyRevitLabs/pyRevitLabs.PyRevit/PyRevitClones.cs
Original file line number Diff line number Diff line change
@@ -2,14 +2,12 @@
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
using System.Security.Principal;
using System.Text;
using System.Text.RegularExpressions;

using pyRevitLabs.Common;
using pyRevitLabs.Common.Extensions;

using MadMilkman.Ini;
using pyRevitLabs.Json.Linq;
using pyRevitLabs.NLog;

4 changes: 1 addition & 3 deletions dev/pyRevitLabs/pyRevitLabs.PyRevit/PyRevitExtensions.cs
Original file line number Diff line number Diff line change
@@ -2,14 +2,12 @@
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
using System.Security.Principal;
using System.Text;
using System.Text.RegularExpressions;

using pyRevitLabs.Common;
using pyRevitLabs.Common.Extensions;

using MadMilkman.Ini;
using pyRevitLabs.Json.Linq;
using pyRevitLabs.NLog;

Original file line number Diff line number Diff line change
@@ -17,14 +17,14 @@
<ItemGroup>
<PackageReference Include="Nett" Version="0.15.0" />
<PackageReference Include="LibGit2Sharp" Version="0.30.0" />

<PackageReference Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" Include="MadMilkman.Ini" Version="1.0.6" />
<PackageReference Condition="'$(TargetFrameworkIdentifier)' == '.NetCoreApp'" Include="MadMilkman.Ini.Unofficial" Version="1.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\pyRevitLabs.Common\pyRevitLabs.Common.csproj" />
<ProjectReference Include="..\pyRevitLabs.CommonWPF\pyRevitLabs.CommonWPF.csproj" />
<ProjectReference Include="..\pyRevitLabs.Configurations.Ini\pyRevitLabs.Configurations.Ini.csproj" />
<ProjectReference Include="..\pyRevitLabs.Configurations.Json\pyRevitLabs.Configurations.Json.csproj" />
<ProjectReference Include="..\pyRevitLabs.Configurations\pyRevitLabs.Configurations.csproj" />
<ProjectReference Include="..\pyRevitLabs.TargetApps.Revit\pyRevitLabs.TargetApps.Revit.csproj" />
</ItemGroup>