How to Get M-Files Built-in Properties, Classes, Object Types?

I'd like to get the properties, classes, object types that are present when a fresh new vault is added. What I see now is some enum like - MFBuiltInPropertyDef, MFBuiltInObjectType, MFBuiltInObjectClass. But in the newly crated vault, apart from those enum ids we see some other stuffs. 

How to get those built-in stuffs of newly created vault?

Parents Reply
  • Aha.

    So some of those properties are created automatically when you create object types and the like.  So they are "built in" in that they are not something you are expected to change, but they are not built-in in that they're available in all vaults all of the time.

    An example may be something like "Owner (Assignment)".  The ID for the object type Assignment is built-in and in the enum, but that property is generated when the vault is created and could theoretically be different in different vaults.  As a result if you wanted to get the ID of this you would load the Assignment object type and then read the "OwnerPropertyDef" property to find the runtime ID for this property.

Children