From e10dfbad3af0aa8f671e38737fef079e8fa92846 Mon Sep 17 00:00:00 2001 From: DomCR Date: Tue, 23 Apr 2024 12:46:15 +0200 Subject: [PATCH] comment --- ACadSharp/Entities/Insert.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ACadSharp/Entities/Insert.cs b/ACadSharp/Entities/Insert.cs index 1f00b4fd..7f250d08 100644 --- a/ACadSharp/Entities/Insert.cs +++ b/ACadSharp/Entities/Insert.cs @@ -160,11 +160,19 @@ public Insert(BlockRecord block) : this(false) } /// - /// Updates all attribute definitions contained in the block reference as Attribute entitites in the insert + /// Updates all attribute definitions contained in the block reference as entitites in the insert /// - /// public void UpdateAttributes() { + foreach (AttributeEntity att in this.Attributes) + { + //Tags are not unique, is it needed? check how the different applications link the atts + if (!this.Block.AttributeDefinitions.Select(d => d.Tag).Contains(att.Tag)) + { + this.Attributes.Remove(att); + } + } + throw new NotImplementedException(); }