Skip to content

Commit 745591e

Browse files
committed
v4.6.10
2 parents e6e7525 + 64838bd commit 745591e

File tree

56 files changed

+648
-16927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+648
-16927
lines changed

CREDITS.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
- Neil Reilly for the handy introduction and installation [video](https://www.youtube.com/watch?v=71rvCspWNHs).
1919
- [ThubanPDX](https://github.com/ThubanPDX). For testing and new ideas for tools and scripts.
2020
- [Markdown module for python](https://pypi.python.org/pypi/Markdown) for the module obviously that helped bringing markdown to pyRevit output so much easier.
21-
- Everyone that is listed on the pyRevit issue tracker for their contributions and bug reports. You all help me make pyRevit better.
21+
- Everyone that is listed on the [pyRevit issue tracker](https://github.com/eirannejad/pyRevit/issues) for their contributions and bug reports.
22+
- Everyone that is listed on the [pyRevit Pull Requests](https://github.com/eirannejad/pyRevit/pulls?q=is%3Apr+is%3Aclosed) for their contributions.
23+
24+
You all help me make pyRevit better every day.
2225

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<a href="http://eirannejad.github.io/pyRevit/" target="_blank" style="border:0"><img src="http://eirannejad.github.io/pyRevit/pyRevitLogo.svg" width="160"/></a>
22
# pyRevit for Autodesk Revit®
33

4-
[![GitHub issues](https://img.shields.io/github/issues/eirannejad/pyRevit.svg)](https://github.com/eirannejad/pyRevit/issues)
5-
[![GitHub forks](https://img.shields.io/github/forks/eirannejad/pyRevit.svg)](https://github.com/eirannejad/pyRevit/network)
6-
[![GitHub stars](https://img.shields.io/github/stars/eirannejad/pyRevit.svg)](https://github.com/eirannejad/pyRevit/stargazers)
7-
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
8-
[![madewithloveinportland](https://img.shields.io/badge/%3C%2F%3E%20with%20%3C3-Portland%2C%20OR-green.svg)](https://en.wikipedia.org/wiki/Portland,_Oregon)
4+
[![GitHub issues](https://img.shields.io/github/issues/eirannejad/pyRevit.svg?style=for-the-badge)](https://github.com/eirannejad/pyRevit/issues)
5+
[![GitHub forks](https://img.shields.io/github/forks/eirannejad/pyRevit.svg?style=for-the-badge)](https://github.com/eirannejad/pyRevit/network)
6+
[![GitHub stars](https://img.shields.io/github/stars/eirannejad/pyRevit.svg?style=for-the-badge&colorB=red)](https://github.com/eirannejad/pyRevit/stargazers)
7+
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg?style=for-the-badge)](http://www.gnu.org/licenses/gpl-3.0)
8+
[![madewithloveinportland](https://img.shields.io/badge/%3C%2F%3E%20with%20%3C3-Portland%2C%20OR-green.svg?style=for-the-badge)](https://en.wikipedia.org/wiki/Portland,_Oregon)
99

1010
[See pyRevit Blog](http://eirannejad.github.io/pyRevit/)

bin/Nett.dll

2.5 KB
Binary file not shown.

bin/pyRevitLabs.Common.dll

2 KB
Binary file not shown.

bin/pyRevitLabs.Common.pdb

6 KB
Binary file not shown.

bin/pyRevitLabs.CommonCLI.dll

0 Bytes
Binary file not shown.

bin/pyRevitLabs.CommonCLI.pdb

0 Bytes
Binary file not shown.

bin/pyRevitLabs.DeffrelDB.dll

512 Bytes
Binary file not shown.

bin/pyRevitLabs.Language.dll

0 Bytes
Binary file not shown.

bin/pyRevitLabs.Language.pdb

0 Bytes
Binary file not shown.

bin/pyRevitLabs.TargetApps.Revit.dll

0 Bytes
Binary file not shown.

bin/pyRevitUpdater.exe

4 KB
Binary file not shown.

bin/pyrevit.exe

3 KB
Binary file not shown.

bin/pyrevit.manifest

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3+
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
4+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5+
<security>
6+
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7+
<!-- UAC Manifest Options
8+
If you want to change the Windows User Account Control level replace the
9+
requestedExecutionLevel node with one of the following.
10+
11+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
12+
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
13+
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
14+
15+
Specifying requestedExecutionLevel element will disable file and registry virtualization.
16+
Remove this element if your application requires this virtualization for backwards
17+
compatibility.
18+
-->
19+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
20+
</requestedPrivileges>
21+
</security>
22+
</trustInfo>
23+
24+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
25+
<application>
26+
<!-- A list of the Windows versions that this application has been tested on
27+
and is designed to work with. Uncomment the appropriate elements
28+
and Windows will automatically select the most compatible environment. -->
29+
30+
<!-- Windows Vista -->
31+
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />
32+
33+
<!-- Windows 7 -->
34+
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
35+
36+
<!-- Windows 8 -->
37+
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
38+
39+
<!-- Windows 8.1 -->
40+
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
41+
42+
<!-- Windows 10 -->
43+
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
44+
45+
</application>
46+
</compatibility>
47+
48+
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
49+
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
50+
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
51+
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->
52+
<!--
53+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
54+
<windowsSettings>
55+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
56+
</windowsSettings>
57+
</application>
58+
-->
59+
60+
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
61+
<!--
62+
<dependency>
63+
<dependentAssembly>
64+
<assemblyIdentity
65+
type="win32"
66+
name="Microsoft.Windows.Common-Controls"
67+
version="6.0.0.0"
68+
processorArchitecture="*"
69+
publicKeyToken="6595b64144ccf1df"
70+
language="*"
71+
/>
72+
</dependentAssembly>
73+
</dependency>
74+
-->
75+
76+
</assembly>

bin/pyrevit.pdb

0 Bytes
Binary file not shown.

extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/About.pushbutton/AboutWindow.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
LineHeight="20"
216216
Text="XX"/>
217217
<WrapPanel x:Name="git_panel" HorizontalAlignment="Center">
218-
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
218+
<StackPanel x:Name="git_commit" Orientation="Horizontal" HorizontalAlignment="Center" Visibility="Collapsed">
219219
<ContentControl Content="{StaticResource commitIcon}" Width="24" Height="24" Margin="0,-5,5,0">
220220
<ContentControl.LayoutTransform>
221221
<ScaleTransform ScaleX="0.7" ScaleY="0.7"/>

extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/About.pushbutton/aboutscript.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
2+
#pylint: disable=E0401,E0602,W0703,W0613,C0103
23
import sys
34

45
from pyrevit import HOST_APP
5-
from pyrevit import coreutils
66
from pyrevit import versionmgr
77
from pyrevit.labs import TargetApps
88
from pyrevit.versionmgr import urls
@@ -36,6 +36,7 @@ def __init__(self, xaml_file_name):
3636
try:
3737
pyrvt_repo = versionmgr.get_pyrevit_repo()
3838
self.branch_name = pyrvt_repo.branch
39+
self.show_element(self.git_commit)
3940
self.show_element(self.git_branch)
4041
except Exception:
4142
# other wise try to get deployment name
@@ -44,7 +45,7 @@ def __init__(self, xaml_file_name):
4445
try:
4546
self.deployname = attachment.Clone.GetDeployment().Name
4647
self.show_element(self.repo_deploy)
47-
except Exception as e:
48+
except Exception:
4849
pass
4950

5051
self.short_version_info.Text = short_version

extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Extensions.smartbutton/ExtensionsWindow.xaml

+6-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<Canvas x:Key="filterIcon">
1111
<Path Canvas.Top="-28" Canvas.Left="-25" Data="F1 M 45.4403,56.9637L 45.4403,55.0463L 52.8201,44.5143L 52.8201,44.4237L 46.13,44.4237L 46.13,41.4774L 57.372,41.4774L 57.372,43.5352L 50.1532,53.9265L 50.1532,54.0174L 57.4869,54.0174L 57.4869,56.9637L 45.4403,56.9637 Z M 34.8333,61.75L 34.8333,42.75L 19,20.5833L 57,20.5833L 41.1667,42.75L 41.1667,58.5833L 34.8333,61.75 Z M 25.903,52.8055L 21.4072,52.8055L 20.289,56.9855L 16.6085,56.9855L 21.4072,41.4556L 26.0661,41.4556L 30.9337,56.9855L 27.1143,56.9855L 25.903,52.8055 Z M 21.9196,50.2801L 25.3905,50.2801L 24.4122,46.9804L 23.9987,45.4806L 23.6201,43.981L 23.5736,43.981L 23.2212,45.4941L 22.8514,47.0194L 21.9196,50.2801 Z " Fill="DimGray"/>
1212
</Canvas>
13-
1413
</Window.Resources>
1514
<DockPanel Margin="10" LastChildFill="True">
1615
<Grid DockPanel.Dock="Top" Margin="0,0,0,10" Height="25">
@@ -66,7 +65,7 @@
6665
</TextBlock>
6766
<Label x:Name="ext_installed_l" Margin="0,10,0,0"/>
6867
<Label x:Name="ext_dependencies_l" Foreground="#bb3a1d" Margin="0,10,0,0"/>
69-
<GroupBox Header="Extension Package Settings:" Margin="0,10,0,0">
68+
<GroupBox x:Name="extCredentials" Header="Extension Package Settings:" Margin="0,10,0,0">
7069
<StackPanel>
7170
<CheckBox x:Name="privaterepo_cb" Margin="10,10,0,0" IsChecked="False"
7271
Click="handle_private_repo"
@@ -94,27 +93,27 @@
9493
</GroupBox>
9594
<Grid Margin="0,15,0,0" IsEnabled="True">
9695
<Grid.RowDefinitions>
97-
<RowDefinition Height="Auto" />
96+
<RowDefinition Height="32" />
9897
</Grid.RowDefinitions>
9998
<Grid.ColumnDefinitions>
10099
<ColumnDefinition Width="*" />
101100
<ColumnDefinition Width="*" />
102101
<ColumnDefinition Width="*" />
103102
<ColumnDefinition Width="*" />
104103
</Grid.ColumnDefinitions>
105-
<Button Content="Update Package Settings" Click="save_pkg_settings"
104+
<Button Content="Update Extension Settings" Click="save_pkg_settings"
106105
Grid.Column="0" Grid.Row="0" Margin="3" />
107-
<Button x:Name="ext_install_b" Content="Install Package" Click="handle_install_button_popup"
106+
<Button x:Name="ext_install_b" Content="Install Extension" Click="handle_install_button_popup"
108107
Grid.Column="1" Grid.Row="0" Margin="3"
109108
ContextMenuService.IsEnabled="False">
110109
<Button.ContextMenu>
111110
<ContextMenu >
112111
</ContextMenu>
113112
</Button.ContextMenu>
114113
</Button>
115-
<Button x:Name="ext_toggle_b" Click="toggle_ext_pkg"
114+
<Button x:Name="ext_toggle_b" Click="toggle_ext_pkg" Content="Enable Extension"
116115
Grid.Column="2" Grid.Row="0" Margin="3" />
117-
<Button x:Name="ext_remove_b" Content="Remove Package" Click="remove_ext_pkg"
116+
<Button x:Name="ext_remove_b" Content="Remove Extension" Click="remove_ext_pkg"
118117
Grid.Column="3" Grid.Row="0" Margin="3" />
119118
</Grid>
120119
</StackPanel>

extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Extensions.smartbutton/script.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,11 @@ def _update_ext_action_buttons(self, ext_pkg_item):
223223
# Action Button: Toggle (Enable / Disable)
224224
self.show_element(self.ext_toggle_b)
225225
if ext_pkg_item.ext_pkg.config.disabled:
226-
self.ext_toggle_b.Content = 'Enable Package'
226+
self.ext_toggle_b.Content = \
227+
self.ext_toggle_b.Content.replace('Dis', 'En')
227228
else:
228-
self.ext_toggle_b.Content = 'Disable Package'
229+
self.ext_toggle_b.Content = \
230+
self.ext_toggle_b.Content.replace('En', 'Dis')
229231

230232
else:
231233
self.show_element(self.ext_install_b)
@@ -283,6 +285,10 @@ def update_ext_info(self, sender, args):
283285
self._update_ext_info_panel(self.selected_pkg)
284286
self._update_ext_action_buttons(self.selected_pkg)
285287
self._update_ext_settings_panel(self.selected_pkg)
288+
if self.selected_pkg.Builtin:
289+
self.hide_element(self.extCredentials)
290+
else:
291+
self.show_element(self.extCredentials)
286292
else:
287293
self.hide_element(self.ext_infopanel)
288294

Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
__doc__ = 'Opens the central log for the current workshared project.'
2-
1+
"""Opens the central log for the current workshared project."""
2+
#pylint: disable=C0103,E0401
33
import os
44
import os.path as op
55

6-
from pyrevit import revit, DB, UI
6+
from pyrevit import revit, DB
77
from pyrevit import forms
88

99

10-
if revit.doc.GetWorksharingCentralModelPath():
10+
if forms.check_workshared(doc=revit.doc):
1111
model_path = revit.doc.GetWorksharingCentralModelPath()
1212
centralPath = \
1313
DB.ModelPathUtils.ConvertModelPathToUserVisiblePath(model_path)
@@ -20,5 +20,3 @@
2020
os.system('start notepad++ "{0}"'.format(slogFile))
2121
else:
2222
os.system('start notepad "{0}"'.format(slogFile))
23-
else:
24-
forms.alert('Model is not workshared.')

extensions/pyRevitDevTools.extension/pyRevitDev.tab/Debug.panel/Unit Tests.pulldown/Test Charts.pushbutton/script.py

+14
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ def get_test_chart(chart_type):
3434
'fontColor': '#000',
3535
'fontStyle': 'bold'}
3636

37+
chart.options.scales = {
38+
'xAxes': [{
39+
'display': True,
40+
'scaleLabel': {
41+
'display': True,
42+
'labelString': 'Month'
43+
}}],
44+
'yAxes': [{
45+
'display': True,
46+
'scaleLabel': {
47+
'display': True,
48+
'labelString': 'Value'
49+
}}]}
50+
3751
return chart
3852

3953

extensions/pyRevitDevTools.extension/pyRevitDev.tab/Developer Tools.panel/links.stack3/Json.pushbutton/script.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
__context__ = 'zerodoc'
77

88

9-
script.open_url('http://www.jsoneditoronline.org/')
9+
script.open_url('https://jsoneditoronline.org/')

extensions/pyRevitDevTools.extension/pyRevitDev.tab/Developer Tools.panel/links.stack3/RequestBin.pushbutton/script.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
__context__ = 'zerodoc'
77

88

9-
script.open_url('http://requestb.in/')
9+
script.open_url('https://requestbin.fullcontact.com/')

extensions/pyRevitTags.extension/extension.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "extension",
55
"rocket_mode_compatible": "True",
66
"name": "pyRevitTags",
7-
"description": "Tag Management for Projects",
7+
"description": "Tag & Package Management for Projects",
88
"author": "Ehsan Iran-Nejad",
99
"author_profile": "https://keybase.io/ein",
1010
"url": "https://github.com/eirannejad/pyRevit.git",

extensions/pyRevitTags.extension/pyRevit.tab/Packages & Tags.panel/Manage Packages.pushbutton/script.py

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414

1515
__title__ = 'Manage\nPackages'
16+
__author__ = '{{author}}'
17+
__helpurl__ = '{{docpath}}po0lCldSGmk'
1618

1719
logger = script.get_logger()
1820

extensions/pyRevitTags.extension/pyRevit.tab/Packages & Tags.panel/Manage Tags.pushbutton/script.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
__title__ = 'Manage\nTags'
1313
__author__ = '{{author}}'
14-
__helpurl__ = '{{docpath}}'
14+
__helpurl__ = '{{docpath}}FYNDSAypWlg'
1515

1616

1717
logger = script.get_logger()

0 commit comments

Comments
 (0)