Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Maxim-CADman77
195 Views, 2 Replies

Localization Issue (Model Browser displays non-existing names of solid bodies)

It was discovered that Inventor Model Browser displays inconsistent/unreal/localized names for Solid Bodies of MBP (Multi-Body-Part) unless you use the same Inventor localization that was used for model creation.
It is pretty obvious the localization issue yet I'm not sure if it is an issue of API or Inventor itself.

 

Details:
Recently I was playing around with one sample MBP 3Dmodel (see attachment to post - https://forums.autodesk.com/t5/inventor-i-promyshlennoe/interesnaya-zadacha-dlya-autodesk-inventor-i...) in English Inventor 2023.2 and .. exception happened when I tried to define particular solid body (SurfaceBody) using it's English name that was present in Model Browser (this was one of suggestions from @MjDeck  to workaround Exception 800004005 issue/defect see - https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/only-1-st-code-run-fails-with-unspec....

 

The model itself was probably created with Russian Inventor (2020) and body names printed out to logger from English or Italian are all Russian:

 

 

For Each oSB In ThisDoc.Document.ComponentDefinition.SurfaceBodies
	Logger.Info(oSB.Name)
Next

 

 

SolidBody-Names_(Inv2023-2_ITA).png

SolidBody-Names_(Inv2023-2_Eng).png

SolidBody-Names_(Inv2023-2_RUS).png

... so in all cases API only knows Russian names, and you'd probably get in troubles if you are coding some all-localization application to be used with MBPs, and need to input/output from/to user the body name!

 

I'm posting it here in order someone from Autodesk Inventor (API) DEVs confirm that this is an issue/defect and sound out the plans to fix it.

Please vote for Inventor-Idea Text Search within Option Names

The issue is reproducible with new part created with Inventor 2023.2 Italian and open in either English or Russian:

MaximAUdod_1-1672936735569.png

 

MaximAUdod_0-1672936652496.png

 

Please vote for Inventor-Idea Text Search within Option Names

MjDeck
in reply to: Maxim-CADman77

Hi Maxim,

I agree it is a problem. The API sees the original names, but the browser shows the names based on the current language. Note that this only happens for default (system-generated) names. If you rename the solids, then the new names will show the same in all languages.


You said "define particular solid body (SurfaceBody) using its English name". I think you mean "access" or "find" instead of "define", right? You're trying to find a body by name?
The workaround would be: instead of using the names from the browser, list out the names using the API. Then use those names in your code. 


Mike Deck
Software Developer
Autodesk, Inc.