Tagging floors from linked file

Tagging floors from linked file

Anonymous
Not applicable
1,440 Views
9 Replies
Message 1 of 10

Tagging floors from linked file

Anonymous
Not applicable

I would like to know, if it's possible to tag floors from linked file using Revit API 2015. It is possible through the Revit inreface. I'm using this method:

public IndependentTag NewTag(
    View dbview,
    Element elemToTag,
    bool addLeader,
    TagMode tagMode,
    TagOrientation tagOrientation,
    XYZ pnt
)

0 Likes
Accepted solutions (1)
1,441 Views
9 Replies
Replies (9)
Message 2 of 10

gopinath.taget
Alumni
Alumni

Hello,

 

Is this method not working? What is the error or exception you see?

 

Thanks

Gopinath

0 Likes
Message 3 of 10

Anonymous
Not applicable

This is the error I see:

 

External component has thrown an exception.

 

StackTrace:

   at getDefHeadPos(ADocument* , DBView* , Double* , Double* , HostOrLinkElementId* , ElementId , Double* , Boolean , TagPlacementOffsets* )
   at Autodesk.Revit.Creation.Document.NewTag(View dbview, Element elemToTag, Boolean addLeader, TagMode tagMode, TagOrientation tagOrientation, XYZ pnt)

   ...

 

It works perfectly for floors in the host project, but not for floors in Linked file.

If this method is working for tagging floors from Linked file, then I'm not doing it the right way. It is a good idea to mention it in the Revit API Help and show some example.

 

best regards

0 Likes
Message 4 of 10

gopinath.taget
Alumni
Alumni

Hello,

 

I have enquired with the revit engineering team about this. I will get back to you as soon as I hear something.

 

Thanks

Gopinath

0 Likes
Message 5 of 10

gopinath.taget
Alumni
Alumni
Accepted solution

Hello,

 

Unfortunately I do not have good news. right now, the API will not allow tagging if elements inside linked files. A change request has been logged for this. I will send you the details separately.

 

Cheers

Gopinath

0 Likes
Message 6 of 10

Anonymous
Not applicable

Hi Gopinath,

 

I have the similar requirement to tag the pipe in linked document. could you tell me the status of this change? whether there are some workaround to tag the element in linked document?

 

Thanks, 

Gavin

 

0 Likes
Message 7 of 10

harrymattison
Advocate
Advocate
Hi Autodesk,

Has any progress been made on allowing NewTag to work with elements in RVT links?
0 Likes
Message 8 of 10

1368026189
Enthusiast
Enthusiast

Hi Gopinath,

 

 is there any progress about this? 

 

Thanks, 

JerryZFC

Message 9 of 10

nabil.pol
Observer
Observer

Gents please any update ? even in revt API 2018.

 

 

 

thanks.

Message 10 of 10

kelvinroovers
Participant
Participant

FYI, since Revit 2018 you should use the IndependentTag.Create method to create a tag in a Revit project (www.revitapidocs.com/2018.1/1f622654-786a-b8fd-1f81-278698bacd5b.htm). This method makes use of an element reference, and hence also works for elements from linked projects.

0 Likes