copied Revit 2024 SDK

This commit is contained in:
Jeremy Tammik
2023-04-26 14:47:47 +02:00
parent 2ca39e38fd
commit 4d69f3eea5
425 changed files with 344414 additions and 2296 deletions
@@ -68,12 +68,12 @@ namespace Revit.SDK.Samples.MaterialProperties.CS
get
{
Material material = CurrentMaterial as Material;
ElementId materialId = new ElementId(0);
ElementId materialId = ElementId.InvalidElementId;
if (material != null)
{
materialId = material.Id;
}
if (materialId.IntegerValue <= 0)
if (materialId == ElementId.InvalidElementId)
{
return StructuralAssetClass.Generic;
}
@@ -422,11 +422,11 @@ namespace Revit.SDK.Samples.MaterialProperties.CS
if (null != m_cacheMaterial)
return m_cacheMaterial;
ElementId identityValue = new ElementId(0);
ElementId identityValue = ElementId.InvalidElementId;
if (m_currentMaterial != null)
identityValue = m_currentMaterial.AsElementId(); //get the value of current material's ElementId
//material has no value
if (identityValue.IntegerValue <= 0)
if (identityValue == ElementId.InvalidElementId)
{
return null;
}
@@ -48,7 +48,7 @@
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
@@ -139,8 +139,8 @@
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.pl"
if exist %25FILEFORSAMPLEREG%25 perl %25FILEFORSAMPLEREG%25 $(ProjectExt) "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"</PostBuildEvent>
<PostBuildEvent>set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.py"
if exist %25FILEFORSAMPLEREG%25 py -3 %25FILEFORSAMPLEREG%25 "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>