Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help with mdlView_setSubstituteElemFunc function

67 views
Skip to first unread message

Carlos Vaz

unread,
Oct 16, 2013, 6:11:34 AM10/16/13
to
Hi,

I use the function mdlView_setFunction with the UPDATE_EACH_ELEMENT event in microstation v7, as follows:

...
mdlView_setFunction(UPDATE_EACH_ELEMENT,updateUm);
...

/*----------------------------------------------------------------------+
| updateUm
+----------------------------------------------------------------------*/
Private int updateUm
( /* <= Completion status */
MSElementUnion *euP, /* => elemento a desenhar */
int drawmode, /* => NORMALDRAW, ERASE, or HILITE */
void *windowP, /* => pointer to current window */
ExtraElementInfo *extraInfoP, /* => additional information */
int view, /* => view number to draw into */
int *priorityP,
MSElementDescr *edPa,
int allowDefer
)
{

if ( ...)
return (UPDATE_ELM_STATUS_CONTINUE);

return UPDATE_ELM_STATUS_BLOCK;
}


Please someone can indicate me an example (source code) of the function: mdlView_setSubstituteElemFunc, to migrate this code to microstation V8i


Thanks for any help
Carlos
0 new messages