associative patterning with different color, style, weight

I make an associative patterning in XM. That works.

Now I want to have the patterning a different color, syle and weight then the boundary. I tried the code below, but it does not work. Any hints?

John Schippers

 

paramsPattern.angle1 = ........;
paramsPattern.space1 = .......;
paramsPattern.space2 = .......;
paramsPattern.scale = ..........;
paramsPattern.weight = symb.weight;
paramsPattern.color = symb.color;
paramsPattern.style = symb.style;

paramsPattern.modifiers |= PATMOD_COLOR;
paramsPattern.modifiers |= PATMOD_STYLE;
paramsPattern.modifiers |= PATMOD_WEIGHT;
paramsPattern.modifiers |= PATMOD_ANGLE1;
paramsPattern.modifiers |= PATMOD_SPACE1;
paramsPattern.modifiers |= PATMOD_SPACE2;
paramsPattern.modifiers |= PATMOD_SCALE;
paramsPattern.modifiers |= PATMOD_CELL;

patternOption = PATTERN_AREA;

status = mdlPattern_addAssociative (&pEd, -1, -1, &paramsPattern, &dataPoint, NULL, patternOption, ACTIVEMODEL);
filePos = mdlElmdscr_rewrite (pEd, NULL, filePos);