fix(insert): honor preset attributes

Refs #853
This commit is contained in:
Hakan Seven committed 2026-08-23 13:49:18 +03:00
1 parent 94f5971fdb
commit 682e16210f
3 files changed
+72 -47

No files matched your search

+7 -4
View File
@@ -1945,10 +1945,13 @@ pub trait CadCommand: Send {
None
}
/// Inject the block's attribute definitions for ATTREQ attr-filling after
/// the INSERT point is picked. Carries the full definitions so the created
/// attributes inherit their geometry, not just tag / prompt / default (#255).
fn attreq_set_attdefs(&mut self, _attdefs: Vec<acadrust::entities::AttributeDefinition>) {}
/// Inject block attribute definitions after the INSERT point is picked.
fn attreq_set_attdefs(
&mut self,
_attdefs: Vec<acadrust::entities::AttributeDefinition>,
) -> Option<acadrust::EntityType> {
None
}
/// Returns the INSERT entity built so far (pending attr fill) if this is an
/// ATTREQ-aware INSERT command waiting for attdef injection.