Skip to content

Commit

Permalink
Merge branch 'release/4.6.20'
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed May 12, 2019
2 parents a6f2ce8 + 3742e6a commit b0688f4
Show file tree
Hide file tree
Showing 66 changed files with 873 additions and 195 deletions.
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pygments = "*"
sphinx = "*"
readthedocs-sphinx-ext = "*"
"doc8" = "*"
urllib3 = "==1.24.2"
jinja2 = "==2.10.1"

[dev-packages]
pylint = "<2.0.0"
Expand Down
169 changes: 93 additions & 76 deletions Pipfile.lock

Large diffs are not rendered by default.

Binary file removed bin/ControlzEx.pdb
Binary file not shown.
Binary file removed bin/DocoptNet.pdb
Binary file not shown.
Binary file removed bin/LibGit2Sharp.pdb
Binary file not shown.
Binary file removed bin/MahApps.Metro.pdb
Binary file not shown.
Binary file removed bin/Nett.pdb
Binary file not shown.
Binary file removed bin/Newtonsoft.Json.pdb
Binary file not shown.
Binary file removed bin/git2-4aecb64.pdb
Binary file not shown.
Binary file modified bin/pyRevitLabs.Common.dll
Binary file not shown.
Binary file removed bin/pyRevitLabs.Common.pdb
Binary file not shown.
Binary file modified bin/pyRevitLabs.CommonCLI.dll
Binary file not shown.
Binary file removed bin/pyRevitLabs.CommonCLI.pdb
Binary file not shown.
Binary file modified bin/pyRevitLabs.CommonWPF.dll
Binary file not shown.
Binary file removed bin/pyRevitLabs.CommonWPF.pdb
Binary file not shown.
Binary file modified bin/pyRevitLabs.Language.dll
Binary file not shown.
Binary file removed bin/pyRevitLabs.Language.pdb
Binary file not shown.
Binary file modified bin/pyRevitLabs.TargetApps.Revit.dll
Binary file not shown.
Binary file removed bin/pyRevitLabs.TargetApps.Revit.pdb
Binary file not shown.
Binary file removed bin/pyRevitUpdater.exe
Binary file not shown.
Binary file modified bin/pyrevit.exe
Binary file not shown.
Binary file removed bin/pyrevit.pdb
Binary file not shown.
5 changes: 5 additions & 0 deletions dev/WPFEdit/WPFEdit/WPFEdit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="..\..\..\pyrevitlib\pyrevit\forms\ParameterItemStyle.xaml">
<Link>Forms\ParameterItemStyle.xaml</Link>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="..\..\..\pyrevitlib\pyrevit\forms\ProgressBar.xaml">
<Link>Forms\ProgressBar.xaml</Link>
<Generator>MSBuild:Compile</Generator>
Expand Down
8 changes: 4 additions & 4 deletions dev/pyRevitLabs/pyRevitLabs.Common/pyRevitLabs.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<PropertyGroup>
Expand Down Expand Up @@ -103,7 +104,6 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<PostBuildEvent>copy "$(TargetPath)" "$(TargetDir)..\..\..\..\..\bin"</PostBuildEvent>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down Expand Up @@ -64,7 +65,6 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<PostBuildEvent>copy "$(TargetPath)" "$(TargetDir)..\..\..\..\..\bin"</PostBuildEvent>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
Expand Down Expand Up @@ -103,7 +104,6 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<PostBuildEvent>copy "$(TargetPath)" "$(TargetDir)..\..\..\..\..\bin"</PostBuildEvent>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down Expand Up @@ -64,4 +66,7 @@
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "$(TargetDir)..\..\..\..\..\bin"</PostBuildEvent>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.8.8.0")]
[assembly: AssemblyFileVersion("0.8.8.0")]
[assembly: AssemblyVersion("0.8.9.0")]
[assembly: AssemblyFileVersion("0.8.9.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ public class RevitProduct {
{"20181217_1515", ("19.2.0.65", "2019.2 (Update)")},
{"20190108_1515", ("19.2.1.1", "2019.2 (Full Install)")}, // reported by: https://twitter.com/JarodJSchultz/status/1100459171491676160
{"20190225_1515", ("19.2.10.7", "2019.2.1")}, // release notes https://up.autodesk.com/2019/RVT/Autodesk_Revit_2019_2_1_Readme.html

// 2020
{"20190327_2315", ("20.0.0.377", "2020 First Customer Ship")},
{"20190412_1200", ("20.0.1.2", "2020.0.1")},
};

private static Regex BuildNumberFinder = new Regex(@".*(?<build>\d{8}_\d{4}).*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand All @@ -40,12 +42,10 @@
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="RevitAPI">
<HintPath>..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2019\RevitAPI.dll</HintPath>
<Private>False</Private>
<HintPath>..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2020\RevitAPI.dll</HintPath>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2019\RevitAPIUI.dll</HintPath>
<Private>False</Private>
<HintPath>..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
4 changes: 2 additions & 2 deletions dev/pyRevitLabs/pyRevitManager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.7.0")]
[assembly: AssemblyFileVersion("0.9.7.0")]
[assembly: AssemblyVersion("0.9.8.0")]
[assembly: AssemblyFileVersion("0.9.8.0")]
21 changes: 16 additions & 5 deletions dev/pyRevitLabs/pyRevitManager/pyRevitManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<OutputPath>..\..\..\bin\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
Expand Down Expand Up @@ -132,19 +133,26 @@
<ProjectReference Include="..\pyRevitLabs.CommonCLI\pyRevitLabs.CommonCLI.csproj">
<Project>{614720ba-c0e3-4199-9a5e-d2468ffcbfe5}</Project>
<Name>pyRevitLabs.CommonCLI</Name>
<EmbedInteropTypes>False</EmbedInteropTypes>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\pyRevitLabs.Common\pyRevitLabs.Common.csproj">
<Project>{c5a03112-6ee1-415f-b53d-5d732d9f47ad}</Project>
<Name>pyRevitLabs.Common</Name>
<EmbedInteropTypes>False</EmbedInteropTypes>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\pyRevitLabs.Language\pyRevitLabs.Language.csproj">
<Project>{269fe01f-093a-4774-8017-fefc2342abf5}</Project>
<Name>pyRevitLabs.Language</Name>
<EmbedInteropTypes>False</EmbedInteropTypes>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\pyRevitLabs.TargetApps.Revit\pyRevitLabs.TargetApps.Revit.csproj">
<Project>{ed0fb7a2-e4a8-4490-a020-73140bfbce0b}</Project>
<Name>pyRevitLabs.TargetApps.Revit</Name>
<Private>False</Private>
<EmbedInteropTypes>False</EmbedInteropTypes>
</ProjectReference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -172,6 +180,9 @@
<PackageReference Include="Expression.Blend.Sdk">
<Version>1.0.2</Version>
</PackageReference>
<PackageReference Include="LibGit2Sharp">
<Version>0.25.4</Version>
</PackageReference>
<PackageReference Include="NETStandard.Library">
<Version>2.0.3</Version>
</PackageReference>
Expand All @@ -186,9 +197,9 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetDir)lib\win32\x64\git2-8e0b172.dll" "$(TargetDir)git2-8e0b172.dll"
<PostBuildEvent>copy "$(TargetDir)lib\win32\x64\git2-4aecb64.dll" "$(TargetDir)git2-4aecb64.dll"
rd /S /Q "$(TargetDir)lib"
REM del /Q "$(TargetDir)*.pdb"
del /Q "$(TargetDir)*.pdb"
REM del /Q "$(TargetDir)*.config"
REM del /Q "$(TargetDir)*.xml"
signtool sign /n "Ehsan Iran Nejad" /t http://timestamp.digicert.com /fd sha256 "$(TargetPath)"</PostBuildEvent>
Expand Down
6 changes: 4 additions & 2 deletions dev/pyRevitLabs/pyRevitUpdater/pyRevitUpdater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>pyRevit.ico</ApplicationIcon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@
Revit versions from here. This effectively removes the
pyRevit.addin manifest file from %appdata%/Autodesk/Revit/Addins folders.
</TextBlock>
<CheckBox x:Name="revit2020_cb" Style="{StaticResource RevitCheckbox}" Margin="0,10,0,0" IsChecked="False" IsEnabled="False">
Autodesk Revit 2020
</CheckBox>
<CheckBox x:Name="revit2019_cb" Style="{StaticResource RevitCheckbox}" Margin="0,10,0,0" IsChecked="False" IsEnabled="False">
Autodesk Revit 2019
</CheckBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def __init__(self, xaml_file_name):
'2016': self.revit2016_cb,
'2017': self.revit2017_cb,
'2018': self.revit2018_cb,
'2019': self.revit2019_cb}
'2019': self.revit2019_cb,
'2020': self.revit2020_cb}

