Change Property language on export (IFC)

Change Property language on export (IFC)

Anonymous
Not applicable
723 Views
1 Reply
Message 1 of 2

Change Property language on export (IFC)

Anonymous
Not applicable

Hello,

 

I am working on a BIM software witch will import data from Revit, we then analyse those data (mainly Revit properties) to provide synthetics information to the users. We import those data by an IFC file. 

 

The problem is that properties are translated depending on the language set on Revit UI, here is an example:

 

 

bim_vision_x64_2017-05-31_11-43-29.pngbim_vision_x64_2017-05-31_11-46-20.png

 

This quite problematic for accessing a specific data, we have to know the translation of each property name. I know you can get the actual language with that but I don't want to force the users to change its language settings. 

 

So I am wandering if there is a way to force the language of those properties during exportation with Revit API, or if there is a way to access the translation of those properties somewhere for automatic translation purposes.

 

Thanks in advance !

 

Gwendal Broudin

0 Likes
724 Views
1 Reply
Reply (1)
Message 2 of 2

Revitalizer
Advisor
Advisor

Hi,

 

there is a LabelUtils.GetLabelFor(BuiltInParameter) method.

You could iterate over each BuiltInParameter and get the related translations.

 

Starting Revit with a language parameter (ENU, DEU, etc.), you could do that for each language.

 

Having done this one time, you have all you need to create a translation table.

 

 

Revitalizer

P.S.: after doing so, please do not hesitate to share it on the forum 🙂




Rudolf Honke
Software Developer
Mensch und Maschine