How to retrieving global and local component names from AEC styles

How to retrieving global and local component names from AEC styles

tbrammer
Advisor Advisor
343 Views
0 Replies
Message 1 of 1

How to retrieving global and local component names from AEC styles

tbrammer
Advisor
Advisor

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


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
344 Views
0 Replies
Replies (0)