mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-11 06:08:07 +00:00
copied Revit 2024 SDK
This commit is contained in:
@@ -118,26 +118,26 @@ namespace Revit.SDK.Samples.DividedSurfaceByIntersects.CS
|
||||
|
||||
private DividedSurface GetDividedSurface()
|
||||
{
|
||||
return m_document.GetElement(new ElementId(31519)) as DividedSurface;
|
||||
return m_document.GetElement(new ElementId(31519L)) as DividedSurface;
|
||||
}
|
||||
|
||||
private IEnumerable<ElementId> GetPlanes()
|
||||
{
|
||||
// 1027, 1071 & 1072 are ids of the reference planes and levels drawn in the family file
|
||||
yield return new ElementId(1027);
|
||||
yield return new ElementId(1071);
|
||||
yield return new ElementId(1072);
|
||||
yield return new ElementId(1027L);
|
||||
yield return new ElementId(1071L);
|
||||
yield return new ElementId(1072L);
|
||||
}
|
||||
|
||||
private IEnumerable<ElementId> GetLines()
|
||||
{
|
||||
// the "31xxx" numberic values are ids of the model lines drawn in the family file
|
||||
yield return new ElementId(31170);
|
||||
yield return new ElementId(31206);
|
||||
yield return new ElementId(31321);
|
||||
yield return new ElementId(31343);
|
||||
yield return new ElementId(31377);
|
||||
yield return new ElementId(31395);
|
||||
yield return new ElementId(31170L);
|
||||
yield return new ElementId(31206L);
|
||||
yield return new ElementId(31321L);
|
||||
yield return new ElementId(31343L);
|
||||
yield return new ElementId(31377L);
|
||||
yield return new ElementId(31395L);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -146,7 +146,7 @@ namespace Revit.SDK.Samples.DividedSurfaceByIntersects.CS
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="eid"></param>
|
||||
/// <returns></returns>
|
||||
public T GetElement<T>(int eid) where T : Element
|
||||
public T GetElement<T>(long eid) where T : Element
|
||||
{
|
||||
return m_document.GetElement(new ElementId(eid)) as T;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
@@ -76,8 +77,8 @@
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<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