In working with Display Rules, and drilling down through a existing Display Rule that I've created in a model. I get the vector of DisplayRuleActions, and iterate through it, I can determine the ActionId of each DisplayRuleAction, but how do I then get the specifics of a given ActionId? I cant seem to get from IDisplayRuleActionPtr to, for example, a ColorOverrideAction.
//! A collection of IDisplayRuleActionPtr DisplayRuleActionPtrVector displayRuleActions = displayRulePtr->GetActions(); for (DisplayRuleActionPtrVector::const_iterator it = displayRuleActions.begin(); it != displayRuleActions.end(); ++it) { // ! Current IDisplayActionRulePtr IDisplayRuleActionPtr thisActionPtr = *it; DisplayRuleActionId thisActionId = thisActionPtr->GetActionId(); if (thisActionId == DisplayRuleActionId::ColorOverride) { ColorOverrideAction colorAction = *thisActionPtr; // <- How to get a CololOverrideAction from IDisplayRuleAction ? } }
Thanks,
Bruce