Hi Community,

Using Aris Script API you can get the type of an object as a string by calling the Objdef.Type() method.

The trouble is , the type is returned  using the current  context selected language. You cannot specify a language for which you want the object type.

I'm hence looking for a way to specify a "language ID"  to get the object  type in the wanted language. 

Is there any workaround to get this done ? 

Our use cas is as follows  :  when a model is ready to be published, a script moves the reusable model objets under a group named after the object type - the script creates the group if the group does not exist.

We therefore have the following group  structure : 

  • Objects library
    • Application Systems Type
    • Cluster/Data Model
    • Role
    • and so on.

We need the group names to be set in multiple languages, and ideally when the script creates the group using the object type, it should create the group and then set the group names in all languages needed. 

The CreateChildGroup method supports the language parameter , but not ObjDef.Type() ...

 or register to reply.

Notify Moderator