Message 1 of 1
Reference text component type is localized - LabelStyleReferenceTextComponent.ReferenceTextObjectType
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
Czech types:
Autodesk Docs for ReferenceTextObjectType:
https://help.autodesk.com/view/CIV3D/2023/ENU/?guid=ec38e1b1-11b4-19af-5c0a-2287ad1fa4b0
Thank you
Michal