self.set_image_source(self.lognone, 'lognone.png')
self.set_image_source(self.logverbose, 'logverbose.png')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
"""Find all sheets referencing the current view.
Especially useful for finding legends.
"""
#pylint: disable=import-error,invalid-name,broad-except
from pyrevit import revit, DB
from pyrevit import forms
from pyrevit import script

__author__ = "{{author}}"

__doc__ = 'Find all sheets referencing the current view.'\
' Especially useful for finding legends.'


cl_views = DB.FilteredElementCollector(revit.doc)
shts = cl_views.OfCategory(DB.BuiltInCategory.OST_Sheets)\
.WhereElementIsNotElementType()\
.ToElements()

sheets = sorted(shts, key=lambda x: x.SheetNumber)
output = script.get_output()

curview = revit.activeview
count = 0

print('Searching All Sheets for {0} ID:{1}\n'.format(curview.Name, curview.Id))
for s in sheets:
vpsIds = [revit.doc.GetElement(x).ViewId for x in s.GetAllViewports()]

print('Searching All Sheets for {} {}\n'
.format(curview.Name, output.linkify(curview.Id)))

for sheet in revit.query.get_sheets(include_placeholders=False):
vps_ids = [revit.doc.GetElement(x).ViewId for x in sheet.GetAllViewports()]
curviewelements = DB.FilteredElementCollector(revit.doc)\
.OwnedByView(s.Id)\
.OwnedByView(sheet.Id)\
.WhereElementIsNotElementType()\
.ToElements()

