From d4b2ab895ef5a48a2b76185d2bf39fcb38fb4c4b Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Tue, 12 Jul 2022 15:50:24 +0200 Subject: [PATCH] removed doc argument --- BuildingCoder/CmdSetTagType.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BuildingCoder/CmdSetTagType.cs b/BuildingCoder/CmdSetTagType.cs index 4281519..6b23d5e 100644 --- a/BuildingCoder/CmdSetTagType.cs +++ b/BuildingCoder/CmdSetTagType.cs @@ -389,12 +389,9 @@ var builtInParam /// https://forums.autodesk.com/t5/revit-api-forum/tag-width-height-or-accurate-boundingbox-of-independenttag/m-p/11274095 /// public static Tuple GetTagExtents( - Document doc, IndependentTag tag) { - Debug.Assert( - tag.Document.GetProjectId().Equals(doc.GetProjectId()), - "expected same document"); + Document doc = tag.Document; //Dimension to return double tagWidth;