How to make guides using SDK methods?
Hi All,
I have a query. How can we make guides through SDK functions calls..? I was unable to find anything like it.. Please help.. There is no piece of code in the samples too..
Thanks! ![]()
Hi All,
I have a query. How can we make guides through SDK functions calls..? I was unable to find anything like it.. Please help.. There is no piece of code in the samples too..
Thanks! ![]()
Hi,
Of course, once you have created the path with sAIArt->New(...), nothing appears, you have to indicate the coordinates for each point of your future guide.
For an horizontal guide, you write something like
AIPathSegment S;
AIArtHandle MyPath;
error = sAIArt->NewArt( kPathArt, kPlaceAboveAll, nil, &MyPath);
//The guide will have two points.
error = sPath->SetPathSegmentCount(MyPath, 2);
//Position of the first point.
S.p.h=10;
S.p.v=120;
S.in=S.out=S.p;
error=sAIPath->SetPathSegments(MyPath, 0, 1, &S);
//Position of the second point.
S.p.h=800;
S.in=S.out=S.p;
error=sAIPath->SetPathSegments(MyPath, 1, 1, &S);
//The path will be a guide.
error = sAIPath->SetPathGuide(MyPath, true);
//This time, an horizontal guide will be created and will appear from (10 ; 120) to (800 ; 120).
JLG.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.