mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-12 06:22:01 +00:00
copied Revit 2024 SDK
This commit is contained in:
@@ -86,8 +86,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>
|
||||
|
||||
@@ -142,9 +142,9 @@ namespace Revit.SDK.Samples.ScheduleCreation.CS
|
||||
ScheduleField field = schedule.Definition.AddField(schedulableField);
|
||||
|
||||
//Judge if the parameterId is a BuiltInParameter.
|
||||
if (Enum.IsDefined(typeof(BuiltInParameter), parameterId.IntegerValue))
|
||||
if (ParameterUtils.IsBuiltInParameter(parameterId))
|
||||
{
|
||||
BuiltInParameter bip = (BuiltInParameter)parameterId.IntegerValue;
|
||||
BuiltInParameter bip = (BuiltInParameter)parameterId.Value;
|
||||
//Get the StorageType of BuiltInParameter.
|
||||
StorageType st = document.get_TypeOfStorage(bip);
|
||||
//if StorageType is String or ElementId, set GridColumnWidth of schedule field to three times of current GridColumnWidth.
|
||||
|
||||
Reference in New Issue
Block a user