Skip to main content
Participant
May 13, 2014
Question

Changing the definition art of a pattern

  • May 13, 2014
  • 0 replies
  • 278 views

I'm trying to add a circle to a existing pattern.

Using the following code I get an kBadParamErr.

sAIArt->NewArt( kGroupArt, kPlaceBelowAll, NULL, &patternArt );

sAIPattern->GetPatternArt(patternHandle, &patternArt);

sAIArt->ReorderArt(circleArt, kPlaceInsideOnBottom, patternArt);

sAIPattern->SetPatternArt(patternHandle, patternArt);

What am I doing wrong?
I also tried to reorder the patternArt into another GroupArt. I got an kUntouchableArtObjectErr on the patternArt.

Thanks in advance!

This topic has been closed for replies.