├── .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 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Grevit.SketchUp/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 |
36 | namespace Grevit.SketchUp
37 | {
38 | ///
39 | /// Interaction logic for MainWindow.xaml
40 | ///
41 | public partial class MainWindow : Window
42 | {
43 | public MainWindow()
44 | {
45 | InitializeComponent();
46 |
47 | }
48 |
49 | private void Window_Loaded(object sender, RoutedEventArgs e)
50 | {
51 | protocol.Items.Add("Preparing to send.");
52 |
53 | string filename = System.IO.Path.GetTempPath() + "GrevitTempFile.skp";
54 | if (System.IO.File.Exists(filename))
55 | {
56 | string host = "127.0.0.1";
57 | int port = 8002;
58 | int timeout = 10000;
59 |
60 | protocol.Items.Add("Converting Model Content.");
61 |
62 | var components = Utilities.Translate(filename);
63 | if (components != null)
64 | {
65 | protocol.Items.Add(String.Format("{0} Components found.", components.Items.Count));
66 | protocol.Items.Add("Sending Components to localhost.");
67 |
68 |
69 | Grevit.Client.Utilities.Send(components, host, port, timeout);
70 |
71 |
72 | //this.DialogResult = true;
73 | this.Close();
74 | }
75 | else
76 | protocol.Items.Add("Error: Could not convert Model.");
77 | }
78 | else
79 | protocol.Items.Add(String.Format("Error: {0} not found. Aborting.", filename));
80 | }
81 |
82 | private void close_Click(object sender, RoutedEventArgs e)
83 | {
84 | this.Close();
85 | }
86 |
87 | private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
88 | {
89 | DragMove();
90 | }
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/Grevit.SketchUp/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.SketchUp")]
11 | [assembly: AssemblyDescription("Grevit SketchUp Plugin")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("grevit.net")]
14 | [assembly: AssemblyProduct("Grevit")]
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 | [assembly: NeutralResourcesLanguageAttribute("en")]
57 |
--------------------------------------------------------------------------------
/Grevit.SketchUp/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.SketchUp.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.SketchUp.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 |
--------------------------------------------------------------------------------
/Grevit.SketchUp/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.SketchUp.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Grevit.SketchUp/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Grevit.SketchUp/SketchUpNET.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.SketchUp/SketchUpNET.dll
--------------------------------------------------------------------------------
/Grevit.SketchUp/grevit_send.rb:
--------------------------------------------------------------------------------
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 | require 'sketchup.rb'
21 | require 'extensions.rb'
22 |
23 | grevit_extension = SketchupExtension.new("Grevit", "grevit_send/grevit_send_menu.rb")
24 | grevit_extension.version = '1.0'
25 | grevit_extension.description = 'Send SketchUp Geometries directly to Revit.'
26 | Sketchup.register_extension(grevit_extension, true)
27 |
--------------------------------------------------------------------------------
/Grevit.SketchUp/grevit_send_menu.rb:
--------------------------------------------------------------------------------
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 | # Setup
22 | require 'sketchup.rb'
23 |
24 | module Grevit
25 | module SketchUp
26 |
27 | # Get Plugins menu
28 | @plugins_menu = UI.menu("Plugins")
29 | @grevit_menu = @plugins_menu.add_submenu("Grevit")
30 |
31 | # Add a menu item to launch Grevit
32 | @grevit_menu.add_item("Grevit Send") {
33 | self.grevit_send
34 | }
35 |
36 | # Add a link to grevits website
37 | @grevit_menu.add_item("Grevit Info") {
38 | UI.openURL('http://grevit.net')
39 | }
40 |
41 | # Grevit Send Method
42 | def self.grevit_send
43 |
44 | # get active model
45 | @model = Sketchup.active_model
46 |
47 | begin
48 |
49 | # save the current model as v2015 to temp
50 | @model.save_copy(Sketchup.temp_dir + "/GrevitTempFile.skp", Sketchup::Model::VERSION_2015)
51 |
52 | rescue ArgumentError => exception_object
53 |
54 | # report any errors to the user
55 | UI.messagebox(exception_object.message)
56 |
57 | end
58 |
59 |
60 | # get the grevit executable
61 | @executable = Sketchup.find_support_file("Grevit.SketchUp.exe","Plugins/grevit_send")
62 |
63 |
64 | if (File.exist?(@executable))
65 |
66 | # execute grevit if exe has been found
67 | UI.openURL('file:///'+@executable)
68 |
69 | else
70 |
71 | # report any errors
72 | UI.messagebox(@executable + " not found!")
73 |
74 | end
75 |
76 | end
77 | end
78 | end
--------------------------------------------------------------------------------
/Grevit.Types/2015-07-31_17h18_36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Types/2015-07-31_17h18_36.png
--------------------------------------------------------------------------------
/Grevit.Types/Client/ClientWindow.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Grevit.Types/Client/Send.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.Diagnostics;
26 | using System.Xml;
27 | using System.Net.Sockets;
28 | using System.Net;
29 | using System.Xml.Serialization;
30 | using System.Runtime.Serialization;
31 | using System.IO;
32 | using System.Threading;
33 | using Grevit.Types;
34 |
35 | namespace Grevit.Client
36 | {
37 | public static class Utilities
38 | {
39 | public static void Send(Grevit.Types.ComponentCollection components, string host = "127.0.0.1", int port = 8002, int timeout = 10000)
40 | {
41 | bool retry = true;
42 | string responseData = "";
43 |
44 | try
45 | {
46 | while (retry)
47 | {
48 | using (TcpClient tcpClient = new TcpClient())
49 | {
50 |
51 | tcpClient.Connect(IPAddress.Parse(host), port);
52 | tcpClient.NoDelay = true;
53 | tcpClient.ReceiveTimeout = timeout;
54 | tcpClient.SendTimeout = timeout;
55 |
56 | using (NetworkStream stream = tcpClient.GetStream())
57 | {
58 | using (StreamWriter writer = new StreamWriter(stream, new UTF8Encoding(false)))
59 | {
60 | writer.AutoFlush = true;
61 | using (StreamReader reader = new StreamReader(stream))
62 | {
63 | string line = Grevit.Serialization.Utilities.Serialize(components);
64 | writer.WriteLine(line);
65 |
66 | string response = reader.ReadLine();
67 | if (response == line) retry = false;
68 | responseData = reader.ReadLine();
69 | }
70 | }
71 | }
72 |
73 | }
74 | }
75 |
76 | }
77 | catch (Exception ex)
78 | {
79 | System.Console.Write(ex.Message);
80 | }
81 | }
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/Grevit.Types/Icon-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Types/Icon-32.png
--------------------------------------------------------------------------------
/Grevit.Types/Icon-64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Types/Icon-64.png
--------------------------------------------------------------------------------
/Grevit.Types/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.Types")]
30 | [assembly: AssemblyDescription("Grevit Type Library")]
31 | [assembly: AssemblyConfiguration("")]
32 | [assembly: AssemblyCompany("grevit.net")]
33 | [assembly: AssemblyProduct("Grevit.Types")]
34 | [assembly: AssemblyCopyright("Copyright © 2013")]
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("63b6f514-2fe3-4fcc-9832-c73535e3cca6")]
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("1.2.0.0")]
57 | [assembly: AssemblyFileVersion("1.2.0.0")]
58 | [assembly: NeutralResourcesLanguageAttribute("en")]
59 |
--------------------------------------------------------------------------------
/Grevit.Types/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.34209
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.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.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 waitingAnimation {
67 | get {
68 | object obj = ResourceManager.GetObject("waitingAnimation", resourceCulture);
69 | return ((System.Drawing.Bitmap)(obj));
70 | }
71 | }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/Grevit.Types/Reflection/Utilities.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Grevit.Reflection
7 | {
8 | public class Utilities
9 | {
10 | ///
11 | /// Get Extension Methods
12 | ///
13 | /// Assembly to check (this)
14 | /// Class
15 | ///
16 | public static IEnumerable GetExtensionMethods(System.Reflection.Assembly assembly, Type extendedType)
17 | {
18 | var query = from type in assembly.GetTypes()
19 | where type.IsSealed && !type.IsGenericType && !type.IsNested
20 | from method in type.GetMethods(System.Reflection.BindingFlags.Static
21 | | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
22 | where method.IsDefined(typeof(System.Runtime.CompilerServices.ExtensionAttribute), false)
23 | where method.GetParameters()[0].ParameterType == extendedType
24 | select method;
25 | return query;
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Grevit.Types/Reporting/MessageBox.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
29 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/Grevit.Types/Reporting/MessageBox.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.Windows;
26 | using System.Windows.Controls;
27 | using System.Windows.Data;
28 | using System.Windows.Documents;
29 | using System.Windows.Input;
30 | using System.Windows.Media;
31 | using System.Windows.Media.Imaging;
32 | using System.Windows.Shapes;
33 |
34 | namespace Grevit.Reporting
35 | {
36 | ///
37 | /// Interaction logic for MessageBox.xaml
38 | ///
39 | public partial class MessageBox : Window
40 | {
41 | public MessageBox()
42 | {
43 | InitializeComponent();
44 | }
45 |
46 | ///
47 | /// Show MessageBox
48 | ///
49 | ///
50 | ///
51 | ///
52 | public static bool Show(string title, string content)
53 | {
54 | MessageBox window = new MessageBox();
55 | window.title.Text = title;
56 | window.content.Text = content;
57 | window.textBox.Visibility = Visibility.Hidden;
58 |
59 | if (window.ShowDialog().Value == true)
60 | return true;
61 | else
62 | return false;
63 | }
64 |
65 | public static bool ShowInTextBox(string title, string content)
66 | {
67 | MessageBox window = new MessageBox();
68 | window.title.Text = title;
69 | window.content.Visibility = Visibility.Hidden;
70 | window.textBox.Visibility = Visibility.Visible;
71 | window.textBox.Text = content;
72 |
73 | if (window.ShowDialog().Value == true)
74 | return true;
75 | else
76 | return false;
77 | }
78 |
79 | private void okButton_Click(object sender, RoutedEventArgs e)
80 | {
81 | this.DialogResult = true;
82 | this.Close();
83 | }
84 |
85 | private void close_Click(object sender, RoutedEventArgs e)
86 | {
87 | this.DialogResult = false;
88 | this.Close();
89 | }
90 |
91 | private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
92 | {
93 | DragMove();
94 | }
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/Grevit.Types/Resources/wait_gd.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Types/Resources/wait_gd.gif
--------------------------------------------------------------------------------
/Grevit.Types/Resources/wait_gd2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Grevit.Types/Resources/wait_gd2.gif
--------------------------------------------------------------------------------
/Grevit.Types/Serialization/Utilities.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.IO;
26 | using System.Runtime.Serialization;
27 |
28 | namespace Grevit.Serialization
29 | {
30 | public class Utilities
31 | {
32 | #region Serialization
33 |
34 | ///
35 | /// Deserialize an xml string to objects
36 | ///
37 | /// XML String to deserialize
38 | /// Type of object
39 | /// Object
40 | public static object Deserialize(string xml, Type toType)
41 | {
42 | using (Stream stream = new MemoryStream())
43 | {
44 | byte[] data = System.Text.Encoding.UTF8.GetBytes(xml);
45 | stream.Write(data, 0, data.Length);
46 | stream.Position = 0;
47 | DataContractSerializer deserializer = new DataContractSerializer(toType);
48 | return deserializer.ReadObject(stream);
49 | }
50 | }
51 |
52 | ///
53 | /// Serialize an object to xml
54 | ///
55 | /// Object
56 | /// XML string
57 | public static string Serialize(object obj)
58 | {
59 | using (MemoryStream memoryStream = new MemoryStream())
60 | using (StreamReader reader = new StreamReader(memoryStream))
61 | {
62 | DataContractSerializer serializer = new DataContractSerializer(obj.GetType());
63 | serializer.WriteObject(memoryStream, obj);
64 | memoryStream.Position = 0;
65 | return reader.ReadToEnd();
66 | }
67 | }
68 |
69 | #endregion
70 |
71 |
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/GrevitFeature.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/GrevitFeature.png
--------------------------------------------------------------------------------
/Icon/Icon-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-128.png
--------------------------------------------------------------------------------
/Icon/Icon-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-24.png
--------------------------------------------------------------------------------
/Icon/Icon-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-256.png
--------------------------------------------------------------------------------
/Icon/Icon-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-32.png
--------------------------------------------------------------------------------
/Icon/Icon-64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-64.png
--------------------------------------------------------------------------------
/Icon/Icon-w-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-w-128.png
--------------------------------------------------------------------------------
/Icon/Icon-w-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-w-24.png
--------------------------------------------------------------------------------
/Icon/Icon-w-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-w-256.png
--------------------------------------------------------------------------------
/Icon/Icon-w-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-w-32.png
--------------------------------------------------------------------------------
/Icon/Icon-w-64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-w-64.png
--------------------------------------------------------------------------------
/Icon/Icon-w-c-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Icon-w-c-128.png
--------------------------------------------------------------------------------
/Icon/Old-Icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Icon/Old-Icon.jpg
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Grevit
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.AutoCad.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.AutoCad.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.cuix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.cuix
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.lsp:
--------------------------------------------------------------------------------
1 | (if (findfile "Grevit.AutoCAD.dll")
2 | (command "._netload" "Grevit.AutoCAD.dll")
3 | )
4 | ;EOF
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_ACA 2015_enu_Support/Grevit.mnr:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2015/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 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2015/Grevit.Revit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2015/Grevit.Revit.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2015/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2015/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_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 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2016/Grevit.Revit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2016/Grevit.Revit.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2016/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2016/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_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 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2017/Grevit.Revit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2017/Grevit.Revit.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2017/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2017/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_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 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2018/Grevit.Revit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2018/Grevit.Revit.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2018/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2018/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_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 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2019/Grevit.Revit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2019/Grevit.Revit.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2019/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2019/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_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 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2020/Grevit.Revit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2020/Grevit.Revit.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2020/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2020/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_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 |
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2021/Grevit.Revit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2021/Grevit.Revit.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Autodesk_Revit_Addins_2021/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Autodesk_Revit_Addins_2021/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Grasshopper_Libraries/Grevit.GrassHopper.gha:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Grasshopper_Libraries/Grevit.GrassHopper.gha
--------------------------------------------------------------------------------
/Package/APPDATA_Grasshopper_Libraries/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Grasshopper_Libraries/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_Grasshopper_UserObjects/Filter Rule Comparer.ghuser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_Grasshopper_UserObjects/Filter Rule Comparer.ghuser
--------------------------------------------------------------------------------
/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send.rb:
--------------------------------------------------------------------------------
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 | require 'sketchup.rb'
21 | require 'extensions.rb'
22 |
23 | grevit_extension = SketchupExtension.new("Grevit", "grevit_send/grevit_send_menu.rb")
24 | grevit_extension.version = '1.0'
25 | grevit_extension.description = 'Send SketchUp Geometries directly to Revit.'
26 | Sketchup.register_extension(grevit_extension, true)
27 |
--------------------------------------------------------------------------------
/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/Grevit.SketchUp.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/Grevit.SketchUp.exe
--------------------------------------------------------------------------------
/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/Grevit.Types.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/Grevit.Types.dll
--------------------------------------------------------------------------------
/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/SketchUpNET.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/SketchUpNET.dll
--------------------------------------------------------------------------------
/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/grevit_send_menu.rb:
--------------------------------------------------------------------------------
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 | # Setup
22 | require 'sketchup.rb'
23 |
24 | module Grevit
25 | module SketchUp
26 |
27 | # Get Plugins menu
28 | @plugins_menu = UI.menu("Plugins")
29 | @grevit_menu = @plugins_menu.add_submenu("Grevit")
30 |
31 | # Add a menu item to launch Grevit
32 | @grevit_menu.add_item("Grevit Send") {
33 | self.grevit_send
34 | }
35 |
36 | # Add a link to grevits website
37 | @grevit_menu.add_item("Grevit Info") {
38 | UI.openURL('http://grevit.net')
39 | }
40 |
41 | # Grevit Send Method
42 | def self.grevit_send
43 |
44 | # get active model
45 | @model = Sketchup.active_model
46 |
47 | begin
48 |
49 | # save the current model as v2015 to temp
50 | @model.save_copy(Sketchup.temp_dir + "/GrevitTempFile.skp", Sketchup::Model::VERSION_2015)
51 |
52 | rescue ArgumentError => exception_object
53 |
54 | # report any errors to the user
55 | UI.messagebox(exception_object.message)
56 |
57 | end
58 |
59 |
60 | # get the grevit executable
61 | @executable = Sketchup.find_support_file("Grevit.SketchUp.exe","Plugins/grevit_send")
62 |
63 |
64 | if (File.exist?(@executable))
65 |
66 | # execute grevit if exe has been found
67 | UI.openURL('file:///'+@executable)
68 |
69 | else
70 |
71 | # report any errors
72 | UI.messagebox(@executable + " not found!")
73 |
74 | end
75 |
76 | end
77 | end
78 | end
--------------------------------------------------------------------------------
/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/slapi.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/APPDATA_SketchUp_SketchUp 2016_SketchUp_Plugins/grevit_send/slapi.dll
--------------------------------------------------------------------------------
/Package/Examples/Example.skp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/Examples/Example.skp
--------------------------------------------------------------------------------
/Package/Examples/ExampleDefinition.gh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/Examples/ExampleDefinition.gh
--------------------------------------------------------------------------------
/Package/Grevit_latest.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/Grevit_latest.zip
--------------------------------------------------------------------------------
/Package/grevit_send.rbz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/Package/grevit_send.rbz
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Grevit
2 |
3 | [](http://code.grevit.net/facts/O%2B%2B_S%2B%2B_I%2B%2B%2B_C_E_M%2B_V%2B_PS_D%2B%2B)
4 |
5 | ### Build your BIM Model directly in Grasshopper.
6 |
7 | Grevit allows you to define BIM Elements in Grasshopper or SketchUp and translate them directly to Autodesk Revit or AutoCad Architecture. Grevit follows a one way process so your design model remains the geometrical source of truth: send geometry and attributes from Rhino/Grassopper or SketchUp to Autodesk Revit or ACA. Don't worry if your design changes, Grevit can even update existing geometries. Grevit supports a lot of BIM elements: like walls, beams, columns, simple components, adaptive components, even topography and many more. Check out the [documentation](https://grevit.gitbooks.io/grevit-documentation/content/).
8 |
9 | Grevit is Free and Open Source and you can help to make it better: contribute on GitHub.
10 |
11 | ### Why not just exporting and importing?
12 |
13 | Exporting static geometries is working fine from Rhino or SketchUp but when it comes to a BIM workflow exporting isn't enough. Static geometries won't intersect with native elements and are difficult to enhance with parameters. Redrawing geometry with native BIM elements often seems to be the only solution. But then, any design change is forcing you to repeat the process all over again. Grevit does not only create BIM elements from Rhino or SketchUp, it also allows you to update BIM elements later according to your latest design changes while all parameter values remain in place.
14 |
15 | ### Why is Grevit sending data through network?
16 |
17 | This way you could run Revit or ACA on a different machine than the Design Model. A designer working in Grasshopper and another one working in SketchUp: both can send their geometries to one Revit instance using Grevit.
18 |
19 | ### Stack
20 |
21 | Grevit is built in C#.NET making use of the following .NET APIs:
22 | Autodesk (R) Revit, Autodesk (R) AutoCAD Architecture, SketchUp and McNeel (R) Grasshopper
23 |
--------------------------------------------------------------------------------
/activityDiagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/activityDiagram.png
--------------------------------------------------------------------------------
/classDiagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grevit-dev/Grevit/28743f51451ee6f7b93cc0be5f26ddc6c5d571d2/classDiagram.png
--------------------------------------------------------------------------------