AdjustWidthAnchorsBeforePathEdit function is not working ........................?
Dear Friends,
I have to change the shape of artwork according to other one exactly .
For the same I already posted a quarries , but I didn't got any reply there .
I found a method AdjustWidthAnchorsBeforePathEdit in the AIBeautifulStrokesSuite .
Using code snippet I attached below , but it's seems to be not working .
AIArtStyleHandle style;
AIArtStyleSuite *sAIArtStyle;
PathEditDescription desc;
ai::int16 fixedPathLength;
error = sSPBasic->AcquireSuite(kAIArtStyleSuite, kAIArtStyleSuiteVersion, (void const**)&sAIArtStyle);
sAIPath->GetPathSegmentCount(list_of_vectorArt, &fixedPathLength);
sAIArtStyle->GetArtStyle(list_of_vectorArt, &style);
desc.editType = kTranslate1Anchor;
desc.segIndex = 0;
desc.newStyle = style;
desc.sourcePath = list_of_vectorArt;
error = sAIBlock->AllocateBlock(sizeof(AIPathSegment) * fixedPathLength, NULL, (void**)&desc.newAnchor);
error = sAIPath->GetPathSegments(desc.sourcePath, 0, fixedPathLength, &desc.newAnchor);
error = sAIBeautifulStrockSuite->AdjustWidthAnchorsBeforePathEdit(duplicate, desc);
Please assist me .
Regards
Kundan