mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-20 19:06:20 +00:00
updated to Revit 2023 SDK
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -26,7 +25,6 @@
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -34,8 +32,7 @@
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<CodeAnalysisRuleSet>
|
||||
</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
@@ -44,8 +41,7 @@
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<CodeAnalysisRuleSet>
|
||||
</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
|
||||
|
||||
@@ -254,7 +254,7 @@ namespace Revit.SDK.Samples.AvoidObstruction.CS
|
||||
Element curElem = m_rvtDoc.GetElement(cur);
|
||||
if (curElem.Id == pipe.Id ||
|
||||
(!(curElem is Pipe) && !(curElem is Duct) &&
|
||||
curElem.Category.Id.IntegerValue != (int)BuiltInCategory.OST_StructuralFraming))
|
||||
curElem.Category.BuiltInCategory != BuiltInCategory.OST_StructuralFraming))
|
||||
{
|
||||
refs.RemoveAt(i);
|
||||
}
|
||||
@@ -522,7 +522,7 @@ namespace Revit.SDK.Samples.AvoidObstruction.CS
|
||||
ConnectorSet connSet = connItself.AllRefs;
|
||||
foreach (Connector conn in connSet)
|
||||
{
|
||||
if (conn.Owner.Id.IntegerValue != pipe.Id.IntegerValue &&
|
||||
if (conn.Owner.Id != pipe.Id &&
|
||||
conn.ConnectorType == ConnectorType.End)
|
||||
{
|
||||
return conn;
|
||||
|
||||
Reference in New Issue
Block a user