├── .gitattributes ├── .gitignore ├── Documentation └── Images │ ├── AutoCad_Logo.png │ ├── Grevit_DesingModel.png │ ├── Grevit_Logo.png │ ├── Revit_Logo.png │ ├── Revit_Receive.png │ ├── Rhino_Logo.png │ ├── SketchUp_Logo.png │ └── SketchUp_Workflow.png ├── Grevit.AutoCad ├── AutoCad.cs ├── ComponentExtension.cs ├── CreateExtension.cs ├── Grevit.AutoCad.csproj ├── Grevit.cuix ├── Grevit.lsp ├── Grevit.mnr ├── Properties │ └── AssemblyInfo.cs └── Utilities.cs ├── Grevit.Grasshopper ├── AutoCad.Components.cs ├── Extensions.cs ├── Filter Rule Comparer.ghuser ├── Grevit.GrassHopper.csproj ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Resources │ ├── ACA-Column.png │ ├── ACA-Curve.png │ ├── ACA-Door.png │ ├── ACA-Point.png │ ├── ACA-Room.png │ ├── ACA-Slab.png │ ├── ACA-Wall.png │ ├── Grevit-Adaptive.png │ ├── Grevit-Column.png │ ├── Grevit-Grid.png │ ├── Grevit-Level.png │ ├── Grevit-Slab.png │ ├── Grevit-Spot.png │ ├── Grevit-Topo.png │ ├── Grevit-Wall.png │ ├── Hatch.png │ ├── Struct-Beam.png │ ├── Struct-Brace.png │ ├── Struct-Footing.png │ ├── Struct-Unkonwn.png │ ├── Texttool.png │ ├── Untitled-2.png │ ├── adaptive.png │ ├── baked.png │ ├── cog.png │ ├── connected.png │ ├── curtainpanel.png │ ├── database-green.png │ ├── database-red.png │ ├── database.png │ ├── document_tree.png │ ├── filter.png │ ├── flood_it.png │ ├── id.png │ ├── idle.png │ ├── layer_stack_arrange.png │ ├── massing.png │ ├── modelline.png │ ├── paper_airplane.png │ ├── paper_airplane_green.png │ ├── paper_airplane_red.png │ ├── refplane.png │ ├── selection.png │ ├── shaft.png │ ├── shape_ungroup.png │ ├── tag_ID.png │ ├── tag_hash.png │ ├── tag_search.png │ └── wall.png ├── Revit.Components.cs └── Utilities.cs ├── Grevit.Installer └── GrevitInstaller.vdproj ├── Grevit.PDF ├── App.config ├── App.xaml ├── App.xaml.cs ├── Grevit.PDF.csproj ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── ParsePDF.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── packages.config ├── Grevit.Revit.2016 ├── Grevit.Revit.2016.csproj ├── Grevit.Revit.addin ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── Skp.png │ ├── paper_airplane.png │ ├── radio_button.png │ └── tag_hash.png ├── Grevit.Revit.2017 ├── Grevit.Revit.2017.csproj ├── Grevit.Revit.addin ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── Skp.png │ ├── paper_airplane.png │ ├── radio_button.png │ └── tag_hash.png ├── Grevit.Revit.2018 ├── Grevit.Revit.2018.csproj ├── Grevit.Revit.addin ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── Skp.png │ ├── paper_airplane.png │ ├── radio_button.png │ └── tag_hash.png ├── Grevit.Revit.2019 ├── Grevit.Revit.2019.csproj ├── Grevit.Revit.addin ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── Skp.png │ ├── paper_airplane.png │ ├── radio_button.png │ └── tag_hash.png ├── Grevit.Revit.2020 ├── Grevit.Revit.2020.csproj ├── Grevit.Revit.addin ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── Skp.png │ ├── paper_airplane.png │ ├── radio_button.png │ └── tag_hash.png ├── Grevit.Revit.2021 ├── Grevit.Revit.2021.csproj ├── Grevit.Revit.addin ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx └── Resources │ ├── Skp.png │ ├── paper_airplane.png │ ├── radio_button.png │ └── tag_hash.png ├── Grevit.Revit ├── ClassDiagram1.cd ├── ComponentExtension.cs ├── CreateExtension.cs ├── Grevit.Revit.addin ├── Grevit.Revit.csproj ├── ParameterExtension.cs ├── ParameterList.Designer.cs ├── ParameterList.cs ├── ParameterList.resx ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Resources │ ├── Skp.png │ ├── paper_airplane.png │ ├── radio_button.png │ └── tag_hash.png ├── Revit.cs └── Utilities.cs ├── Grevit.SketchUp ├── App.config ├── App.xaml ├── App.xaml.cs ├── Geometry.cs ├── Grevit.SketchUp.csproj ├── Grevit.SketchUp.zip ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── SketchUpNET.dll ├── Utilities.cs ├── grevit_send.rb └── grevit_send_menu.rb ├── Grevit.Types ├── 2015-07-31_17h18_36.png ├── Client │ ├── ClientWindow.xaml │ ├── ClientWindow.xaml.cs │ └── Send.cs ├── Diagrams │ ├── ActivityDiagram.dgml │ └── ClassDiagram.cd ├── Grevit.Types.csproj ├── Icon-32.png ├── Icon-64.png ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Reflection │ └── Utilities.cs ├── Reporting │ ├── MessageBox.xaml │ └── MessageBox.xaml.cs ├── Resources │ ├── wait_gd.gif │ └── wait_gd2.gif ├── Serialization │ ├── Client.Designer.cs │ ├── Client.cs │ ├── Client.resx │ └── Utilities.cs └── Types │ └── Grevit.cs ├── Grevit.sln ├── GrevitFeature.png ├── Icon ├── Icon-128.png ├── Icon-24.png ├── Icon-256.png ├── Icon-32.png ├── Icon-64.png ├── Icon-w-128.png ├── Icon-w-24.png ├── Icon-w-256.png ├── Icon-w-32.png ├── Icon-w-64.png ├── Icon-w-c-128.png ├── Icon.svg └── Old-Icon.jpg ├── LICENSE ├── Package ├── APPDATA_Autodesk_ACA 2015_enu_Support │ ├── Grevit.AutoCad.dll │ ├── Grevit.Types.dll │ ├── Grevit.cuix │ ├── Grevit.lsp │ └── Grevit.mnr ├── APPDATA_Autodesk_Revit_Addins_2015 │ ├── Grevit.Revit.addin │ ├── Grevit.Revit.dll │ └── Grevit.Types.dll ├── APPDATA_Autodesk_Revit_Addins_2016 │ ├── Grevit.Revit.addin │ ├── Grevit.Revit.dll │ └── Grevit.Types.dll ├── APPDATA_Autodesk_Revit_Addins_2017 │ ├── Grevit.Revit.addin │ ├── Grevit.Revit.dll │ └── Grevit.Types.dll ├── APPDATA_Autodesk_Revit_Addins_2018 │ ├── Grevit.Revit.addin │ ├── Grevit.Revit.dll │ └── Grevit.Types.dll ├── APPDATA_Autodesk_Revit_Addins_2019 │ ├── Grevit.Revit.addin │ ├── Grevit.Revit.dll │ └── Grevit.Types.dll ├── APPDATA_Autodesk_Revit_Addins_2020 │ ├── Grevit.Revit.addin │ ├── Grevit.Revit.dll │ └── Grevit.Types.dll ├── APPDATA_Autodesk_Revit_Addins_2021 │ ├── Grevit.Revit.addin │ ├── Grevit.Revit.dll │ └── Grevit.Types.dll ├── APPDATA_Grasshopper_Libraries │ ├── Grevit.GrassHopper.gha │ └── Grevit.Types.dll ├── APPDATA_Grasshopper_UserObjects │ └── Filter Rule Comparer.ghuser ├── APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins │ ├── grevit_send.rb │ └── grevit_send │ │ ├── Grevit.SketchUp.exe │ │ ├── Grevit.Types.dll │ │ ├── SketchUpNET.dll │ │ ├── grevit_send_menu.rb │ │ └── slapi.dll ├── Examples │ ├── Example.skp │ └── ExampleDefinition.gh ├── Grevit_latest.zip └── grevit_send.rbz ├── README.md ├── activityDiagram.png └── classDiagram.png /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.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 | # Build results 11 | [Dd]ebug/ 12 | [Dd]ebugPublic/ 13 | [Rr]elease/ 14 | [Rr]eleases/ 15 | x64/ 16 | x86/ 17 | build/ 18 | bld/ 19 | [Bb]in/ 20 | [Oo]bj/ 21 | 22 | # Roslyn cache directories 23 | *.ide/ 24 | 25 | # MSTest test Results 26 | [Tt]est[Rr]esult*/ 27 | [Bb]uild[Ll]og.* 28 | 29 | #NUNIT 30 | *.VisualState.xml 31 | TestResult.xml 32 | 33 | # Build Results of an ATL Project 34 | [Dd]ebugPS/ 35 | [Rr]eleasePS/ 36 | dlldata.c 37 | 38 | *_i.c 39 | *_p.c 40 | *_i.h 41 | *.ilk 42 | *.meta 43 | *.obj 44 | *.pch 45 | *.pdb 46 | *.pgc 47 | *.pgd 48 | *.rsp 49 | *.sbr 50 | *.tlb 51 | *.tli 52 | *.tlh 53 | *.tmp 54 | *.tmp_proj 55 | *.log 56 | *.vspscc 57 | *.vssscc 58 | .builds 59 | *.pidb 60 | *.svclog 61 | *.scc 62 | 63 | # Chutzpah Test files 64 | _Chutzpah* 65 | 66 | # Visual C++ cache files 67 | ipch/ 68 | *.aps 69 | *.ncb 70 | *.opensdf 71 | *.sdf 72 | *.cachefile 73 | 74 | # Visual Studio profiler 75 | *.psess 76 | *.vsp 77 | *.vspx 78 | 79 | # TFS 2012 Local Workspace 80 | $tf/ 81 | 82 | # Guidance Automation Toolkit 83 | *.gpState 84 | 85 | # ReSharper is a .NET coding add-in 86 | _ReSharper*/ 87 | *.[Rr]e[Ss]harper 88 | *.DotSettings.user 89 | 90 | # JustCode is a .NET coding addin-in 91 | .JustCode 92 | 93 | # TeamCity is a build add-in 94 | _TeamCity* 95 | 96 | # DotCover is a Code Coverage Tool 97 | *.dotCover 98 | 99 | # NCrunch 100 | _NCrunch_* 101 | .*crunch*.local.xml 102 | 103 | # MightyMoose 104 | *.mm.* 105 | AutoTest.Net/ 106 | 107 | # Web workbench (sass) 108 | .sass-cache/ 109 | 110 | # Installshield output folder 111 | [Ee]xpress/ 112 | 113 | # DocProject is a documentation generator add-in 114 | DocProject/buildhelp/ 115 | DocProject/Help/*.HxT 116 | DocProject/Help/*.HxC 117 | DocProject/Help/*.hhc 118 | DocProject/Help/*.hhk 119 | DocProject/Help/*.hhp 120 | DocProject/Help/Html2 121 | DocProject/Help/html 122 | 123 | # Click-Once directory 124 | publish/ 125 | 126 | # Publish Web Output 127 | *.[Pp]ublish.xml 128 | *.azurePubxml 129 | # TODO: Comment the next line if you want to checkin your web deploy settings 130 | # but database connection strings (with potential passwords) will be unencrypted 131 | *.pubxml 132 | *.publishproj 133 | 134 | # NuGet Packages 135 | *.nupkg 136 | # The packages folder can be ignored because of Package Restore 137 | **/packages/* 138 | # except build/, which is used as an MSBuild target. 139 | !**/packages/build/ 140 | # If using the old MSBuild-Integrated Package Restore, uncomment this: 141 | #!**/packages/repositories.config 142 | 143 | # Windows Azure Build Output 144 | csx/ 145 | *.build.csdef 146 | 147 | # Windows Store app package directory 148 | AppPackages/ 149 | 150 | # Others 151 | sql/ 152 | *.Cache 153 | ClientBin/ 154 | [Ss]tyle[Cc]op.* 155 | ~$* 156 | *~ 157 | *.dbmdl 158 | *.dbproj.schemaview 159 | *.pfx 160 | *.publishsettings 161 | node_modules/ 162 | 163 | # RIA/Silverlight projects 164 | Generated_Code/ 165 | 166 | # Backup & report files from converting an old project file 167 | # to a newer Visual Studio version. Backup files are not needed, 168 | # because we have git ;-) 169 | _UpgradeReport_Files/ 170 | Backup*/ 171 | UpgradeLog*.XML 172 | UpgradeLog*.htm 173 | 174 | # SQL Server files 175 | *.mdf 176 | *.ldf 177 | 178 | # Business Intelligence projects 179 | *.rdl.data 180 | *.bim.layout 181 | *.bim_*.settings 182 | 183 | # Microsoft Fakes 184 | FakesAssemblies/ 185 | 186 | # ========================= 187 | # Operating System Files 188 | # ========================= 189 | 190 | # OSX 191 | # ========================= 192 | 193 | .DS_Store 194 | .AppleDouble 195 | .LSOverride 196 | 197 | # Thumbnails 198 | ._* 199 | 200 | # Files that might appear on external disk 201 | .Spotlight-V100 202 | .Trashes 203 | 204 | # Directories potentially created on remote AFP share 205 | .AppleDB 206 | .AppleDesktop 207 | Network Trash Folder 208 | Temporary Items 209 | .apdisk 210 | 211 | # Windows 212 | # ========================= 213 | 214 | # Windows image file caches 215 | Thumbs.db 216 | ehthumbs.db 217 | 218 | # Folder config file 219 | Desktop.ini 220 | 221 | # Recycle Bin used on file shares 222 | $RECYCLE.BIN/ 223 | 224 | # Windows Installer files 225 | *.cab 226 | *.msi 227 | *.msm 228 | *.msp 229 | 230 | # Windows shortcuts 231 | *.lnk 232 | .vs/Grevit/v15/Server/sqlite3/storage.ide-wal 233 | .vs/Grevit/v15/Server/sqlite3/db.lock 234 | .vs/Grevit/v15/Server/sqlite3/storage.ide 235 | 236 | \.vs/Grevit/v15/Server/sqlite3/storage\.ide-shm 237 | -------------------------------------------------------------------------------- /Documentation/Images/AutoCad_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/AutoCad_Logo.png -------------------------------------------------------------------------------- /Documentation/Images/Grevit_DesingModel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/Grevit_DesingModel.png -------------------------------------------------------------------------------- /Documentation/Images/Grevit_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/Grevit_Logo.png -------------------------------------------------------------------------------- /Documentation/Images/Revit_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/Revit_Logo.png -------------------------------------------------------------------------------- /Documentation/Images/Revit_Receive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/Revit_Receive.png -------------------------------------------------------------------------------- /Documentation/Images/Rhino_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/Rhino_Logo.png -------------------------------------------------------------------------------- /Documentation/Images/SketchUp_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/SketchUp_Logo.png -------------------------------------------------------------------------------- /Documentation/Images/SketchUp_Workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Documentation/Images/SketchUp_Workflow.png -------------------------------------------------------------------------------- /Grevit.AutoCad/AutoCad.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System; 22 | using System.Collections.Generic; 23 | using System.Linq; 24 | using System.Text; 25 | using Autodesk.AutoCAD.DatabaseServices; 26 | using Autodesk.AutoCAD.ApplicationServices; 27 | using Autodesk.AutoCAD.EditorInput; 28 | using Autodesk.AutoCAD.Runtime; 29 | using Autodesk.AutoCAD.Geometry; 30 | using Autodesk.Aec.Structural.DatabaseServices; 31 | using Autodesk.Aec.Arch.DatabaseServices; 32 | using System.Xml; 33 | using System.Xml.Serialization; 34 | using System.ServiceModel; 35 | using System.Runtime.Serialization; 36 | using Autodesk.Aec.PropertyData.DatabaseServices; 37 | 38 | 39 | [assembly: CommandClass(typeof(Grevit.AutoCad.Command))] 40 | namespace Grevit.AutoCad 41 | { 42 | public class Command 43 | { 44 | public static Dictionary existing_objects; 45 | public static Dictionary created_objects; 46 | public static Document Document; 47 | public static Database Database; 48 | public static Editor Editor; 49 | 50 | [CommandMethod("GREVIT")] 51 | public static void Start() 52 | { 53 | Command.Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; 54 | Command.Database = Document.Database; 55 | Command.Editor = Command.Document.Editor; 56 | //Grevit.Serialization.Client grevitClientDialog = new Grevit.Serialization.Client(); 57 | 58 | // Create new Grevit Client sending existing Families 59 | Grevit.Client.ClientWindow grevitClientDialog = new Grevit.Client.ClientWindow(); 60 | //Grevit.Serialization.Client grevitClientDialog = new Grevit.Serialization.Client(document.GetFamilies()); 61 | 62 | // Show Client Dialog 63 | grevitClientDialog.ShowWindow(); 64 | 65 | // if (grevitClientDialog.ShowDialog() == System.Windows.Forms.DialogResult.Cancel) return; 66 | 67 | List stalled = new List(); 68 | 69 | existing_objects = Utilities.getExistingObjectIDs(grevitClientDialog.componentCollection); 70 | created_objects = new Dictionary(); 71 | 72 | foreach (Grevit.Types.Component component in grevitClientDialog.componentCollection.Items) 73 | { 74 | if (!component.stalledForReference) 75 | { 76 | try 77 | { 78 | component.Build(false); 79 | } 80 | catch (System.Exception e) { Grevit.Reporting.MessageBox.Show("Error", e.Message + e.StackTrace); } 81 | } 82 | else 83 | stalled.Add(component); 84 | } 85 | 86 | 87 | 88 | try 89 | { 90 | foreach (Grevit.Types.Component c in stalled) 91 | { 92 | try 93 | { 94 | c.Build(true); 95 | } 96 | catch (System.Exception e) { Grevit.Reporting.MessageBox.Show("Error", e.Message + e.StackTrace); } 97 | } 98 | } 99 | catch (Autodesk.AutoCAD.Runtime.Exception e) 100 | { 101 | //ed.WriteMessage(e.Message); 102 | } 103 | 104 | } 105 | 106 | } 107 | 108 | 109 | } -------------------------------------------------------------------------------- /Grevit.AutoCad/Grevit.cuix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.AutoCad/Grevit.cuix -------------------------------------------------------------------------------- /Grevit.AutoCad/Grevit.lsp: -------------------------------------------------------------------------------- 1 | (if (findfile "Grevit.AutoCAD.dll") 2 | (command "._netload" "Grevit.AutoCAD.dll") 3 | ) 4 | ;EOF -------------------------------------------------------------------------------- /Grevit.AutoCad/Grevit.mnr: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Grevit.AutoCad/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System.Reflection; 22 | using System.Runtime.CompilerServices; 23 | using System.Runtime.InteropServices; 24 | using System.Resources; 25 | 26 | // General Information about an assembly is controlled through the following 27 | // set of attributes. Change these attribute values to modify the information 28 | // associated with an assembly. 29 | [assembly: AssemblyTitle("Grevit.AutoCAD")] 30 | [assembly: AssemblyDescription("Grevit AutoCAD Plugin")] 31 | [assembly: AssemblyConfiguration("")] 32 | [assembly: AssemblyCompany("grevit.net")] 33 | [assembly: AssemblyProduct("Grevit")] 34 | [assembly: AssemblyCopyright("Copyright © 2015")] 35 | [assembly: AssemblyTrademark("")] 36 | [assembly: AssemblyCulture("")] 37 | 38 | // Setting ComVisible to false makes the types in this assembly not visible 39 | // to COM components. If you need to access a type in this assembly from 40 | // COM, set the ComVisible attribute to true on that type. 41 | [assembly: ComVisible(false)] 42 | 43 | // The following GUID is for the ID of the typelib if this project is exposed to COM 44 | [assembly: Guid("c41b429a-fd9d-4cc0-a6ce-034851d01d72")] 45 | 46 | // Version information for an assembly consists of the following four values: 47 | // 48 | // Major Version 49 | // Minor Version 50 | // Build Number 51 | // Revision 52 | // 53 | // You can specify all the values or you can default the Build and Revision Numbers 54 | // by using the '*' as shown below: 55 | // [assembly: AssemblyVersion("1.0.*")] 56 | [assembly: AssemblyVersion("0.4.0.0")] 57 | [assembly: AssemblyFileVersion("0.4.0.0")] 58 | [assembly: NeutralResourcesLanguageAttribute("en")] 59 | -------------------------------------------------------------------------------- /Grevit.Grasshopper/Filter Rule Comparer.ghuser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Filter Rule Comparer.ghuser -------------------------------------------------------------------------------- /Grevit.Grasshopper/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System.Reflection; 22 | using System.Runtime.CompilerServices; 23 | using System.Runtime.InteropServices; 24 | using System.Resources; 25 | 26 | // Allgemeine Informationen über eine Assembly werden über die folgenden 27 | // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, 28 | // die mit einer Assembly verknüpft sind. 29 | [assembly: AssemblyTitle("Grevit.Grasshopper")] 30 | [assembly: AssemblyDescription("Grevit Grasshopper Plugin")] 31 | [assembly: AssemblyConfiguration("")] 32 | [assembly: AssemblyCompany("grevit.net")] 33 | [assembly: AssemblyProduct("Grevit")] 34 | [assembly: AssemblyCopyright("Copyright © 2015")] 35 | [assembly: AssemblyTrademark("")] 36 | [assembly: AssemblyCulture("")] 37 | 38 | // Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar 39 | // für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von 40 | // COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest. 41 | [assembly: ComVisible(false)] 42 | 43 | // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird 44 | [assembly: Guid("c76fb968-affc-40f0-b4a0-44ccc7a600a1")] 45 | 46 | // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: 47 | // 48 | // Hauptversion 49 | // Nebenversion 50 | // Buildnummer 51 | // Revision 52 | // 53 | // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern 54 | // übernehmen, indem Sie "*" eingeben: 55 | // [assembly: AssemblyVersion("1.0.*")] 56 | [assembly: AssemblyVersion("1.1.0.0")] 57 | [assembly: AssemblyFileVersion("1.1.0.0")] 58 | [assembly: NeutralResourcesLanguageAttribute("en")] 59 | -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/ACA-Column.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/ACA-Column.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/ACA-Curve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/ACA-Curve.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/ACA-Door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/ACA-Door.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/ACA-Point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/ACA-Point.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/ACA-Room.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/ACA-Room.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/ACA-Slab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/ACA-Slab.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/ACA-Wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/ACA-Wall.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Adaptive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Adaptive.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Column.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Column.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Grid.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Level.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Slab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Slab.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Spot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Spot.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Topo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Topo.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Grevit-Wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Grevit-Wall.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Hatch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Hatch.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Struct-Beam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Struct-Beam.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Struct-Brace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Struct-Brace.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Struct-Footing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Struct-Footing.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Struct-Unkonwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Struct-Unkonwn.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Texttool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Texttool.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/Untitled-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/Untitled-2.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/adaptive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/adaptive.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/baked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/baked.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/cog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/cog.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/connected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/connected.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/curtainpanel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/curtainpanel.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/database-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/database-green.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/database-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/database-red.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/database.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/document_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/document_tree.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/filter.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/flood_it.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/flood_it.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/id.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/id.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/idle.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/layer_stack_arrange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/layer_stack_arrange.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/massing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/massing.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/modelline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/modelline.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/paper_airplane_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/paper_airplane_green.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/paper_airplane_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/paper_airplane_red.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/refplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/refplane.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/selection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/selection.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/shaft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/shaft.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/shape_ungroup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/shape_ungroup.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/tag_ID.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/tag_ID.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/tag_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/tag_search.png -------------------------------------------------------------------------------- /Grevit.Grasshopper/Resources/wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Grasshopper/Resources/wall.png -------------------------------------------------------------------------------- /Grevit.PDF/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Grevit.PDF/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Grevit.PDF/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Grevit.PDF 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Grevit.PDF/Grevit.PDF.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {92BBF3EB-C3CC-4779-B172-CA87C78B0FA0} 8 | WinExe 9 | Properties 10 | Grevit.PDF 11 | Grevit.PDF 12 | v4.5 13 | 512 14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 15 | 4 16 | 17 | 18 | AnyCPU 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | ..\packages\iTextSharp.5.5.8\lib\itextsharp.dll 39 | True 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 4.0 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | MSBuild:Compile 58 | Designer 59 | 60 | 61 | MSBuild:Compile 62 | Designer 63 | 64 | 65 | App.xaml 66 | Code 67 | 68 | 69 | MainWindow.xaml 70 | Code 71 | 72 | 73 | 74 | 75 | 76 | Code 77 | 78 | 79 | True 80 | True 81 | Resources.resx 82 | 83 | 84 | True 85 | Settings.settings 86 | True 87 | 88 | 89 | ResXFileCodeGenerator 90 | Resources.Designer.cs 91 | 92 | 93 | 94 | SettingsSingleFileGenerator 95 | Settings.Designer.cs 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | {4e16464a-4495-4a27-b810-a54f9ce3d191} 105 | Grevit.Types 106 | 107 | 108 | 109 | 116 | -------------------------------------------------------------------------------- /Grevit.PDF/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System; 22 | using System.Collections.Generic; 23 | using System.Linq; 24 | using System.Text; 25 | using System.Threading.Tasks; 26 | using System.Windows; 27 | using System.Windows.Controls; 28 | using System.Windows.Data; 29 | using System.Windows.Documents; 30 | using System.Windows.Input; 31 | using System.Windows.Media; 32 | using System.Windows.Media.Imaging; 33 | using System.Windows.Navigation; 34 | using System.Windows.Shapes; 35 | using Grevit; 36 | 37 | namespace Grevit.PDF 38 | { 39 | /// 40 | /// Interaction logic for MainWindow.xaml 41 | /// 42 | public partial class MainWindow : Window 43 | { 44 | public MainWindow() 45 | { 46 | InitializeComponent(); 47 | } 48 | 49 | private void Window_Loaded(object sender, RoutedEventArgs e) 50 | { 51 | 52 | } 53 | 54 | private void close_Click(object sender, RoutedEventArgs e) 55 | { 56 | this.Close(); 57 | } 58 | 59 | private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) 60 | { 61 | DragMove(); 62 | } 63 | 64 | private void okButton_Click(object sender, RoutedEventArgs e) 65 | { 66 | double conversion = 1; 67 | double.TryParse(this.conversion.Text, out conversion); 68 | 69 | protocol.Items.Add("Preparing to send."); 70 | 71 | string filename = System.IO.Path.GetTempPath() + "GrevitTempFile.skp"; 72 | if (System.IO.File.Exists(filename)) 73 | { 74 | string host = server.Text; 75 | int port = 8002; 76 | int.TryParse(this.port.Text, out port); 77 | int timeout = 10000; 78 | 79 | protocol.Items.Add("Converting Model Content."); 80 | 81 | var components = ParsePDF.ParseDocument(filename, conversion); 82 | if (components != null) 83 | { 84 | protocol.Items.Add(String.Format("{0} Components found.", components.Items.Count)); 85 | protocol.Items.Add("Sending Components to localhost."); 86 | 87 | 88 | Grevit.Client.Utilities.Send(components, host, port, timeout); 89 | 90 | 91 | //this.DialogResult = true; 92 | this.Close(); 93 | } 94 | else 95 | protocol.Items.Add("Error: Could not convert Model."); 96 | } 97 | else 98 | protocol.Items.Add(String.Format("Error: {0} not found. Aborting.", filename)); 99 | } 100 | 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /Grevit.PDF/ParsePDF.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System; 22 | using System.Collections.Generic; 23 | using System.Linq; 24 | using System.Text; 25 | using System.Threading.Tasks; 26 | using iTextSharp.text.pdf; 27 | using Grevit.Types; 28 | 29 | namespace Grevit.PDF 30 | { 31 | public static class Extensions 32 | { 33 | public static double ToDouble(this PdfObject obj) { return double.Parse(obj.ToString()); } 34 | } 35 | 36 | public class ParsePDF 37 | { 38 | public static ComponentCollection ParseDocument(string filename, double conversion) 39 | { 40 | ComponentCollection collection = new ComponentCollection(); 41 | collection.scale = conversion; 42 | collection.delete = false; 43 | 44 | using (var ms = new System.IO.MemoryStream()) 45 | { 46 | PdfReader myPdfReader = new PdfReader(filename); 47 | PdfDictionary pageDict = myPdfReader.GetPageN(1); 48 | PdfArray annotArray = pageDict.GetAsArray(PdfName.ANNOTS); 49 | 50 | 51 | 52 | for (int i = 0; i < annotArray.Size; i++) 53 | { 54 | PdfDictionary curAnnot = annotArray.GetAsDict(i); 55 | PdfName subject = curAnnot.GetAsName(PdfName.SUBTYPE); 56 | if (subject != null) 57 | { 58 | if (subject == PdfName.CIRCLE) 59 | { 60 | PdfArray arr = curAnnot.GetAsArray(PdfName.RECT); 61 | 62 | Point a = new Point(arr[0].ToDouble(), arr[1].ToDouble(), 0); 63 | Point b = new Point(arr[0].ToDouble(), arr[1].ToDouble(), 5); 64 | 65 | Column column = new Column("","",null,a,b,"",false); 66 | collection.Items.Add(column); 67 | } 68 | 69 | else if (subject == PdfName.LINE) 70 | { 71 | PdfArray arr2 = curAnnot.GetAsArray(PdfName.L); 72 | Line line = new Line() 73 | { 74 | from = new Point(arr2[0].ToDouble(), arr2[1].ToDouble(), 0), 75 | to = new Point(arr2[2].ToDouble(), arr2[3].ToDouble(), 0) 76 | }; 77 | 78 | Wall wall = new Wall("","",null,line,"",5,false,false); 79 | collection.Items.Add(wall); 80 | } 81 | 82 | else if (subject == PdfName.POLYGON) 83 | { 84 | PdfArray arr3 = curAnnot.GetAsArray(PdfName.VERTICES); 85 | Profile p = new Profile(); 86 | Loop l = new Loop() { outline = new List() }; 87 | for (int j = 0; j < arr3.Size - 2; j = j + 2) 88 | { 89 | Point a = new Point(arr3[j].ToDouble(), arr3[j + 1].ToDouble(),0); 90 | Point b = new Point(arr3[j + 2].ToDouble(), arr3[j + 3].ToDouble(),0); 91 | l.outline.Add(new Line(){from = a, to = b}); 92 | } 93 | p.profile = new List() { l }; 94 | Slab s = new Slab() 95 | { 96 | surface = p 97 | }; 98 | collection.Items.Add(s); 99 | } 100 | } 101 | } 102 | } 103 | 104 | return collection; 105 | } 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /Grevit.PDF/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("Grevit.PDF")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("Grevit.PDF")] 15 | [assembly: AssemblyCopyright("Copyright © 2016")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | //In order to begin building localizable applications, set 25 | //CultureYouAreCodingWith in your .csproj file 26 | //inside a . For example, if you are using US english 27 | //in your source files, set the to en-US. Then uncomment 28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in 29 | //the line below to match the UICulture setting in the project file. 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 36 | //(used if a resource is not found in the page, 37 | // or application resource dictionaries) 38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 39 | //(used if a resource is not found in the page, 40 | // app, or any theme specific resource dictionaries) 41 | )] 42 | 43 | 44 | // Version information for an assembly consists of the following four values: 45 | // 46 | // Major Version 47 | // Minor Version 48 | // Build Number 49 | // Revision 50 | // 51 | // You can specify all the values or you can default the Build and Revision Numbers 52 | // by using the '*' as shown below: 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("1.0.0.0")] 55 | [assembly: AssemblyFileVersion("1.0.0.0")] 56 | -------------------------------------------------------------------------------- /Grevit.PDF/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.PDF.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.PDF.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Grevit.PDF/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.PDF.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Grevit.PDF/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Grevit.PDF/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Grevit.Revit.2016/Grevit.Revit.addin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Grevit 5 | Grevit.Revit.dll 6 | Grevit.Revit.GrevitUI 7 | ee5e6c73-6907-46e7-b588-1845bc7d0d3f 8 | Grevit.net 9 | Grevit.net 10 | 11 | 12 | -------------------------------------------------------------------------------- /Grevit.Revit.2016/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Grevit.Revit")] 10 | [assembly: AssemblyDescription("Grevit Revit Plugin")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("grevit.net")] 13 | [assembly: AssemblyProduct("Grevit")] 14 | [assembly: AssemblyCopyright("Copyright © 2015")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("e40a9d34-5e98-40c7-b7e0-64d82f9194cb")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Build and Revision Numbers 34 | // by using the '*' as shown below: 35 | // [assembly: AssemblyVersion("1.0.*")] 36 | [assembly: AssemblyVersion("1.1.0.0")] 37 | [assembly: AssemblyFileVersion("1.1.0.0")] 38 | [assembly: NeutralResourcesLanguageAttribute("en")] 39 | -------------------------------------------------------------------------------- /Grevit.Revit.2016/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.Revit.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | public class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | public static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.Revit.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | public static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | public static System.Drawing.Bitmap paper_airplane { 67 | get { 68 | object obj = ResourceManager.GetObject("paper_airplane", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | public static System.Drawing.Bitmap radio_button { 77 | get { 78 | object obj = ResourceManager.GetObject("radio_button", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | public static System.Drawing.Bitmap Skp { 87 | get { 88 | object obj = ResourceManager.GetObject("Skp", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | public static System.Drawing.Bitmap tag_hash { 97 | get { 98 | object obj = ResourceManager.GetObject("tag_hash", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Grevit.Revit.2016/Resources/Skp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2016/Resources/Skp.png -------------------------------------------------------------------------------- /Grevit.Revit.2016/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2016/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Revit.2016/Resources/radio_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2016/Resources/radio_button.png -------------------------------------------------------------------------------- /Grevit.Revit.2016/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2016/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.Revit.2017/Grevit.Revit.2017.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {0997B88A-23F6-446D-BEC7-CB68AC05F820} 8 | Library 9 | Properties 10 | Grevit.Revit 11 | Grevit.Revit 12 | v4.6 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | TRACE;DEBUG;Revit2017 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | 36 | 37 | ..\..\..\..\..\..\Program Files\Autodesk\Revit 2017\RevitAPI.dll 38 | False 39 | 40 | 41 | ..\..\..\..\..\..\Program Files\Autodesk\Revit 2017\RevitAPIUI.dll 42 | False 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | ComponentExtension.cs 59 | 60 | 61 | CreateExtension.cs 62 | 63 | 64 | ParameterExtension.cs 65 | 66 | 67 | ParameterList.cs 68 | Form 69 | 70 | 71 | ParameterList.Designer.cs 72 | 73 | 74 | Revit.cs 75 | 76 | 77 | Utilities.cs 78 | 79 | 80 | 81 | True 82 | True 83 | Resources.resx 84 | 85 | 86 | 87 | 88 | Always 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | ParameterList.resx 98 | 99 | 100 | ResXFileCodeGenerator 101 | Resources.Designer.cs 102 | 103 | 104 | 105 | 106 | {4e16464a-4495-4a27-b810-a54f9ce3d191} 107 | Grevit.Types 108 | 109 | 110 | 111 | 112 | copy $(TargetDir)*.dll "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2017" 113 | copy $(TargetDir)*.addin "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2017" 114 | 115 | 122 | -------------------------------------------------------------------------------- /Grevit.Revit.2017/Grevit.Revit.addin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Grevit 5 | Grevit.Revit.dll 6 | Grevit.Revit.GrevitUI 7 | ee5e6c73-6907-46e7-b588-1845bc7d0d3f 8 | Grevit.net 9 | Grevit.net 10 | 11 | 12 | -------------------------------------------------------------------------------- /Grevit.Revit.2017/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Grevit.Revit")] 10 | [assembly: AssemblyDescription("Grevit Revit Plugin")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("grevit.net")] 13 | [assembly: AssemblyProduct("Grevit")] 14 | [assembly: AssemblyCopyright("Copyright © 2016")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("a382e3c9-5485-4f1c-82f1-9adb4a2e45f4")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Build and Revision Numbers 34 | // by using the '*' as shown below: 35 | // [assembly: AssemblyVersion("1.0.*")] 36 | [assembly: AssemblyVersion("1.1.0.0")] 37 | [assembly: AssemblyFileVersion("1.1.0.0")] 38 | [assembly: NeutralResourcesLanguageAttribute("en")] 39 | -------------------------------------------------------------------------------- /Grevit.Revit.2017/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.Revit.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.Revit.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap paper_airplane { 67 | get { 68 | object obj = ResourceManager.GetObject("paper_airplane", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap radio_button { 77 | get { 78 | object obj = ResourceManager.GetObject("radio_button", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap Skp { 87 | get { 88 | object obj = ResourceManager.GetObject("Skp", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap tag_hash { 97 | get { 98 | object obj = ResourceManager.GetObject("tag_hash", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Grevit.Revit.2017/Resources/Skp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2017/Resources/Skp.png -------------------------------------------------------------------------------- /Grevit.Revit.2017/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2017/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Revit.2017/Resources/radio_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2017/Resources/radio_button.png -------------------------------------------------------------------------------- /Grevit.Revit.2017/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2017/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.Revit.2018/Grevit.Revit.2018.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {4DA1BFFF-AFC7-4012-A241-ED5F7CDF1945} 8 | Library 9 | Properties 10 | Grevit.Revit 11 | Grevit.Revit 12 | v4.6 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | TRACE;DEBUG;Revit2018 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | 36 | 37 | ..\..\..\..\..\..\Program Files\Autodesk\Revit 2018\RevitAPI.dll 38 | False 39 | 40 | 41 | ..\..\..\..\..\..\Program Files\Autodesk\Revit 2018\RevitAPIUI.dll 42 | False 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | ComponentExtension.cs 59 | 60 | 61 | CreateExtension.cs 62 | 63 | 64 | ParameterExtension.cs 65 | 66 | 67 | ParameterList.cs 68 | Form 69 | 70 | 71 | ParameterList.Designer.cs 72 | 73 | 74 | Revit.cs 75 | 76 | 77 | Utilities.cs 78 | 79 | 80 | 81 | True 82 | True 83 | Resources.resx 84 | 85 | 86 | 87 | 88 | Always 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | ParameterList.resx 98 | 99 | 100 | ResXFileCodeGenerator 101 | Resources.Designer.cs 102 | 103 | 104 | 105 | 106 | {4e16464a-4495-4a27-b810-a54f9ce3d191} 107 | Grevit.Types 108 | 109 | 110 | 111 | 112 | copy $(TargetDir)*.dll "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2018" 113 | copy $(TargetDir)*.addin "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2018" 114 | copy $(TargetDir)*.dll %25AppData%25\Autodesk\Revit\Addins\2018 115 | 116 | 123 | -------------------------------------------------------------------------------- /Grevit.Revit.2018/Grevit.Revit.addin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Grevit 5 | Grevit.Revit.dll 6 | Grevit.Revit.GrevitUI 7 | ee5e6c73-6907-46e7-b588-1845bc7d0d3f 8 | Grevit.net 9 | Grevit.net 10 | 11 | 12 | -------------------------------------------------------------------------------- /Grevit.Revit.2018/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Grevit.Revit")] 10 | [assembly: AssemblyDescription("Grevit Revit Plugin")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("grevit.net")] 13 | [assembly: AssemblyProduct("Grevit")] 14 | [assembly: AssemblyCopyright("Copyright © 2016")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("a382e3c9-5485-4f1c-82f1-9adb4a2e45f4")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Build and Revision Numbers 34 | // by using the '*' as shown below: 35 | // [assembly: AssemblyVersion("1.0.*")] 36 | [assembly: AssemblyVersion("1.1.0.0")] 37 | [assembly: AssemblyFileVersion("1.1.0.0")] 38 | [assembly: NeutralResourcesLanguageAttribute("en")] 39 | -------------------------------------------------------------------------------- /Grevit.Revit.2018/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.Revit.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.Revit.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap paper_airplane { 67 | get { 68 | object obj = ResourceManager.GetObject("paper_airplane", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap radio_button { 77 | get { 78 | object obj = ResourceManager.GetObject("radio_button", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap Skp { 87 | get { 88 | object obj = ResourceManager.GetObject("Skp", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap tag_hash { 97 | get { 98 | object obj = ResourceManager.GetObject("tag_hash", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Grevit.Revit.2018/Resources/Skp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2018/Resources/Skp.png -------------------------------------------------------------------------------- /Grevit.Revit.2018/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2018/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Revit.2018/Resources/radio_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2018/Resources/radio_button.png -------------------------------------------------------------------------------- /Grevit.Revit.2018/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2018/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.Revit.2019/Grevit.Revit.2019.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {09ABEC87-E1BF-4A05-9D6B-AB0F1A5428C8} 8 | Library 9 | Properties 10 | Grevit.Revit 11 | Grevit.Revit 12 | v4.7.1 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | TRACE;DEBUG;Revit2019 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | 36 | 37 | ..\..\..\..\..\..\Program Files\Autodesk\Revit 2019\RevitAPI.dll 38 | False 39 | 40 | 41 | ..\..\..\..\..\..\Program Files\Autodesk\Revit 2019\RevitAPIUI.dll 42 | False 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | ComponentExtension.cs 59 | 60 | 61 | CreateExtension.cs 62 | 63 | 64 | ParameterExtension.cs 65 | 66 | 67 | ParameterList.cs 68 | Form 69 | 70 | 71 | ParameterList.Designer.cs 72 | 73 | 74 | Revit.cs 75 | 76 | 77 | Utilities.cs 78 | 79 | 80 | 81 | True 82 | True 83 | Resources.resx 84 | 85 | 86 | 87 | 88 | Always 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | ParameterList.resx 98 | 99 | 100 | ResXFileCodeGenerator 101 | Resources.Designer.cs 102 | 103 | 104 | 105 | 106 | {4e16464a-4495-4a27-b810-a54f9ce3d191} 107 | Grevit.Types 108 | 109 | 110 | 111 | 112 | copy $(TargetDir)*.dll "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2019" 113 | copy $(TargetDir)*.addin "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2019" 114 | copy $(TargetDir)*.dll %25AppData%25\Autodesk\Revit\Addins\2019 115 | 116 | 123 | -------------------------------------------------------------------------------- /Grevit.Revit.2019/Grevit.Revit.addin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Grevit 5 | Grevit.Revit.dll 6 | Grevit.Revit.GrevitUI 7 | ee5e6c73-6907-46e7-b588-1845bc7d0d3f 8 | Grevit.net 9 | Grevit.net 10 | 11 | 12 | -------------------------------------------------------------------------------- /Grevit.Revit.2019/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Grevit.Revit")] 10 | [assembly: AssemblyDescription("Grevit Revit Plugin")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("grevit.net")] 13 | [assembly: AssemblyProduct("Grevit")] 14 | [assembly: AssemblyCopyright("Copyright © 2016")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("a382e3c9-5485-4f1c-82f1-9adb4a2e45f4")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Build and Revision Numbers 34 | // by using the '*' as shown below: 35 | // [assembly: AssemblyVersion("1.0.*")] 36 | [assembly: AssemblyVersion("1.2.0.0")] 37 | [assembly: AssemblyFileVersion("1.2.0.0")] 38 | [assembly: NeutralResourcesLanguageAttribute("en")] 39 | -------------------------------------------------------------------------------- /Grevit.Revit.2019/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.Revit.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.Revit.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap paper_airplane { 67 | get { 68 | object obj = ResourceManager.GetObject("paper_airplane", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap radio_button { 77 | get { 78 | object obj = ResourceManager.GetObject("radio_button", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap Skp { 87 | get { 88 | object obj = ResourceManager.GetObject("Skp", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap tag_hash { 97 | get { 98 | object obj = ResourceManager.GetObject("tag_hash", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Grevit.Revit.2019/Resources/Skp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2019/Resources/Skp.png -------------------------------------------------------------------------------- /Grevit.Revit.2019/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2019/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Revit.2019/Resources/radio_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2019/Resources/radio_button.png -------------------------------------------------------------------------------- /Grevit.Revit.2019/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2019/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.Revit.2020/Grevit.Revit.2020.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {A48DA8B3-220A-430F-B255-2847C8A8E5EC} 8 | Library 9 | Properties 10 | Grevit.Revit 11 | Grevit.Revit 12 | v4.7.2 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | TRACE;DEBUG;Revit2020 22 | prompt 23 | 4 24 | x64 25 | 26 | 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll 39 | False 40 | 41 | 42 | C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll 43 | False 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | ComponentExtension.cs 60 | 61 | 62 | CreateExtension.cs 63 | 64 | 65 | ParameterExtension.cs 66 | 67 | 68 | ParameterList.cs 69 | Form 70 | 71 | 72 | ParameterList.Designer.cs 73 | 74 | 75 | Revit.cs 76 | 77 | 78 | Utilities.cs 79 | 80 | 81 | 82 | True 83 | True 84 | Resources.resx 85 | 86 | 87 | 88 | 89 | Always 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | ParameterList.resx 99 | 100 | 101 | ResXFileCodeGenerator 102 | Resources.Designer.cs 103 | 104 | 105 | 106 | 107 | {4e16464a-4495-4a27-b810-a54f9ce3d191} 108 | Grevit.Types 109 | 110 | 111 | 112 | 113 | copy $(TargetDir)*.dll "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2020" 114 | copy $(TargetDir)*.addin "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2020" 115 | copy $(TargetDir)*.dll %25AppData%25\Autodesk\Revit\Addins\2020 116 | 117 | 124 | -------------------------------------------------------------------------------- /Grevit.Revit.2020/Grevit.Revit.addin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Grevit 5 | Grevit.Revit.dll 6 | Grevit.Revit.GrevitUI 7 | ee5e6c73-6907-46e7-b588-1845bc7d0d3f 8 | Grevit.net 9 | Grevit.net 10 | 11 | 12 | -------------------------------------------------------------------------------- /Grevit.Revit.2020/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Grevit.Revit")] 10 | [assembly: AssemblyDescription("Grevit Revit Plugin")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("grevit.net")] 13 | [assembly: AssemblyProduct("Grevit")] 14 | [assembly: AssemblyCopyright("Copyright © 2016")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("a382e3c9-5485-4f1c-82f1-9adb4a2e45f4")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Build and Revision Numbers 34 | // by using the '*' as shown below: 35 | // [assembly: AssemblyVersion("1.0.*")] 36 | [assembly: AssemblyVersion("1.2.0.0")] 37 | [assembly: AssemblyFileVersion("1.2.0.0")] 38 | [assembly: NeutralResourcesLanguageAttribute("en")] 39 | -------------------------------------------------------------------------------- /Grevit.Revit.2020/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.Revit.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.Revit.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap paper_airplane { 67 | get { 68 | object obj = ResourceManager.GetObject("paper_airplane", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap radio_button { 77 | get { 78 | object obj = ResourceManager.GetObject("radio_button", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap Skp { 87 | get { 88 | object obj = ResourceManager.GetObject("Skp", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap tag_hash { 97 | get { 98 | object obj = ResourceManager.GetObject("tag_hash", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Grevit.Revit.2020/Resources/Skp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2020/Resources/Skp.png -------------------------------------------------------------------------------- /Grevit.Revit.2020/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2020/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Revit.2020/Resources/radio_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2020/Resources/radio_button.png -------------------------------------------------------------------------------- /Grevit.Revit.2020/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2020/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.Revit.2021/Grevit.Revit.2021.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {0FBBFBA5-FC76-4393-87A6-3544ECDE1D46} 8 | Library 9 | Properties 10 | Grevit.Revit 11 | Grevit.Revit 12 | v4.8 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | TRACE;DEBUG;Revit2021 22 | prompt 23 | 4 24 | x64 25 | 26 | 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | C:\Program Files\Autodesk\Revit 2021\RevitAPI.dll 39 | False 40 | 41 | 42 | C:\Program Files\Autodesk\Revit 2021\RevitAPIUI.dll 43 | False 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | ComponentExtension.cs 60 | 61 | 62 | CreateExtension.cs 63 | 64 | 65 | ParameterExtension.cs 66 | 67 | 68 | ParameterList.cs 69 | Form 70 | 71 | 72 | ParameterList.Designer.cs 73 | 74 | 75 | Revit.cs 76 | 77 | 78 | Utilities.cs 79 | 80 | 81 | 82 | True 83 | True 84 | Resources.resx 85 | 86 | 87 | 88 | 89 | Always 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | ParameterList.resx 99 | 100 | 101 | ResXFileCodeGenerator 102 | Resources.Designer.cs 103 | 104 | 105 | 106 | 107 | {4e16464a-4495-4a27-b810-a54f9ce3d191} 108 | Grevit.Types 109 | 110 | 111 | 112 | 113 | copy $(TargetDir)*.dll "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2021" 114 | copy $(TargetDir)*.addin "$(SolutionDir)Package\APPDATA_Autodesk_Revit_Addins_2021" 115 | copy $(TargetDir)*.dll %25AppData%25\Autodesk\Revit\Addins\2021 116 | 117 | 124 | -------------------------------------------------------------------------------- /Grevit.Revit.2021/Grevit.Revit.addin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Grevit 5 | Grevit.Revit.dll 6 | Grevit.Revit.GrevitUI 7 | ee5e6c73-6907-46e7-b588-1845bc7d0d3f 8 | Grevit.net 9 | Grevit.net 10 | 11 | 12 | -------------------------------------------------------------------------------- /Grevit.Revit.2021/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Resources; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Grevit.Revit")] 10 | [assembly: AssemblyDescription("Grevit Revit Plugin")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("grevit.net")] 13 | [assembly: AssemblyProduct("Grevit")] 14 | [assembly: AssemblyCopyright("Copyright © 2016")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // Setting ComVisible to false makes the types in this assembly not visible 19 | // to COM components. If you need to access a type in this assembly from 20 | // COM, set the ComVisible attribute to true on that type. 21 | [assembly: ComVisible(false)] 22 | 23 | // The following GUID is for the ID of the typelib if this project is exposed to COM 24 | [assembly: Guid("a382e3c9-5485-4f1c-82f1-9adb4a2e45f4")] 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | // You can specify all the values or you can default the Build and Revision Numbers 34 | // by using the '*' as shown below: 35 | // [assembly: AssemblyVersion("1.0.*")] 36 | [assembly: AssemblyVersion("1.2.0.0")] 37 | [assembly: AssemblyFileVersion("1.2.0.0")] 38 | [assembly: NeutralResourcesLanguageAttribute("en")] 39 | -------------------------------------------------------------------------------- /Grevit.Revit.2021/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.Revit.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.Revit.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap paper_airplane { 67 | get { 68 | object obj = ResourceManager.GetObject("paper_airplane", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap radio_button { 77 | get { 78 | object obj = ResourceManager.GetObject("radio_button", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap Skp { 87 | get { 88 | object obj = ResourceManager.GetObject("Skp", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap tag_hash { 97 | get { 98 | object obj = ResourceManager.GetObject("tag_hash", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Grevit.Revit.2021/Resources/Skp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2021/Resources/Skp.png -------------------------------------------------------------------------------- /Grevit.Revit.2021/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2021/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Revit.2021/Resources/radio_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2021/Resources/radio_button.png -------------------------------------------------------------------------------- /Grevit.Revit.2021/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit.2021/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.Revit/ClassDiagram1.cd: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Grevit.Revit/ComponentExtension.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System; 22 | using System.Collections.Generic; 23 | using System.Linq; 24 | using System.Text; 25 | using Autodesk.Revit.ApplicationServices; 26 | using Autodesk.Revit.Attributes; 27 | using Autodesk.Revit.DB; 28 | using Autodesk.Revit.UI; 29 | using Autodesk.Revit.UI.Selection; 30 | using System.Diagnostics; 31 | using System.Xml; 32 | using System.Net.Sockets; 33 | using System.Net; 34 | using System.Xml.Serialization; 35 | using System.Runtime.Serialization; 36 | using System.IO; 37 | using System.Threading; 38 | using Grevit.Types; 39 | using System.Windows.Media.Imaging; 40 | using Grevit.Revit; 41 | 42 | namespace Grevit.Revit 43 | { 44 | public static class ComponentExtension 45 | { 46 | /// 47 | /// Invoke the Components Create Method 48 | /// 49 | /// 50 | public static void Build(this Grevit.Types.Component component, bool useReferenceElement) 51 | { 52 | // Create a new transaction 53 | //Transaction transaction = new Transaction(GrevitBuildModel.document, "GrevitCreate"); 54 | //transaction.Start(); 55 | 56 | // Get the components type 57 | Type type = component.GetType(); 58 | 59 | // Get the Create extension Method using reflection 60 | IEnumerable methods = Grevit.Reflection.Utilities.GetExtensionMethods(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Assembly, type); 61 | 62 | // Check all extensions methods (should only be Create() anyway) 63 | foreach (System.Reflection.MethodInfo method in methods) 64 | { 65 | // get the methods parameters 66 | object[] parameters = new object[method.GetParameters().Length]; 67 | 68 | // As it is an extension method, the first parameter is the component itself 69 | parameters[0] = component; 70 | 71 | 72 | 73 | #region usingReferenceElement 74 | 75 | // if we should use a reference element to invoke the Create method 76 | // and parameter length equals 2 77 | // get the components referenceGID, see if it has been created already 78 | // use this element as a parameter to invoke Create(Element element) 79 | if (useReferenceElement && parameters.Length == 2) 80 | { 81 | // Get the components reference GID 82 | System.Reflection.PropertyInfo propertyReferenceGID = type.GetProperty("referenceGID"); 83 | 84 | // Return if there is no reference GID property 85 | if (propertyReferenceGID == null) return; 86 | 87 | // Get the referene GID string value 88 | string referenceGID = (string)propertyReferenceGID.GetValue(component); 89 | 90 | // If the reference has been created already, get 91 | // the Element from the document and apply it as parameter two 92 | if (GrevitBuildModel.created_Elements.ContainsKey(referenceGID)) 93 | { 94 | Element referenceElement = GrevitBuildModel.document.GetElement(GrevitBuildModel.created_Elements[referenceGID]); 95 | parameters[1] = referenceElement; 96 | } 97 | } 98 | 99 | #endregion 100 | 101 | 102 | 103 | // If the create method exists 104 | if (method != null && method.Name.EndsWith("Create")) 105 | { 106 | // Invoke the Create Method without parameters 107 | Element createdElement = (Element)method.Invoke(component, parameters); 108 | 109 | // If the return value is valud set the parameters 110 | if (createdElement != null) 111 | { 112 | component.SetParameters(createdElement); 113 | component.StoreGID(createdElement.Id); 114 | } 115 | } 116 | } 117 | 118 | // commit and dispose the transaction 119 | //transaction.Commit(); 120 | //transaction.Dispose(); 121 | 122 | } 123 | 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /Grevit.Revit/Grevit.Revit.addin: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Grevit 5 | Grevit.Revit.dll 6 | Grevit.Revit.GrevitUI 7 | ee5e6c73-6907-46e7-b588-1845bc7d0d3f 8 | Grevit.net 9 | Grevit.net 10 | 11 | 12 | -------------------------------------------------------------------------------- /Grevit.Revit/ParameterList.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System; 22 | using System.Collections.Generic; 23 | using System.ComponentModel; 24 | using System.Data; 25 | using System.Drawing; 26 | using System.Linq; 27 | using System.Text; 28 | using System.Windows.Forms; 29 | 30 | namespace Grevit.Revit 31 | { 32 | public partial class ParameterList : Form 33 | { 34 | public ParameterList() 35 | { 36 | InitializeComponent(); 37 | } 38 | 39 | 40 | private void copyID_Click(object sender, EventArgs e) 41 | { 42 | if (parameters.SelectedItems.Count == 1) 43 | { 44 | string elementId = parameters.SelectedItems[0].SubItems[0].Text; 45 | Clipboard.SetText(elementId); 46 | } 47 | } 48 | 49 | private void copyName_Click(object sender, EventArgs e) 50 | { 51 | if (parameters.SelectedItems.Count == 1) 52 | { 53 | string name = parameters.SelectedItems[0].SubItems[1].Text; 54 | Clipboard.SetText(name); 55 | } 56 | } 57 | 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Grevit.Revit/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System.Reflection; 22 | using System.Runtime.CompilerServices; 23 | using System.Runtime.InteropServices; 24 | using System.Resources; 25 | 26 | // General Information about an assembly is controlled through the following 27 | // set of attributes. Change these attribute values to modify the information 28 | // associated with an assembly. 29 | [assembly: AssemblyTitle("Grevit.Revit")] 30 | [assembly: AssemblyDescription("Grevit Revit Plugin")] 31 | [assembly: AssemblyConfiguration("")] 32 | [assembly: AssemblyCompany("grevit.net")] 33 | [assembly: AssemblyProduct("Grevit")] 34 | [assembly: AssemblyCopyright("Copyright © 2015")] 35 | [assembly: AssemblyTrademark("")] 36 | [assembly: AssemblyCulture("")] 37 | 38 | // Setting ComVisible to false makes the types in this assembly not visible 39 | // to COM components. If you need to access a type in this assembly from 40 | // COM, set the ComVisible attribute to true on that type. 41 | [assembly: ComVisible(false)] 42 | 43 | // The following GUID is for the ID of the typelib if this project is exposed to COM 44 | [assembly: Guid("ee5e6c73-6907-46e7-b588-1845bc7d0d3f")] 45 | 46 | // Version information for an assembly consists of the following four values: 47 | // 48 | // Major Version 49 | // Minor Version 50 | // Build Number 51 | // Revision 52 | // 53 | // You can specify all the values or you can default the Build and Revision Numbers 54 | // by using the '*' as shown below: 55 | // [assembly: AssemblyVersion("1.0.*")] 56 | [assembly: AssemblyVersion("0.6.5.0")] 57 | [assembly: AssemblyFileVersion("0.6.5.0")] 58 | [assembly: NeutralResourcesLanguageAttribute("en")] 59 | -------------------------------------------------------------------------------- /Grevit.Revit/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Grevit.Revit.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Grevit.Revit.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap paper_airplane { 67 | get { 68 | object obj = ResourceManager.GetObject("paper_airplane", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap radio_button { 77 | get { 78 | object obj = ResourceManager.GetObject("radio_button", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap Skp { 87 | get { 88 | object obj = ResourceManager.GetObject("Skp", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap tag_hash { 97 | get { 98 | object obj = ResourceManager.GetObject("tag_hash", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /Grevit.Revit/Resources/Skp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit/Resources/Skp.png -------------------------------------------------------------------------------- /Grevit.Revit/Resources/paper_airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit/Resources/paper_airplane.png -------------------------------------------------------------------------------- /Grevit.Revit/Resources/radio_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit/Resources/radio_button.png -------------------------------------------------------------------------------- /Grevit.Revit/Resources/tag_hash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Revit/Resources/tag_hash.png -------------------------------------------------------------------------------- /Grevit.SketchUp/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Grevit.SketchUp/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Grevit.SketchUp/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Grevit.SketchUp 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Grevit.SketchUp/Geometry.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Grevit - Create Autodesk Revit (R) Models in McNeel's Rhino Grassopper 3D (R) 3 | // For more Information visit grevit.net or food4rhino.com/project/grevit 4 | // Copyright (C) 2015 5 | // Authors: Maximilian Thumfart, 6 | // 7 | // This program is free software: you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation, either version 3 of the License, or 10 | // any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program. If not, see . 19 | // 20 | // 21 | using System; 22 | using System.Collections.Generic; 23 | using System.Linq; 24 | using System.Text; 25 | using System.Threading.Tasks; 26 | using Grevit.Types; 27 | 28 | namespace Grevit.SketchUp 29 | { 30 | public static class Geometry 31 | { 32 | 33 | public static Grevit.Types.Profile ToGrevitProfile(this SketchUpNET.Surface surface, SketchUpNET.Transform t = null) 34 | { 35 | Types.Profile profile = new Types.Profile(); 36 | profile.profile = new List(); 37 | 38 | Loop outerloop = new Loop(); 39 | 40 | outerloop.outline = new List(); 41 | foreach (SketchUpNET.Edge corner in surface.OuterEdges.Edges) 42 | outerloop.outline.Add(corner.ToGrevitLine(t)); 43 | 44 | profile.profile.Add(outerloop); 45 | 46 | 47 | foreach (SketchUpNET.Loop skploop in surface.InnerEdges) 48 | { 49 | Loop innerloop = new Loop(); 50 | 51 | innerloop.outline = new List(); 52 | foreach (SketchUpNET.Edge corner in skploop.Edges) 53 | innerloop.outline.Add(corner.ToGrevitLine(t)); 54 | 55 | profile.profile.Add(innerloop); 56 | } 57 | 58 | return profile; 59 | } 60 | 61 | public static List ToGrevitOutline(this SketchUpNET.Surface surface, SketchUpNET.Transform t = null) 62 | { 63 | List lines = new List(); 64 | foreach (SketchUpNET.Edge corner in surface.OuterEdges.Edges) 65 | { 66 | lines.Add(corner.ToGrevitLine(t)); 67 | } 68 | return lines; 69 | } 70 | 71 | public static Grevit.Types.Line ToGrevitLine(this SketchUpNET.Edge corner, SketchUpNET.Transform t = null) 72 | { 73 | return new Grevit.Types.Line() 74 | { 75 | from = corner.Start.ToGrevitPoint(t), 76 | to = corner.End.ToGrevitPoint(t) 77 | }; 78 | } 79 | 80 | public static Grevit.Types.Point ToGrevitPoint(this SketchUpNET.Vertex v, SketchUpNET.Transform t = null) 81 | { 82 | 83 | if (t != null) 84 | { 85 | SketchUpNET.Vertex vertex = t.GetTransformed(v); 86 | return new Grevit.Types.Point(vertex.X, vertex.Y, vertex.Z); 87 | } 88 | else 89 | return new Grevit.Types.Point(v.X, v.Y, v.Z); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /Grevit.SketchUp/Grevit.SketchUp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.SketchUp/Grevit.SketchUp.zip -------------------------------------------------------------------------------- /Grevit.SketchUp/MainWindow.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 29 | 30 | 31 | 32 | 33 | 34 |