Skip to content

Commit 25134cb

Browse files
authored
Merge pull request #49 from EverseDevelopment/develop
Develop
2 parents 7cc3d60 + e98d540 commit 25134cb

File tree

9 files changed

+178
-73
lines changed

9 files changed

+178
-73
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,5 @@ FodyWeavers.xsd
369369
Pris.SelectByRevitId.bundle/
370370

371371
e-verse.Navisworks.SelectByRevitId.Installer/Pris.SelectByRevitId.exe
372+
373+
Pris.SelectByRevitId.bundle.zip

README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
# EVerse.Navisworks.RevitId
1+
# Pris - Select by Revit Id
2+
3+
[<img src="https://s3.us-east-1.amazonaws.com/everse.assets/GithubReadme/Pris.png">](https://github.com/EverseDevelopment/e-verse.Navisworks.SelectByRevitId/wiki)
4+
<br/>
5+
6+
7+
This Navisworks Addin allows you select an element by it Revit Id</h3>
8+
<br/>
9+
10+
If you appreciate the work put into this free add-in, please give a review on the [Autodesk AppStore](https://apps.autodesk.com/NAVIS/en/Detail/Index?id=7106599322742572339&appLang=en&os=Win64).
11+
12+
## Getting Started
13+
14+
1. Load a Revit Model into Navisworks
15+
16+
2. Paste the Revit Id of the element
17+
18+
3. Hit Select and the Element will be selected
19+
20+
You are done!
21+
22+
## Current Version
23+
Pris Select by Id is currently built against Navisworks 2018,2019,2020,2021,2022,2023,2024,2025 and 2026
24+
25+
## Contributors
26+
This package is primarily managed by [E-verse](https://www.e-verse.co/) and by [People Like You™](https://github.com/EverseDevelopment/e-verse.Navisworks.SelectByRevitId/pulse).
27+
28+
## Help improve glTF exporter
29+
If you're interested in contributing to Pris select by Id, just submit a [pull request](https://github.com/EverseDevelopment/e-verse.Navisworks.SelectByRevitId/pulls) or a [feature request](https://github.com/EverseDevelopment/e-verse.Navisworks.SelectByRevitId/issues) .
30+
31+
## Installation
32+
Looking to get the Pris Select by Id add-in? Check out [Autodesk app store](https://apps.autodesk.com/NAVIS/en/Detail/Index?id=7106599322742572339&appLang=en&os=Win64).
33+
34+
## About us ##
35+
36+
We are an international mix of AEC professionals, product designers, and software developers. We work together to transform construction requirements into accurate and partnership-driven technological solutions.
37+
38+
<p align="center" width="100%">
39+
<a href="https://www.e-verse.com/">
40+
<img src="https://s3.amazonaws.com/everse.assets/GithubReadme/e-verse_logo_no+slogan.jpg" align="center">
41+
</a>
42+
</p>

e-verse.Navisworks.SelectByRevitId.Common/PluginRibbon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace EVerse.Navisworks.Plugin.Common
1111
{
1212
[Plugin("SelectByRevitIdRibbon", IdentityInformation.DeveloperID, DisplayName = "Pris")]
1313
[RibbonLayout("PluginRibbon.xaml")]
14-
[RibbonTab("SelectByRevitId", DisplayName = "Pris - Select by ID")]
14+
[RibbonTab("SelectByRevitId", DisplayName = "Pris")]
1515
[Command("SelectByRevitId", LargeIcon = "RID_32.jpg", ToolTip = "Pris is a Select by Revit ID add-in for Autodesk® Navisworks®. It allows users to easily select specific element in a Navisworks model based on its unique Revit ID.", DisplayName = "Pris - Select by ID")]
1616
class PluginRibbon : CommonCommandHandlerPlugin
1717
{

e-verse.Navisworks.SelectByRevitId.Common/en-US/PluginRibbon.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
<RibbonTab Id="SelectByRevitId" KeyTip="T1">
1515
<RibbonPanel x:Uid="RibbonPane1_1">
16-
<RibbonPanelSource x:Uid="RibbonPanelSource_RibbonPanel_1" KeyTip="C1" Title="Tools">
16+
<RibbonPanelSource x:Uid="RibbonPanelSource_RibbonPanel_1" KeyTip="C1" Title="Select Revit Id">
1717

1818
<local:NWRibbonButton x:Uid="SelectByRevitId" Id="SelectByRevitId"
1919
Size="Large"
2020
KeyTip="B1"
2121
ShowText="True"
22-
Text="Pris - Select by ID"
22+
Text="Pris"
2323
Orientation="Vertical"/>
2424
</RibbonPanelSource>
2525
</RibbonPanel>

e-verse.Navisworks.SelectByRevitId.Plugin/Windows/Resources.xaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,4 +1396,100 @@
13961396
<Setter Property="Stroke" Value="{DynamicResource SecondaryGray}"/>
13971397
<Setter Property="X2" Value="10000"/>
13981398
</Style>
1399+
1400+
<!-- Main Title Button -->
1401+
<ControlTemplate x:Key="MainTitleButtonTemp" TargetType="{x:Type Button}">
1402+
<Grid Background="Transparent">
1403+
<Viewbox Stretch="UniformToFill" Margin="0">
1404+
<Canvas Width="800" Height="600" Background="Transparent">
1405+
1406+
<Path x:Name="PrisImage"
1407+
Style="{DynamicResource PrisLogo}"
1408+
Canvas.Left="115"
1409+
Canvas.Top="54"/>
1410+
1411+
<Path x:Name="PrisText"
1412+
Style="{DynamicResource PrisLetters}"
1413+
Canvas.Left="150"
1414+
Canvas.Top="0">
1415+
</Path>
1416+
</Canvas>
1417+
</Viewbox>
1418+
1419+
<!-- Clickable transparent surface -->
1420+
<Rectangle x:Name="ClickSurface"
1421+
Fill="Transparent"
1422+
HorizontalAlignment="Stretch"
1423+
VerticalAlignment="Stretch"/>
1424+
</Grid>
1425+
1426+
<ControlTemplate.Triggers>
1427+
<Trigger Property="IsMouseOver" Value="true">
1428+
<Setter Property="Opacity" TargetName="PrisImage" Value="0.5"/>
1429+
<Setter Property="Opacity" TargetName="PrisText" Value="0.5"/>
1430+
</Trigger>
1431+
<Trigger Property="IsPressed" Value="true">
1432+
<Setter Property="Opacity" TargetName="PrisImage" Value="0.3"/>
1433+
<Setter Property="Opacity" TargetName="PrisText" Value="0.3"/>
1434+
</Trigger>
1435+
<Trigger Property="IsEnabled" Value="false">
1436+
<Setter Property="Opacity" TargetName="PrisImage" Value="0.25"/>
1437+
<Setter Property="Opacity" TargetName="PrisText" Value="0.25"/>
1438+
</Trigger>
1439+
</ControlTemplate.Triggers>
1440+
</ControlTemplate>
1441+
1442+
1443+
<Style x:Key="MainTitleButtonStyle" TargetType="{x:Type Button}">
1444+
<Setter Property="Foreground" Value="Aqua"/>
1445+
<Setter Property="Background" Value="Transparent"/>
1446+
<Setter Property="BorderBrush" Value="Transparent"/>
1447+
<Setter Property="Width" Value="25"/>
1448+
<Setter Property="Height" Value="25"/>
1449+
<Setter Property="Template" Value="{DynamicResource MainTitleButtonTemp}"/>
1450+
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
1451+
<Setter Property="Panel.ZIndex" Value="1"/>
1452+
</Style>
1453+
1454+
<Style x:Key="PrisLetters" TargetType="{x:Type Path}">
1455+
<Setter Property="Fill" Value="{DynamicResource MainGray}" />
1456+
<Setter Property="Data">
1457+
<Setter.Value>
1458+
<PathGeometry Figures="M200.4 178.5V65.3h37.2v15.4c2.8-7.3 6-12.3 9.8-14.9c4.7-3.3 10.2-4.9 16.4-4.9h3.7V99c-1 0-2 0-3.1-0.1
1459+
c-1.1-0.1-1.9-0.2-2.4-0.2c-0.6-0.1-1-0.1-1.3-0.1c-8.8 0-15.2 3-19.3 9c-2.4 3.3-3.7 9.1-3.7 17.6v53.3H200.4z
1460+
M301.3 12.5c5.7 0 10.4 1.9 14.1 5.6c3.7 3.8 5.5 8.6 5.5 14.4c0 5.5-1.9 10.2-5.6 13.9 c-3.7 3.8-8.5 5.6-14.2 5.6c-5.7 0-10.4-1.9-14.2-5.6c-3.7-3.7-5.6-8.5-5.6-14.2c0-5.7 1.9-10.4 5.6-14.2 C290.7 14.4 295.5 12.5 301.3 12.5z
1461+
M428.4 98.8H394v-2.2c0-2.6-1-4.8-3.1-6.5c-2-1.7-4.6-2.6-7.7-2.6c-4.2-0.2-7 1.6-8.3 5.1
1462+
c-1.6 4.2 0.2 7.7 5.4 10.3c2 1 4.3 1.7 7.1 2.2c15.8 4.6 27 9.8 33.5 15.6c6.5 5.9 9.8 13.8
1463+
9.8 23.7c0 11.6-4.2 20.9-12.6 27.9
1464+
c-8.4 7-19.5 10.5-33.4 10.5c-13.9 0-24.9-3.4-33-10.1c-8.2-6.8-12.4-16.1-12.7-28h35.2c0.8 4.2 2 7.2 3.5 8.9
1465+
c1.5 1.7 3.9 2.6 7 2.6c2.4 0 4.5-0.8 6.1-2.3c1.6-1.5 2.4-3.5 2.4-5.7c0-2.6-1.3-4.8-3.8-6.5c-2.5-1.7-7.5-3.8-15-6.2
1466+
c-12.4-3.9-21.4-8.8-27-14.8c-5.6-5.9-8.4-13.4-8.4-22.4c0-11.2 4.2-20.3 12.6-27.1c8.4-6.8 19.4-10.3 33.1-10.3
1467+
c13.5 0 24.2 3.3 31.9 10C424.3 77.6 428.3 86.9 428.4 98.8z
1468+
M156.3 61.7c-9.1-5.2-19.2-7.8-30.3-7.8c-14.8 0-26.6 5.1-35.2 15.2V58.3H53.6v163h37.2v-59.6
1469+
c9 9.5 21.1 14.2 36.4 14.2c17.9 0 32.1-5.4 42.5-16.1c10.4-10.9 15.6-25.6 15.6-44C185.4 91
1470+
175.7 73 156.3 61.7z M137.7 138 c-4.1 4.3-8.9 7-14.5 8c-1.9 0.4-3.9 0.6-6.1 0.6c-8
1471+
0-14.4-2.8-19.3-8.3c-4.9-5.5-7.3-12.9-7.3-22c0-9.3 2.6-16.9 7.8-22.7
1472+
c3.9-4.4 8.7-7.2 14.4-8.3c1.9-0.4 3.9-0.6 6-0.6c7.8 0 14.3 3 19.4 9c5.1
1473+
6 7.7 13.6 7.7 22.7C145.8 125.1 143.1 132.3 137.7 138z
1474+
M282.5,65.3 H319.7 V178.5 H282.5 Z" />
1475+
</Setter.Value>
1476+
</Setter>
1477+
</Style>
1478+
1479+
1480+
<Style x:Key="PrisLogo" TargetType="{x:Type Path}">
1481+
<Setter Property="Fill" Value="{DynamicResource WindowButtonColor}" />
1482+
<Setter Property="Data">
1483+
<Setter.Value>
1484+
<PathGeometry Figures=" m 0 0 v 33.844 l 29.703 18.31 V 18.279 Z m -70.227 0.117 1.789 32.802 25.252 -16.162 z
1485+
m -35.397 92.719 100.12 -59.028 v -34.57 l -32.427 20.752 -0.048 -0.029 -35.441 22.682 -2.372
1486+
-43.488 -29.832 19.093 z m 0 41.087 29.704 17.822 v -34.124 l -29.704 -17.903 z m 72.853 2.691
1487+
26.576 14.882 V 120.369 Z M 29.703 60.941 -70.416 117.073 v 34.139 l 26.936 -14.504 42.79 -26.155
1488+
v 40.873 L 29.703 133.892 Z M -2.784 38.594 -100.645 96.292 -73.638 112.57 26.313 56.531 Z m -0.638
1489+
120.763 -34.564 -19.355 -35.946 19.355 -37.196 -22.317 V 96.4 l -0.267 -0.161 0.267 -0.157 V 15.235
1490+
l 37.241 -23.834 35.85 22.061 0.027 -0.017 0.027 0.043 34.512 -22.087 38.679 23.803 v 121.867 z" />
1491+
</Setter.Value>
1492+
</Setter>
1493+
</Style>
1494+
13991495
</ResourceDictionary>

e-verse.Navisworks.SelectByRevitId.Plugin/Windows/SelectByIdWindow.xaml

Lines changed: 33 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -52,67 +52,40 @@
5252
</DropShadowEffect>
5353
</Border.Effect>
5454

55-
<Grid Background="Transparent" RenderOptions.BitmapScalingMode="HighQuality" Margin="9,9,9,9">
55+
<Grid Background="Transparent"
56+
RenderOptions.BitmapScalingMode="HighQuality"
57+
Margin="20">
5658
<Grid>
5759

58-
<Button
59-
Style="{DynamicResource CloseButtonStyle}"
60-
Name="TitleButton"
61-
Foreground="Black"
62-
BorderThickness="0"
63-
Click="Pris_Link"
60+
<Button Style="{DynamicResource MainTitleButtonStyle}"
6461
Background="Transparent"
65-
Height="50"
66-
FontSize="20"
67-
FontWeight="Light"
68-
Margin="6,4,215,0" VerticalAlignment="Top">
69-
<Button.Template>
70-
<ControlTemplate TargetType="Button">
71-
<Border x:Name="border" Width="290" Background="Transparent">
72-
<Grid>
73-
<Image x:Name="ComponentImage"
74-
Visibility="Visible"
75-
Source="/Pris.SelectByRevitId;component/Resources/SelectByRevitId.png"
76-
HorizontalAlignment="Left"
77-
Width="115"
78-
SnapsToDevicePixels="True"
79-
RenderOptions.BitmapScalingMode="HighQuality"
80-
RenderOptions.EdgeMode="Aliased"
81-
Margin="2,5,0,5"/>
82-
</Grid>
83-
</Border>
84-
<ControlTemplate.Triggers >
85-
<Trigger Property="IsDefaulted" Value="True">
86-
</Trigger>
87-
<Trigger Property="IsMouseOver" Value="True">
88-
<Setter Property="Opacity" TargetName="border" Value="0.5"/>
89-
</Trigger>
90-
<Trigger Property="IsPressed" Value="True">
91-
<Setter Property="Opacity" TargetName="border" Value="0.2"/>
92-
</Trigger>
93-
</ControlTemplate.Triggers>
94-
</ControlTemplate>
95-
</Button.Template>
62+
BorderBrush="Transparent"
63+
Click="Pris_Link"
64+
HorizontalAlignment="Left"
65+
VerticalAlignment="Top"
66+
Height="40" Width="141" >
9667
</Button>
9768

98-
<TextBlock
99-
Text="{Binding Path=Version, UpdateSourceTrigger=PropertyChanged}"
100-
TextAlignment="Left"
101-
Margin="241,19,34,0"
102-
FontSize="15"
103-
Height="22"
104-
FontWeight="Light"
105-
Foreground="Gray"
106-
VerticalAlignment="Top">
107-
</TextBlock>
108-
109-
<Button
110-
Style="{DynamicResource TabCloseButtonStyle}"
111-
Name="CloseButton"
112-
Click="Close_Button"
113-
VerticalAlignment="Top"
114-
Margin="309,20,11,0"></Button>
69+
<StackPanel Orientation="Horizontal"
70+
VerticalAlignment="Top"
71+
HorizontalAlignment="Right">
72+
<TextBlock Text="{Binding Path=Version, UpdateSourceTrigger=PropertyChanged}"
73+
TextAlignment="Left"
74+
FontSize="15"
75+
Height="22"
76+
Width="50"
77+
FontWeight="Light"
78+
Opacity="0.5"
79+
Foreground="Gray" />
80+
81+
<Button Style="{DynamicResource TabCloseButtonStyle}"
82+
Name="CloseButton"
83+
Click="Close_Button" />
84+
85+
</StackPanel>
86+
11587
</Grid>
88+
11689
<Line Stroke="{DynamicResource MainGray}"
11790
X2="1000"
11891
Opacity="0.5"
@@ -128,13 +101,6 @@
128101
</TransformGroup>
129102
</Line.RenderTransform>
130103
</Line>
131-
<!--<Label
132-
Style="{DynamicResource SecondaryLabel}"
133-
HorizontalAlignment="Left"
134-
Margin="28,118,0,0"
135-
VerticalAlignment="Top"
136-
Content="Type Revit element Id"
137-
Width="126"/>-->
138104
<TextBox
139105
Style="{DynamicResource MainTextBox}"
140106
x:Name="textBox"
@@ -147,7 +113,7 @@
147113
MinWidth="300"
148114
MinHeight="25"
149115
VerticalAlignment="Top"
150-
Margin="0,127,0,0"
116+
Margin="0,120,0,0"
151117
HorizontalAlignment="Center"
152118
GotFocus="TextBox_GotFocus"
153119
LostFocus="TextBox_LostFocus"/>
@@ -156,20 +122,21 @@
156122
x:Name="applyButton"
157123
Content="Select"
158124
HorizontalAlignment="Center"
159-
Margin="0,201,0,0"
125+
Margin="0,190,0,0"
160126
Width="122"
161127
Height="22"
162128
Click="OkButton_Click"
163129
VerticalAlignment="Top"/>
164130

165131
<Button
166132
Style="{DynamicResource CloseButtonStyle}"
167-
Margin="185,286,10,0"
133+
HorizontalAlignment="Right"
168134
Background="Transparent"
169135
Click="Title_Link"
170136
FontWeight="Light"
171137
FontSize="12"
172-
Foreground="{DynamicResource MainGray}" Height="22" VerticalAlignment="Top">
138+
Foreground="{DynamicResource MainGray}" Height="22"
139+
VerticalAlignment="Bottom">
173140
<Button.Template>
174141
<ControlTemplate TargetType="Button">
175142
<Border x:Name="border" Background="Transparent" Margin="0,0,3,0">
@@ -218,7 +185,6 @@
218185
</Button>
219186

220187

221-
222188
</Grid>
223189
</Border>
224190
<Window.Resources>

e-verse.Navisworks.SelectByRevitId.Plugin/Windows/SelectByIdWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private void Title_Link(object sender, RoutedEventArgs e)
7777

7878
private void Pris_Link(object sender, RoutedEventArgs e)
7979
{
80-
System.Diagnostics.Process.Start("https://e-verse.com/");
80+
System.Diagnostics.Process.Start("https://apps.autodesk.com/NAVIS/en/Detail/Index?id=7106599322742572339&appLang=en&os=Win64");
8181
}
8282

8383
private void TextBox_GotFocus(object sender, RoutedEventArgs e)

e-verse.Navisworks.SelectByRevitId.Plugin/Utils/Tools.cs renamed to e-verse.Navisworks.SelectByRevitId.Plugin/Windows/Tools.cs

File renamed without changes.

e-verse.Navisworks.SelectByRevitId.Plugin/e-verse.Navisworks.SelectByRevitId.Plugin.projitems

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Compile Include="$(MSBuildThisFileDirectory)SelectByIdPlugin.cs" />
1313
<Compile Include="$(MSBuildThisFileDirectory)Utils\Analytics.cs" />
1414
<Compile Include="$(MSBuildThisFileDirectory)Utils\SettingsConfig.cs" />
15-
<Compile Include="$(MSBuildThisFileDirectory)Utils\Tools.cs" />
15+
<Compile Include="$(MSBuildThisFileDirectory)Windows\Tools.cs" />
1616
<Compile Include="$(MSBuildThisFileDirectory)Windows\FeedbackWindow.xaml.cs">
1717
<DependentUpon>FeedbackWindow.xaml</DependentUpon>
1818
</Compile>

0 commit comments

Comments
 (0)