mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-17 01:52:14 +00:00
updated to Revit 2023 SDK
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -39,7 +38,6 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<CodeAnalysisRuleSet />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -48,8 +46,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>
|
||||
@@ -59,8 +56,7 @@
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>
|
||||
</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
{
|
||||
Element eType = elem.Document.GetElement(elem.GetTypeId());
|
||||
|
||||
return eType.Name.Substring(0, 2) + elem.Id.IntegerValue;
|
||||
return eType.Name.Substring(0, 2) + elem.Id.ToString();
|
||||
}
|
||||
|
||||
public static void SetReadonlyIds1(Document doc)
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
public String Name { get; set; }
|
||||
public ForgeTypeId Type { get; set; }
|
||||
public bool UserModifiable { get; set; }
|
||||
public bool UserVisible { get; set; }
|
||||
public String Description { get; set; }
|
||||
public bool Instance { get; set; }
|
||||
public Definition Definition { get; set; }
|
||||
@@ -47,7 +46,6 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
Name = "Invalid";
|
||||
Type = new ForgeTypeId { };
|
||||
UserModifiable = true;
|
||||
UserVisible = true;
|
||||
Description = "";
|
||||
Instance = true;
|
||||
Definition = null;
|
||||
@@ -60,7 +58,6 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
{
|
||||
ExternalDefinitionCreationOptions options = new ExternalDefinitionCreationOptions (Name, Type);
|
||||
options.UserModifiable = UserModifiable;
|
||||
options.Visible = UserVisible;
|
||||
options.Description = Description;
|
||||
return options;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user