cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API: localized values

API: localized values

 

Add the ability to read and change localized property values to the API.

 

There are many properties that are language specific (mainly the DisplayName property).
A good example would be the material and appearance assets.
Today, you can not change these localized properties at once: you must close Inventor and restart it with the language you want.

 

 

 

possible implementation:

 

 

Inventor.Application m_application = ...; // the current inventor application object
Inventor.Asset appearance = ...; // the inventor object for which the localized property shall be read / changed
string propertyName = "DisplayName"; // name of the property that shall be read / changed
string languageCode = "de"; // ISO 639-1 language code


// read localized text
string localizedText = m_application.LanguageTools.GetLocalizedValue(appearance, propertyName, languageCode);


// change localized text
m_application.LanguageTools.SetLocalizedValue(appearance, propertyName, languageCode, "Blabla");

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea