Skip to content

ScheduleFilter.ByFieldTypeAndValue Casting Integers to wrong type #3276

@tinrobot2000

Description

@tinrobot2000

ScheduleFilter(ScheduleFieldId, ScheduleFilterType, Int32) Constructor requires Int32 - current casting to to int

if (value.GetType() == typeof(int))
{
filter = new Autodesk.Revit.DB.ScheduleFilter(field.InternalScheduleField.FieldId, ft, (int)value);
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions