├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── pull_request_template.md ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── Nina.Common ├── About.cs ├── Config │ ├── Config.cs │ ├── Config.xaml │ └── Config.xaml.cs ├── Github.cs ├── Logs.cs ├── Nina.Common.projitems ├── Nina.Common.shproj └── Settings │ ├── Preferences.cs │ ├── Settings.cs │ └── nina_settings.json ├── Nina.Installer ├── Inno.rar ├── Nina.Installer.csproj ├── Output │ └── Nina.exe ├── PostBuildCommand.txt ├── Properties │ └── AssemblyInfo.cs ├── SetupScript.iss ├── nina.ico └── packages.config ├── Nina.Language ├── English_GB.json ├── English_USA.json ├── LanguageManager.cs ├── Nina.Language.projitems ├── Nina.Language.shproj ├── Russian.json └── Spanish.json ├── Nina.Links ├── HideLinksCAD.cs ├── Nina.Links.projitems └── Nina.Links.shproj ├── Nina.PointCloud ├── ColorMode │ ├── SetElevation.cs │ ├── SetFixedColor.cs │ ├── SetIntensity.cs │ ├── SetNoOverride.cs │ └── SetNormals.cs ├── Hide.cs ├── Isolate.cs ├── Nina.PointCloud.projitems ├── Nina.PointCloud.shproj └── Utils.cs ├── Nina.R2017 ├── Nina.R2017.addin ├── Nina.R2017.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── Nina.R2018 ├── Nina.R2018.addin ├── Nina.R2018.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── Nina.R2019 ├── Nina.R2019.addin ├── Nina.R2019.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── Nina.R2020 ├── Nina.R2020.addin ├── Nina.R2020.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── Nina.R2021 ├── Nina.R2021.addin ├── Nina.R2021.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── Nina.R2022 ├── Nina.R2022.addin ├── Nina.R2022.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── Nina.R2023 ├── Nina.R2023.addin ├── Nina.R2023.csproj └── Properties │ └── AssemblyInfo.cs ├── Nina.R2024 ├── Nina.R2024.addin ├── Nina.R2024.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── Nina.Ribbon ├── ButtonBuilder.cs ├── ButtonInfo.cs ├── ExternalApplication.cs ├── Nina.Ribbon.projitems ├── Nina.Ribbon.shproj ├── PackageContents.xml ├── Resources │ ├── nina_actions_16.png │ ├── nina_color_mode_30.png │ ├── nina_hide_links_30.png │ ├── nina_info_30.png │ ├── nina_location_line_30.png │ ├── nina_open_multiple_views_16.png │ ├── nina_open_multiple_views_from_viewport_16.png │ ├── nina_point_cloud_isolate_30.png │ ├── nina_settings_30.png │ ├── nina_show_hide_point_cloud_30.png │ ├── nina_view_range_minor_16.png │ ├── nina_view_range_plus_16.png │ ├── nina_wall_by_dimension_30.png │ ├── nina_wall_switch_down_30.png │ └── nina_wall_switch_up_30.png ├── Tabs │ ├── AddinsPanel.cs │ ├── LinksPanel.cs │ ├── NinaPanel.cs │ ├── PointCloudPanel.cs │ ├── SelectionPanel.cs │ ├── ViewPanel.cs │ └── WallPanel.cs └── Utils.cs ├── Nina.Selection ├── ElementTypeSwitchDown.cs ├── ElementTypeSwitchUp.cs ├── LocationLine │ ├── SetCoreCenterline.cs │ ├── SetCoreFaceExterior .cs │ ├── SetCoreFaceInterior.cs │ ├── SetFinishFaceExterior.cs │ ├── SetFinishFaceInterior.cs │ └── SetWallCenterline.cs ├── Model │ ├── ElementTypeSelector.cs │ └── WallFamilyType.cs ├── Nina.Selection.projitems ├── Nina.Selection.shproj ├── SetSectionBox.cs ├── SwitchLocationLine.cs ├── Utils.cs └── WallByDimension.cs ├── Nina.Visibility ├── HideCADLinks.cs ├── HideRVTLinks.cs ├── HideSectionBox.cs ├── Nina.Visibility.projitems ├── Nina.Visibility.shproj ├── OpenMultipleViews.cs ├── OpenViewFromViewPort.cs ├── Utils.cs ├── ViewRangeMinor.cs └── ViewRangePlus.cs ├── Nina.png ├── Nina.sln ├── Nina ├── Assets │ ├── nina.png │ ├── nina_white.png │ └── transparent │ │ ├── nina_black.png │ │ └── nina_white.png ├── Demo │ ├── v110 │ │ ├── ColorMode.gif │ │ ├── ShowHide.gif │ │ ├── TypeSelector.gif │ │ └── WallByDimension.gif │ └── v120 │ │ ├── TypeSelector.gif │ │ ├── WallByDimension.gif │ │ └── ribbon.png ├── Nina.projitems └── Nina.shproj └── README.md /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Revit Version:** 27 | All Revit version where you found the problem. 28 | 29 | **Additional context** 30 | Add any other context about the problem here. 31 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. 4 | 5 | Fixes # (issue) 6 | 7 | ## Type of change 8 | 9 | Please delete options that are not relevant. 10 | 11 | - [ ] Bug fix (non-breaking change which fixes an issue) 12 | - [ ] New feature (non-breaking change which adds functionality) 13 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 14 | - [ ] This change requires a documentation update 15 | 16 | # Checklist: 17 | 18 | - [ ] My code follows the style guidelines of this project 19 | - [ ] I have performed a self-review of my own code 20 | - [ ] I have commented my code, particularly in hard-to-understand areas 21 | - [ ] I have made corresponding changes to the documentation 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | . 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 122 | enforcement ladder](https://github.com/mozilla/diversity). 123 | 124 | [homepage]: https://www.contributor-covenant.org 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | https://www.contributor-covenant.org/faq. Translations are available at 128 | https://www.contributor-covenant.org/translations. 129 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Thank you for your interest in contributing to this project! 2 | 3 | There are several ways you can contribute with this project: 4 | 5 | ### New Ideas 6 | Ideas must meet the following points: 7 | - [ ] The command must be designed to be used as a shortcut. 8 | - [ ] The command must not have a user interface. Only pre-use configurations are allowed, but not windows that appear at run time. 9 | - [ ] The command must be lightweight, oriented to repetitive and small operations rather than complex and heavy operations. 10 | 11 | ### About code 12 | Anyone that knows C# and Revit API can collaborate, programming new ideas, fixing issues, or any doing any other improvement on the project. 13 | 14 | ### Documentation 15 | Writing documentaton about the tools, fixing typo issues or doing traslations. 16 | 17 | ### Design 18 | Creating Assets or suggesting styles changes for future versions. 19 | 20 | ### How to 21 | - [ ] Fork the repository. 22 | - [ ] Work on your forked repository. 23 | - [ ] Create a pull request 24 | 25 | 26 | ### That´s it. 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 franpossetto 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Nina.Common/About.cs: -------------------------------------------------------------------------------- 1 |  2 | using Autodesk.Revit.DB; 3 | using Autodesk.Revit.UI; 4 | using Autodesk.Revit.Attributes; 5 | 6 | namespace Nina.Common 7 | { 8 | [Transaction(TransactionMode.Manual)] 9 | public class About : IExternalCommand 10 | { 11 | public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) 12 | { 13 | try 14 | { 15 | Document doc = commandData.Application.ActiveUIDocument.Document; 16 | UIDocument uidoc = commandData.Application.ActiveUIDocument; 17 | TaskDialog taskDialog = new TaskDialog("About") 18 | { 19 | MainContent = "Nina for Revit v 1.4.3", 20 | }; 21 | 22 | taskDialog.Show(); 23 | return Autodesk.Revit.UI.Result.Succeeded; 24 | } 25 | catch 26 | { 27 | message = "Unexpected Exception thrown."; 28 | return Autodesk.Revit.UI.Result.Failed; 29 | } 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Nina.Common/Config/Config.cs: -------------------------------------------------------------------------------- 1 | using Autodesk.Revit.DB; 2 | using Autodesk.Revit.UI; 3 | using Autodesk.Revit.Attributes; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System; 7 | 8 | namespace Nina.Common 9 | { 10 | [Transaction(TransactionMode.Manual)] 11 | public class Config : IExternalCommand 12 | { 13 | public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) 14 | { 15 | try 16 | { 17 | Document doc = commandData.Application.ActiveUIDocument.Document; 18 | UIDocument uidoc = commandData.Application.ActiveUIDocument; 19 | Settings.Init(); 20 | 21 | FilteredElementCollector collector = new FilteredElementCollector(doc); 22 | ElementClassFilter filter = new ElementClassFilter(typeof(WallType)); 23 | collector.WherePasses(filter); 24 | 25 | List types = collector.Cast().ToList(); 26 | 27 | Nina.UI.Config config = new Nina.UI.Config(doc, types); 28 | config.Show(); 29 | 30 | return Autodesk.Revit.UI.Result.Succeeded; 31 | } 32 | catch (Exception ex) 33 | { 34 | TaskDialog.Show("Error", ex.Message); 35 | message = "Unexpected Exception thrown."; 36 | return Autodesk.Revit.UI.Result.Failed; 37 | } 38 | 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Nina.Common/Config/Config.xaml: -------------------------------------------------------------------------------- 1 |  12 | 13 | 14 | 17 | 18 | 19 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 34 | 37 | 38 | 39 | 41 | 44 | 45 | 46 | 48 | 51 | 52 | 53 | 54 | 55 | 58 | 59 | 60 | 64 | 65 | 67 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 88 | 90 | Help.. 91 | 92 | 93 |