mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-18 10:31:32 +00:00
updated to Revit 2023 SDK
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<DocumentationFile>bin\Debug\CreateFillPattern.xml</DocumentationFile>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -36,7 +35,6 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -47,8 +45,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>
|
||||
@@ -58,8 +55,7 @@
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>
|
||||
</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace Revit.SDK.Samples.CreateFillPattern.CS
|
||||
for (int i = 0; i < lstLinePatterns.Count; i++)
|
||||
{
|
||||
TreeNode node = new TreeNode(lstLinePatterns[i].Name);
|
||||
node.Name = lstLinePatterns[i].Id.IntegerValue.ToString();
|
||||
node.Name = lstLinePatterns[i].Id.ToString();
|
||||
iniNode2.Nodes.Add(node);
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace Revit.SDK.Samples.CreateFillPattern.CS
|
||||
"Before applying a LinePattern to Grids, you must first select a LinePattern.");
|
||||
return;
|
||||
}
|
||||
ElementId eid = new ElementId(int.Parse(treeViewLinePattern.SelectedNode.Name));
|
||||
ElementId eid = ElementId.Parse(treeViewLinePattern.SelectedNode.Name);
|
||||
foreach (ElementId typeId in lstGridTypeIds)
|
||||
{
|
||||
Element gridType = doc.GetElement(typeId);
|
||||
|
||||
Reference in New Issue
Block a user