Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[CONNECT C++] How to get a ColorOverrideAction

$
0
0

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


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>