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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user