hi,
Is there any function in sdk which can move our art(AIArtHandle) from one place to other specific place in same document?
plz give me any suggestion or way to do so.
thanks
Hi,
When I have a Bezier curve (MyArt) and I want to move (translate) this curve, I use something like this
AIErr error=kNoErr; AIRealMatrix Matrix; AIArtHandle MyArt; AIRealPoint MyTranslation; //Horizontal and vertical values for the translation. MyTranslation.h=100; MyTranlation.v=50; //Create the matrix using AIRealMatrixSetTranslate from AIRealMath.h. sMath->AIRealMatrixSetTranslate(&Msatrix, MyTranslation.h, MyTranslation.v); //Apply MyTranslation to MyArt to move MyArt. TransformArt is from AITransformArt.h. error=sAITransformArt->TransformArt(MyArt, &Matrix, 0, kTransformObjects);
With AIRealMath.h, it's possible to use rotations and scales.
Good luck,
JLG.
North America
Europe, Middle East and Africa
Asia Pacific