Reference text component type is localized - LabelStyleReferenceTextComponent.ReferenceTextObjectType

Reference text component type is localized - LabelStyleReferenceTextComponent.ReferenceTextObjectType

michal_hcz
Enthusiast Enthusiast
200 Views
0 Replies
Message 1 of 1

Reference text component type is localized - LabelStyleReferenceTextComponent.ReferenceTextObjectType

michal_hcz
Enthusiast
Enthusiast

Hi,

Is there a way to compare the reference text component type for a SectionView projection label with the type of an entity? The reference text component type is localized, so the following code:
if (refTextComponent.General.ReferenceTextObjectType.Replace(" ", "") == ent.GetType().Name)

doesn't work.

 

Even using English names isn't reliable because, for example, TinSurface is translated as Surface...

 

I can't predict the names in other languages, so creating my own comparison table is impractical.

 

En types:

michal_hcz_1-1730971811662.png

 

Czech types:

michal_hcz_0-1730971715820.png

 

 

Autodesk Docs for ReferenceTextObjectType:

https://help.autodesk.com/view/CIV3D/2023/ENU/?guid=ec38e1b1-11b4-19af-5c0a-2287ad1fa4b0

 

Thank you

Michal

201 Views
0 Replies
Replies (0)