fix: правки offset/loft по ревью Codex

- CreateSketchOn проверяет entity.Create() (улучшает все пути создания эскиза)
- loft-сообщение считает сечения после дедупликации
- тест loft: проверка габарита 20x20x40

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-26 23:20:38 +03:00
parent b2aac016af
commit f0c9cc7db1
3 changed files with 10 additions and 2 deletions
@@ -93,7 +93,8 @@ public sealed partial class PartModeler
?? throw new InvalidOperationException("GetDefinition() эскиза вернул не ksSketchDefinition.");
def.SetPlane(planeEntity);
entity.Create();
if (!entity.Create())
throw new InvalidOperationException("Create() эскиза вернул FALSE.");
var editor = def.BeginEdit() as ksDocument2D
?? throw new InvalidOperationException("BeginEdit() не вернул ksDocument2D.");