mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-28 21:36:57 +00:00
updated to Revit 2023 SDK
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRules>
|
||||
</CodeAnalysisRules>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -33,7 +32,6 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -42,8 +40,7 @@
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>
|
||||
</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
@@ -53,8 +50,7 @@
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>
|
||||
</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace Revit.SDK.Samples.SpotDimension.CS
|
||||
if (tmpSpotDimension.View.Name == viewName)
|
||||
{
|
||||
//create a list view Item
|
||||
ListViewItem tmpItem = new ListViewItem(tmpSpotDimension.Id.IntegerValue.ToString());
|
||||
ListViewItem tmpItem = new ListViewItem(tmpSpotDimension.Id.ToString());
|
||||
tmpItem.Tag = tmpSpotDimension;
|
||||
|
||||
//add the item to the listview
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace Revit.SDK.Samples.SpotDimension.CS
|
||||
dimensionType.get_Parameter(BuiltInParameter.SPOT_ELEV_LEADER_ARROWHEAD);
|
||||
Autodesk.Revit.DB.ElementId elementId = temporaryParam.AsElementId();
|
||||
//if not found that element, add string "None" to DataTable
|
||||
if (-1 == elementId.IntegerValue)
|
||||
if (Autodesk.Revit.DB.ElementId.InvalidElementId == elementId)
|
||||
{
|
||||
temporaryValue = "None";
|
||||
}
|
||||
@@ -143,7 +143,7 @@ namespace Revit.SDK.Samples.SpotDimension.CS
|
||||
temporaryParam = dimensionType.get_Parameter(BuiltInParameter.SPOT_ELEV_SYMBOL);
|
||||
elementId = temporaryParam.AsElementId();
|
||||
//if not found that element, add string "None" to DataTable
|
||||
if (-1 == elementId.IntegerValue)
|
||||
if (Autodesk.Revit.DB.ElementId.InvalidElementId == elementId)
|
||||
{
|
||||
temporaryValue = "None";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user