Skip to content
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

Revit.ini File Editor #286

Merged
merged 26 commits into from
Sep 22, 2024
Merged

Revit.ini File Editor #286

merged 26 commits into from
Sep 22, 2024

Conversation

Nice3point
Copy link
Collaborator

@Nice3point Nice3point commented Sep 13, 2024

Summary of the Pull Request

What is this about:

https://github.com/users/jeremytammik/projects/1?pane=issue&itemId=78197118

Revit.ini File Editor

The Revit.ini file is a key configuration file in Revit that stores settings related to user preferences, system behavior, and project defaults.

The Revit.ini File Editor provides a simple and efficient way to manage these settings without the need for manual editing. With this tool, users can quickly adjust Revit’s configurations to match project needs or personal preferences, making it an essential utility for both professionals and teams working with Revit.

изображение

Managing Entries

**The Revit.ini File Editor allows you to add new settings or update existing ones within the Revit.ini file.

To add or update an entry:**

  • Select an existing entry to update it, or click New Entry at the top to create a new one.
  • Enter the Category: Specify the section where the setting belongs (e.g., UserInterface, Snapping).
  • Enter the Property: Provide the key name for the setting (e.g., RecentFiles, DefaultTemplate).
  • Enter the Value: Set the appropriate value for the key (e.g., %USERPROFILE%\Documents\ for ProjectPath or a list of increments for SnapIncrements).
  • Click Create to create a new entry, or Update to save changes to an existing entry.

изображение

Filtering Settings

The Revit.ini File Editor includes a filtering tool to help you quickly locate specific settings:

  • Click the Filter icon in the toolbar.
  • Enter search criteria in the Category, Property, or Value fields.
  • The results will filter dynamically based on your input, allowing for quick access to the relevant settings.

There is also an option to display only user-defined settings by toggling the Show only user settings switch.

изображение

List Controls

In the Revit.ini File Editor, several controls are available for managing settings:

изображение

  • Restore Button: restores a modified setting to its default value. The default values are retrieved from the UserDataCache directory.

  • Delete Button: permanently removes the selected entry from the Revit.ini file. Once deleted, the setting cannot be restored unless manually added again.

  • Toggle Switch: temporarily enable or disable a setting. You can toggle it back on at any time to restore the setting without losing its value.

    изображение

Backing Up the Revit.ini File

Before any edits are made, the Revit.ini File Editor automatically creates a backup of the file.
These backup files are stored in the same directory as the original Revit.ini file and follow the naming convention Revit_RevitLookupBackup_YYYYMMDDHHMMSS, ensuring that you can easily restore previous settings if necessary.

Quality Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@Nice3point Nice3point added the feature 💡 A new feature being implemented label Sep 13, 2024
Copy link

github-actions bot commented Sep 19, 2024

Qodana for .NET

107 new problems were found

Inspection name Severity Problems
Use of obsolete symbol 🔶 Warning 46
Redundant using directive 🔶 Warning 10
Namespace does not correspond to file location 🔶 Warning 9
Static resource not resolved 🔶 Warning 6
Unused parameter in partial method 🔶 Warning 5
Convert 'if' statement into 'switch' ◽️ Notice 7
Invert 'if' statement to reduce nesting ◽️ Notice 6
Member can be made static (shared) (private accessibility) ◽️ Notice 5
Part of foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used ◽️ Notice 4
Use preferred style of 'new' expression when created type is not evident ◽️ Notice 3
'if-return' statement can be rewritten as 'return' statement ◽️ Notice 3
Convert local variable or field into constant (private accessibility) ◽️ Notice 1
Foreach loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used ◽️ Notice 1
Loop can be converted into LINQ-expression ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@Nice3point
Copy link
Collaborator Author

Documentation is available for discussion

@Nice3point Nice3point added the open discussion ☎️ An issue open for active community discussion label Sep 21, 2024
@Nice3point Nice3point changed the title Revit configuration manager Revit.ini File Editor Sep 21, 2024
@Nice3point Nice3point linked an issue Sep 21, 2024 that may be closed by this pull request
@Nice3point Nice3point marked this pull request as ready for review September 21, 2024 11:21
@Nice3point Nice3point merged commit 3b55153 into dev Sep 22, 2024
2 of 4 checks passed
@Nice3point Nice3point deleted the dev_config branch January 28, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 💡 A new feature being implemented open discussion ☎️ An issue open for active community discussion
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Revit configuration manager
1 participant