DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
333 stars 186 forks source link

ToDSType() method fails to convert IndependentTag created from linked element #2943

Open ricardyn opened 1 year ago

ricardyn commented 1 year ago

If this issue is with Dynamo for Revit, please post your issue on the Dynamo for Revit Issues page.

If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.

Dynamo version

2.12

Operating system

Windows 11

What did you do?

Trying to use ToDSType() method to convert Autodesk.Revit.DB.IndepentTag to Revit.Element.Tag

What did you expect to see?

IndepentTag converted

What did you see instead?

An exception thrown as shown in image below image

I figured it out that this Exception was thrown because my IndependentTag was created from a linked Element. In this specific case the property TagText, that you guys trying to get, throws an Exception as showed in RevitAPIDocs. image

I don't know if that was fixed in newer Dynamo versions, but if don't, I will appreciate if you guys fix that.

Thank you very much.

Amoursol commented 11 months ago

FYI @Mikhinja

avidit commented 11 months ago

tracked internally DYN-6181