<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Having a problem creating room tags from Linked model in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8933619#M44356</link>
    <description>&lt;P&gt;After writing and running a macro with the same purpose, I'm finding that the Room Tags are being placed but are not appearing in the view. I'm only able to discern that they're being created because I can select them by ID and then snoop them using RevitLookup. Comparing what I see there to a manually placed tag, I noticed discrepancies between values for the "IsTaggingLink" and "TagText" parameters. For the room tags created by the macro, the "IsTaggingLink" parameter is set to false (whereas for manually placed ones, it's set to true) and the "TagText" parameter is blank (whereas for the manually placed tags, it contains a string representation of the room number and room name). Does this happen to match what others have seen when using the NewRoomTag function? Suggested fixes are greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 21:14:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-26T21:14:14Z</dc:date>
    <item>
      <title>Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8581217#M44352</link>
      <description>&lt;P&gt;Hi all! Thanks in advance for any help you can provide as I'm stuck on getting the tags to show. I've got this working in Dynamo and I'm not sure why I'm having an issue here in c#:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  [Transaction(TransactionMode.Manual)]
    public class Command : IExternalCommand
    {
        //private IList&amp;lt;ElementId&amp;gt; roomids = new IList(ElementId);

        public List&amp;lt;ElementId&amp;gt; roomids = new List&amp;lt;ElementId&amp;gt;();
        //public List&amp;lt;LinkElementId&amp;gt; roomLids = new List&amp;lt;LinkElementId&amp;gt;();
        public ElementId linkDocId = new ElementId(BuiltInCategory.OST_RvtLinks);
        //public FamilySymbol tagType = new FamilySymbol();

        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            UIDocument uidoc = uiapp.ActiveUIDocument;
            Application app = uiapp.Application;
            Document doc = uidoc.Document;

            Transaction trans = new Transaction(doc);
            trans.Start("Create Room Tags");

            Document linkDoc = GetLinkRoomElementIds(uiapp, doc);
            TaskDialog.Show("ROOM COUNT", roomids.Count().ToString());
            View v = doc.ActiveView as View;

            //CreateRoomTags(linkDoc, v);
            CreateRoomTags(linkDoc, doc, v);
            doc.Regenerate();
            trans.Commit();
            return Result.Succeeded;
        }

        private void CreateRoomTags(Document link, Document doc, View v)
        {
            for (int i = 0; i &amp;lt; roomids.Count; i++)
            {
                ElementId roomid = roomids[i];
                LinkElementId roomLids = new LinkElementId(roomid);
                Element e = link.GetElement(roomid);
                Room r = e as Room;
                
                if (r != null)
                {
                    XYZ cen = GetRoomCenter(r);
                    if (cen != null)
                    {
                        UV center = new UV(cen.X, cen.Y);
                        var roomTag = doc.Create.NewRoomTag(roomLids,
                            center,
                            v.Id);
                        
                        roomTag.ChangeTypeId(MSARoomTagID(roomTag, doc));
                        
                    }
                    else i++;
                }
                else i++;
                
                //RoomTag roomTag = doc.Create.NewRoomTag(new LinkElementId(linkDocId, roomid),
                //    center,
                //    v.Id);
                //roomTag.RoomTagType(tagType);

            }
        }
        public ElementId MSARoomTagID(RoomTag tag, Document doc)
        {
            string newTagTypeName = "Room Tag";
            string newTagFamilyName = "MSA-G-Room Tag";
            ElementId newTagTypeId = null;
            foreach (ElementId id in tag.GetValidTypes())
            {
                RoomTagType type = doc.GetElement(id) as RoomTagType;
                if (type.Name.Equals(newTagTypeName) &amp;amp;&amp;amp;
                    type.FamilyName.Equals(newTagFamilyName))
                {
                    newTagTypeId = id;
                    return newTagTypeId;
                }
            }
            return null;
        }

        public XYZ GetRoomCenter(Room room)
        {
            // Get the room center point.
            XYZ boundCenter = GetElementCenter(room);
            if (boundCenter != null)
            {
                LocationPoint locPt = (LocationPoint)room.Location;
                XYZ roomCenter = new XYZ(boundCenter.X, boundCenter.Y, locPt.Point.Z);
                return roomCenter;
            }
            return null;
        }
        public XYZ GetElementCenter(Element elem)
        {
            if (elem != null)
            {
                BoundingBoxXYZ bounding = elem.get_BoundingBox(null);
                try
                {
                    XYZ center = (bounding.Max + bounding.Min) * 0.5;
                    return center;
                }
                catch (Exception)
                {
                    return null;
                }
            }
            else return null;
        }
        public Document GetLinkRoomElementIds(UIApplication uiapp, Document doc)
        {
            FilteredElementCollector links = new FilteredElementCollector(doc);
            IList&amp;lt;Element&amp;gt; linkElems = links.OfCategory(BuiltInCategory.OST_RvtLinks).OfClass(typeof(RevitLinkType)).ToElements();

            for (int i = 0; i &amp;lt; linkElems.Count; i++)
            {
                Element e = linkElems[i];
                RevitLinkType linkType = e as RevitLinkType;
                String linkName = String.Concat(linkType.Name.Reverse().Skip(4).Reverse());

                foreach (Document linkedDoc in uiapp.Application.Documents)
                {
                    if (linkedDoc.Title.Equals(linkName))
                    {
                        linkDocId = e.Id;
                        FilteredElementCollector collLinked = new FilteredElementCollector(linkedDoc);
                        IList&amp;lt;Element&amp;gt; linkedRooms = collLinked
                            .OfClass(typeof(SpatialElement)).ToElements();
                        if (linkedRooms != null)
                        {
                            foreach (Element l in linkedRooms)
                            {
                                roomids.Add(l.Id);
                            }
                        }
                        return linkedDoc;
                    }
                }
            }

            return null;

        }       
    }&lt;/PRE&gt;
