feat(cad): preview which part each entity separates into

Separate gave no way to see what each part would take before
splitting the file. Preview Parts, joined to the front of the
Separate button, draws every entity in its part's color and labels
each part with the name it would get.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-29 18:41:55 -05:00
1 parent d09840e788
commit 3b19fda767
7 files changed
+251 -15

No files matched your search

+2
View File
@@ -14,6 +14,8 @@ A file can draw several parts, such as a sheet of ornaments. Import still makes
The search runs off the UI thread whenever an item loads or its filters change. With two or more parts, the **Separate (N)** button shows in the detail bar, and the entity right-click menu adds **Separate This Part** and **Separate All N Parts**.
**Preview Parts**, joined to the front of the Separate button, draws every entity in its part's color (the Hole Table palette) and labels each part above its outline with the name it would get, so you can check what each part takes before separating. While on, it overrides the Hole Table's colors; it changes nothing in the item and stays on as you move between items, showing for each one with two or more parts.
## What a separated item keeps
Each new item takes the entities of its part, with their IDs, so entity roles, exclusions, suppression, breakoffs, tabbed cutouts and dimensions follow them. Bends go with their source entity or, without one, their midpoint; text goes by its position. Quantity, customer and source path are copied, so every drawing records the same file. `BuildDrawing` then gives each its own source offset.