for el in curviewelements:
if isinstance(el, DB.ScheduleSheetInstance):
vpsIds.append(el.ScheduleId)
vps_ids.append(el.ScheduleId)

if curview.Id in vpsIds:
if curview.Id in vps_ids:
count += 1
print('NUMBER: {0} NAME:{1}'
.format(s.Parameter[DB.BuiltInParameter.SHEET_NUMBER].AsString().rjust(10),
s.Parameter[DB.BuiltInParameter.SHEET_NAME].AsString().ljust(50)))
revit.report.print_sheet(sheet)

print('\n\nView is referenced on {0} sheets.'.format(count))
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,14 @@ def get_keynotes_tree(conn):

for catroot_rkey in keynote_records:
if catroot_rkey.key in parents:
catroot_rkey.children.extend(parents[catroot_rkey.key])
catroot_rkey.children.extend(
natsorted(
parents[catroot_rkey.key],
key=lambda x: x.key
)
)

return sorted(cat_roots, key=lambda x: x.key)
return natsorted(cat_roots, key=lambda x: x.key)


def find(conn, key):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, xaml_file_name):

@property
def items_list(self):
return self.items_dg.ItemsSource
return self.items_dg.ItemsSource or []

@items_list.setter
def items_list(self, value):
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b0688f4

Please sign in to comment.