Skip to content

RevitMechanicalSpecificationHelpersUpdate: Вспомогательные процессы - #489

Open
Redomine wants to merge 5 commits into
masterfrom
Redomine/RevitMechanicalSpecificationHelpersUpdate
Open

RevitMechanicalSpecificationHelpersUpdate: Вспомогательные процессы #489
Redomine wants to merge 5 commits into
masterfrom
Redomine/RevitMechanicalSpecificationHelpersUpdate

Conversation

@Redomine

Copy link
Copy Markdown
Contributor
  1. Проверки занятости вынесены из ParamChecker в ElementEditChecker, занятые элементы теперь пропускаются.
    2)Изменён пайплайн MaskReplacer: результаты имени и марки передаются через SpecificationElement. Это необходимо для обработки вложений - параметры ADSK у таких элементов блокируются, не позволяя использование масок.
  2. Добавлено автоматическое пересоздание повернутых горизонтальных воздуховодов с сохранением подключений и изоляции.

Отредактированы сценарии при которых занятый элемент попадал в обработку
…соре, чтобы избежать ситуаций когда семейство вложенное и его параметры ADSK_ блокируются
… повернутость и пересоздание в случае не прохождения.
@Redomine
Redomine requested a review from dosymep August 21, 2026 13:31
@Redomine Redomine self-assigned this Aug 21, 2026

@dosymep dosymep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • обнови форматирование кода, у тебя нет использования нового C#

Comment on lines +16 to +26
switch(parameter.StorageType) {
case StorageType.Integer:
return new ElementParameterValue(parameter.Id, parameter.StorageType, parameter.AsInteger());
case StorageType.Double:
return new ElementParameterValue(parameter.Id, parameter.StorageType, parameter.AsDouble());
case StorageType.String:
return new ElementParameterValue(parameter.Id, parameter.StorageType, parameter.AsString());
case StorageType.ElementId:
return new ElementParameterValue(parameter.Id, parameter.StorageType, parameter.AsElementId());
default:
return null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameter.AsObject()

}
}

public void TryApply(Parameter parameter) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы добавил проверку соответствия StorageType у параметра и сохраненного значения

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чтобы во время исключения было понятно какая ошибка и где, а то тут будет InvalidCastException без контекста

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants