2024-03-19 10:20 AM
2024-03-25 08:21 AM
Here is a sample code to access all property groups and properties. This will list user-defined properties (the ones you see in Property Manager) and also built-in properties (the ones you can use in schedules or in find and select).
void DumpAllProperties ()
{
GS::Array<API_PropertyGroup> groups;
ACAPI_Property_GetPropertyGroups (groups);
for (const API_PropertyGroup& group : groups) {
GS::Array<API_PropertyDefinition> definitions;
ACAPI_Property_GetPropertyDefinitions (group.guid, definitions);
for (const API_PropertyDefinition& definition : definitions) {
GS::UniString report = group.name + "\t" + definition.name + "\t" + APIGuidToString (definition.guid) + "\t" + (definition.canValueBeEditable ? "Editable" : "Read Only");
ACAPI_WriteReport (report, false);
}
}
}