Skip to main content
Toto RoToTO
Inspiring
October 15, 2009
Question

Pathfinder expand method.

  • October 15, 2009
  • 2 replies
  • 4548 views

Does anyone know where could i find the expand method correponding to function called when "Expand" button is click!

I have played with several method found in AIPathfinder.h or AIExpand.h, but without success.

If someone could gve a tip, it will be great.

Thanks,

Thomas.

This topic has been closed for replies.

2 replies

May 26, 2011

You could try AIPathfinderSuite::FlattenArt() function.

Toto RoToTO
Inspiring
October 15, 2009

*is clicked !

A. Patterson
Inspiring
October 15, 2009

I'm about 99.9% sure AIExpandSuite::Expand() is the method you want. We use it a fair bit in our stuff and it seems to work. What kind of results are you seeing?

Toto RoToTO
Inspiring
October 15, 2009

I've already tried this method, without success.

After creating compound shapes with pathfinder plugin (user action), i want

to expand this shapes to have only a single path. (with stroke and fill).

result  = sAIExpand->Expand(art, kExpandPluginArt,NULL);
aisdk::check_ai_error(result);

as a result, i've got a group with fill and stroke, which has a child (path), with no stroke and fill.

Use i this method in a wrong way?

or should i write a methode to convert this artwork tree to a single path.

I'm pretty sure, this could be completed using this method,

and i do not want to reinvent the wheel.......

thx.

Thomas.