refactor(dwg): use the first-class SectionSymbol and ViewBorder entities

Section marks and drawing-view borders are now real acadrust entity
types instead of Unknown-with-extras, so the renderer dispatches on the
variant directly, the arrow-direction resolver reads the active viewport
off the ViewBorder entity, and selection / properties show "Section
Symbol" and "View Border" instead of "Unknown". View borders are
non-plotting and tessellate to nothing; both count toward the lossy
Save-As warning since they round-trip via their raw records.

Bumps acadrust for the entity promotion.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 4.8 committed 2026-07-21 00:19:51 +03:00
1 parent 3b2b8ad21d
commit 1cfb856224
7 files changed
+48 -29

No files matched your search

+4
View File
@@ -55,6 +55,8 @@ pub fn ui_name(e: &EntityType) -> &'static str {
EntityType::AttributeEntity(_) => "Attribute",
EntityType::Ole2Frame(_) => "OLE Frame",
EntityType::Light(_) => "Light",
EntityType::SectionSymbol(_) => "Section Symbol",
EntityType::ViewBorder(_) => "View Border",
EntityType::Seqend(_) => "Seqend",
EntityType::Unknown(_) => "Unknown",
}
@@ -103,6 +105,8 @@ pub fn dxf_name(e: &EntityType) -> &'static str {
EntityType::Surface(_) => "SURFACE",
EntityType::Mesh(_) => "MESH",
EntityType::Light(_) => "LIGHT",
EntityType::SectionSymbol(_) => "SECTIONLINE",
EntityType::ViewBorder(_) => "DRAWINGVIEW",
_ => "ENTITY",
}
}
+2
View File
@@ -143,6 +143,8 @@ pub fn entity_type_name(et: &EntityType) -> &'static str {
EntityType::Ole2Frame(_) => "Ole2Frame",
EntityType::PolygonMesh(_) => "PolygonMesh",
EntityType::Light(_) => "Light",
EntityType::SectionSymbol(_) => "SectionSymbol",
EntityType::ViewBorder(_) => "ViewBorder",
EntityType::Unknown(_) => "Unknown",
}
}