mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-18 03:19:17 +00:00
copied Revit 2024 SDK
This commit is contained in:
@@ -85,8 +85,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>
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
|
||||
private static double GetReadonlyCostFromId(Element elem, int seed)
|
||||
{
|
||||
int costRoot = elem.Id.IntegerValue % 100;
|
||||
long costRoot = elem.Id.Value % 100;
|
||||
return (double)costRoot * 100.0 + 0.99;
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
manager.AddCategory(BuiltInCategory.OST_Floors);
|
||||
manager.AddCategory(BuiltInCategory.OST_Ceilings);
|
||||
manager.AddCategory(BuiltInCategory.OST_Roofs);
|
||||
manager.ParameterGroup = BuiltInParameterGroup.PG_IDENTITY_DATA;
|
||||
manager.ParameterGroup = GroupTypeId.IdentityData;
|
||||
|
||||
sharedParametersToCreate.Add(manager); // Look up syntax for this automatic initialization.
|
||||
|
||||
@@ -247,7 +247,7 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
|
||||
manager.AddCategory(BuiltInCategory.OST_Furniture);
|
||||
manager.AddCategory(BuiltInCategory.OST_Planting);
|
||||
manager.ParameterGroup = BuiltInParameterGroup.PG_MATERIALS;
|
||||
manager.ParameterGroup = GroupTypeId.Materials;
|
||||
|
||||
sharedParametersToCreate.Add(manager);
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
public String Description { get; set; }
|
||||
public bool Instance { get; set; }
|
||||
public Definition Definition { get; set; }
|
||||
public BuiltInParameterGroup ParameterGroup { get; set; }
|
||||
public ForgeTypeId ParameterGroup { get; set; }
|
||||
|
||||
public SharedParameterBindingManager ()
|
||||
{
|
||||
@@ -49,7 +49,7 @@ namespace Revit.SDK.Samples.ReadonlySharedParameters.CS
|
||||
Description = "";
|
||||
Instance = true;
|
||||
Definition = null;
|
||||
ParameterGroup = BuiltInParameterGroup.PG_IDENTITY_DATA;
|
||||
ParameterGroup = GroupTypeId.IdentityData;
|
||||
}
|
||||
|
||||
List<BuiltInCategory> m_categories = new List<BuiltInCategory>();
|
||||
|
||||
Reference in New Issue
Block a user