How to retrieving global and local component names from AEC styles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm developing an ARX using OMF on plain AutoCAD (not Architecture).
To query the component names of door- and window-styles I use the OMF API:
AecDbDictRecord::getMaterialComponents(
AcGeIntArray& ids,
AecRmCStringArray& compNames,
AcDbObjectIdArray& materialIds
);
On German and English AutoCAD versions getMaterialComponents() returns different compNames for the same style in the same DWG:
compNames (doors) compNames (windows)
ids German English German English
1 Rahmen Frame Rahmen Frame
2 Türstock ? Fensterflügel ?
3 Füllung Panel Glas Glass
4 Glas Glass Sprossen ?
5 Sprossen ? - -
So obviously I get “localized UI-names” in compNames. Are there “local” and “global” names stored in the DWG?
How can I retrieve the “global” names? I have to make sure that I get the same names on every language version of AutoCAD.
Note: My test DWG also contains a wall style with additional components. For this style getMaterialComponents() returns the same (German) component names in both AutoCAD language versions. But here I get totally different values for ids:
ids German/English
101 Außen
103 Innen