Hello,
How can i translate German to English Revit?
import clr
# Import DocumentManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
## CODE to check the language from REVIT ###
Revitlanguage = app.Language
languageENU=IN[0]
languageDEU=IN[1]
## CODE to check the language from REVIT ###
Revitlanguage = app.Language
if Revitlanguage == Autodesk.Revit.ApplicationServices.LanguageType.German:
result = languageENU
else:
result= "pass"
OUT=result
KR
Andreas
Hi @Draxl_Andreas - check out this thread for the use of Google Translate inside Dynamo to change languages
Dual language deliverable Can Dynamo help? - #4 by solamour
1 Like
It helps partly! i see already first translationerror like “sheets” in german are “Pläne” not “Blätter”!
“Mass” are “Körper” not “Masse”
that was the reason why i searched for direct translation in revit!
this is also important for BUILDINPARAMETERS … when i write a IFC they automaticly get the english version like “Außenbauteil” becomes “IsExternal” a.s.o.
is there no dicctionary in the background like {"sheets" : "Pläne", "Mass":"Körper","wall":Wände","railing":"Geländer"};
For BIP it would be more useful {"LoadBearing":"Tragendes Bauteil", "Length":"Länge","IsExternal":"Außenbauteil"};
1 Like
Can use the Google Translate, then follow with your own mapping for words that didn’t correctly change
?
1 Like