Tagging floors from linked file

Anonymous

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
Reply
Accepted solutions (1)
1,344 Views
9 Replies
Replies (9)

gopinath.taget
Alumni
Alumni

Hello,

 

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

 

Thanks

Gopinath

0 Likes

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

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

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

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

harrymattison
Advocate
Advocate
Hi Autodesk,

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

1368026189
Enthusiast
Enthusiast

Hi Gopinath,

 

 is there any progress about this? 

 

Thanks, 

JerryZFC

nabil.pol
Observer
Observer

Gents please any update ? even in revt API 2018.

 

 

 

thanks.

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