mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-13 06:43:26 +00:00
copied Revit 2024 SDK
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user