&lt;P&gt;I'm sure Im missing something obvious here, thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 21:04:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8581217#M44352</guid>
      <dc:creator>sgermanoZ2Y2F</dc:creator>
      <dc:date>2019-02-07T21:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8581855#M44353</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;Can you help to share more details about the problem you mentioned? it's exception or creation failure?&lt;/P&gt;
&lt;P&gt;Besides, can you share your&amp;nbsp;&lt;SPAN&gt;reproducible&lt;/SPAN&gt; sample .rvt model because your code use hardcode to find the room tag type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 05:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8581855#M44353</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2019-02-08T05:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8588815#M44354</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply. I have provided a link to download a test model with associated links for you to review.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://drive.google.com/file/d/18eIxP45A4qhn7A-IvUy91hbjbAw8pm3y/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/18eIxP45A4qhn7A-IvUy91hbjbAw8pm3y/view?usp=sharing&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Its a simple arch model, and the hard coded tag is already loaded in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In regards to the exception, I'm not sure as I'm not getting an exception. which is why I was thinking it is a transaction issue or a regen issue, but I have played with that also with no success.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 01:19:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8588815#M44354</guid>
      <dc:creator>sgermanoZ2Y2F</dc:creator>
      <dc:date>2019-02-12T01:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8718880#M44355</link>
      <description>&lt;P&gt;Hi Jia - Any feedback on this? Im just circling back around to this app. Could there be a bug in tagging linked rooms via the api perhaps?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 21:36:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8718880#M44355</guid>
      <dc:creator>sgermanoZ2Y2F</dc:creator>
      <dc:date>2019-04-09T21:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8933619#M44356</link>
      <description>&lt;P&gt;After writing and running a macro with the same purpose, I'm finding that the Room Tags are being placed but are not appearing in the view. I'm only able to discern that they're being created because I can select them by ID and then snoop them using RevitLookup. Comparing what I see there to a manually placed tag, I noticed discrepancies between values for the "IsTaggingLink" and "TagText" parameters. For the room tags created by the macro, the "IsTaggingLink" parameter is set to false (whereas for manually placed ones, it's set to true) and the "TagText" parameter is blank (whereas for the manually placed tags, it contains a string representation of the room number and room name). Does this happen to match what others have seen when using the NewRoomTag function? Suggested fixes are greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 21:14:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/8933619#M44356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-26T21:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/9017609#M44357</link>
      <description>&lt;P&gt;I did end up getting this to work and also solved the main bug with transform locations being different between the Link and its location in current model. That is why the tags were being created correctly and not throwing an error in the API, they just were not being located in correct location per view thus not appearing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some code on the transform location I used, hope it helps:&lt;/P&gt;&lt;PRE&gt;private void CreateRoomTags(Document link, Document doc, View v, XYZ transform)
        {
            for (int i = 0; i &amp;lt; roomids.Count; i++)
            {
                ElementId roomid = roomids[i];
                Element e = link.GetElement(roomid);
                Room r = e as Room;


                if (r != null)
                {
                    LocationPoint cen = r.Location as LocationPoint;

                    if (cen != null)
                    {
                        UV center = new UV((cen.Point.X + transform.X), (cen.Point.Y + transform.Y));


                        try
                        {

                            RoomTag roomTag = doc.Create.NewRoomTag(new LinkElementId(linkDocId, roomid),
                                center,
                                v.Id);
                         

                        }
                        catch (Exception exception)
                        {
                            Console.WriteLine(exception);
                            throw;
                        }

                    }
                    else i++;
                }
                else i++;
               
            }&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Sep 2019 21:03:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/9017609#M44357</guid>
      <dc:creator>sgermanoZ2Y2F</dc:creator>
      <dc:date>2019-09-10T21:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/9018107#M44358</link>
      <description>&lt;P&gt;Congratulations on solving this, and thank you very much for sharing the solution!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 05:39:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/9018107#M44358</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-09-11T05:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/11583307#M44359</link>
      <description>&lt;P&gt;In your CreateRoomTags function, what are you inputting as your XYZ transform?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RevitLinkInstance.GetTotalTransform().Origin?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 19:20:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/11583307#M44359</guid>
      <dc:creator>rvtquestions</dc:creator>
      <dc:date>2022-11-28T19:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/11607566#M44360</link>
      <description>&lt;P&gt;I dont have that codebase anymore, but yes I believe that is how I got the global transform.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 19:48:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/11607566#M44360</guid>
      <dc:creator>Stephen.J.Germano</dc:creator>
      <dc:date>2022-12-08T19:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12001590#M44361</link>
      <description>&lt;P&gt;Many thanks to your solution. It helps me a lot.&lt;BR /&gt;&lt;BR /&gt;In this code snippet below I show a variation of your code that works too.&lt;BR /&gt;&lt;BR /&gt;I would like to highlight the LinkElementId attribution on line 288&lt;BR /&gt;&lt;BR /&gt;&lt;!--  StartFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="onBIMConsulting_0-1685544495518.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1221758i9DAFFFCCF699640D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="onBIMConsulting_0-1685544495518.png" alt="onBIMConsulting_0-1685544495518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:48:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12001590#M44361</guid>
      <dc:creator>onBIM-Consulting</dc:creator>
      <dc:date>2023-05-31T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12874059#M44362</link>
      <description>&lt;P&gt;"the "IsTaggingLink" parameter is set to false (whereas for manually placed ones, it's set to true) and the "TagText" parameter is blank (whereas for the manually placed tags, it contains a string representation of the room number and room name)."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I had this exact same problem, but I think I figured out why IsTaggingLink returns false. If you create a room tag by passing in the ElementId of a linked room, IsTaggingLink will be set to false:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;room_tag = doc.Create.NewRoomTag(room.Id, room_location_uv, view.Id)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;What you need to do if tagging a linked room is pass in the LinkElementId:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;room_tag = doc.Create.NewRoomTag(LinkElementId(link_instance.Id, room.Id), room_location_uv, view.Id)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Now, IsTaggingLink returns True, but my problem is that room_tag.Room returns Null. This is strange because room_tag.IsInRoom is returning True.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I don't think this issue is the link transform, because I am handling that in my code. The tags are created in the workset of the correct view, but still the tags don't show. I have even accomplished API creation of RoomTags elsewhere in the code and the tags show up at the correct location there.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To reiterate: Does anybody know what could cause the Room property to return null even when a RoomTag is successfully created?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 15:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12874059#M44362</guid>
      <dc:creator>frankloftus</dc:creator>
      <dc:date>2024-07-02T15:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12874507#M44363</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6211588"&gt;@frankloftus&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the documentation: &lt;A href="https://www.revitapidocs.com/2024/d6156ddf-27d5-5311-0887-5d8a326e9e99.htm" target="_blank" rel="noopener"&gt;Room Property&lt;/A&gt; " Remarks&lt;BR /&gt;In rare cases, the tag may not be associated to a room. The property will be a null reference ( Nothing in Visual Basic) in these situations."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also see these: &lt;A href="https://www.revitapidocs.com/2024/e6144145-8ac1-5b96-f006-717103038e7c.htm" target="_blank" rel="noopener"&gt;TaggedLocalRoomId Property&lt;/A&gt;&amp;nbsp; and for rooms in linked model: &lt;A href="https://www.revitapidocs.com/2024/05449236-668c-3eff-9bf6-33b71b561185.htm" target="_blank" rel="noopener"&gt;TaggedRoomId Property&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the last one will return a Id for the room in the linked model?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 19:11:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12874507#M44363</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2024-07-02T19:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12876270#M44364</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3633270"&gt;@TripleM-Dev.net&lt;/a&gt;, thank you for responding. I have verified that upon RoomTag creation, the TaggedRoomId is not null. TaggedLocalRoomId is null, as expected when tagging linked rooms. The tag is successfully added to the database, which I know because it is selectable by Id. The newly created tag's Location is also exactly what I set it to upon creation, yet it does not show in the view, even when uncropped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the documentation states, "In rare cases, the tag may not be associated to a room. The property will be &lt;SPAN class=""&gt;a null reference". I guess I just really need to know what "rare cases" means, and I need to avoid them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12876270#M44364</guid>
      <dc:creator>frankloftus</dc:creator>
      <dc:date>2024-07-03T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12876603#M44365</link>
      <description>&lt;P&gt;On of the "Rare" cases would be when a room in a link is tagged and that room is later deleted.&lt;/P&gt;&lt;P&gt;Then the room prop and the id would be nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But to the issue of creating/visible making of the tag:&lt;/P&gt;&lt;P&gt;- Is it possible the linked model origin doesn't match the current model, so the room centerpoint (for placing the tag) needs a transform (inverted to the link transform) ?&lt;/P&gt;&lt;P&gt;- Tag the room of the link in the UI and the same one in the API, and compare the differences with Revit Lookup (UV coordinates, view ref., location point etc..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 16:26:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12876603#M44365</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2024-07-03T16:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12876784#M44366</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3633270"&gt;@TripleM-Dev.net&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found my problem. A non-existent LinkElementId for the linked room was being passed in during RoomTag creation. (Specifically, I was passing the incorrect link Id when creating the LinkElementId). This was a result of messy indentation in my function. Totally my fault!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, if you create a non-existent LinkElementId and pass it in to create a RoomTag, no error will be thrown. The RoomTag will simply be added to the database without a room to tag. Thus, it is created in the view's workset, but not visible in any view.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 18:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/12876784#M44366</guid>
      <dc:creator>frankloftus</dc:creator>
      <dc:date>2024-07-03T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Having a problem creating room tags from Linked model</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/13869550#M84845</link>
      <description>&lt;P&gt;That was very helpful. Spent hours working on this until I tried this and really helped solved my issue.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 09:17:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/having-a-problem-creating-room-tags-from-linked-model/m-p/13869550#M84845</guid>
      <dc:creator>NonicaTeam</dc:creator>
      <dc:date>2025-10-28T09:17:14Z</dc:date>
    </item>
  </channel>
</rss>

