Skip to main content
Inspiring
April 7, 2016
Question

How I will initialize the artboard of illustrator .................

  • April 7, 2016
  • 4 replies
  • 1619 views

I want to initialize  the illustrator cs5 artboart in vc++,after that I want to resize it accourding to bound boxof pattern size.

Please guide me step by step because I am new in this.

Regards

Kundan

This topic has been closed for replies.

4 replies

Inspiring
May 12, 2016

Thanks for reply.

I write a code for transform the selected art on artboard.

But this code  transform the all art on art board.

I have to transform only the selected art.

so Please assist.

Regards

Kundan

OP_Prepress
Inspiring
May 12, 2016

it would be good if you ask a new question in a new thread - i think.

and actually this question has been answered already in the forum - so please first search in the forum

look at GetSelectedArt function of the matchingArtSuite

with this you can get the selected arts handles

Inspiring
April 26, 2016

I already applied this header file.

Regards

Kundan

OP_Prepress
Inspiring
April 26, 2016

Have you added IAIArtboards.cpp to your Visual Studio Project?

Inspiring
May 2, 2016

I done that with your guideline .

Now I want to create a  rectangle on initialize artboard ,and that rectangle should be show on artboard

Please assist me.

Regards

Kundan

Inspiring
April 25, 2016

When I applied your code like this manner

I got this error

Please find this and assist me.

Regards

Kundan

OP_Prepress
Inspiring
April 26, 2016

You maybe forgot:

#include <AIArtboard.h>

#include <IAIArtboards.hpp>

OP_Prepress
Inspiring
April 21, 2016

sth like this should be working:

--------------------

ASErr   error = kNoErr;
    ai::ArtboardList   list;
    ai::ArtboardID   index;

  ai::ArtboardProperties    properties;

    AIRealRect  rect;
AIRealRect  newRect;

    error = sAIArtboard->GetArtboardList(list);

    error = sAIArtboard->GetActive(list, index);

    error = sAIArtboard->GetArtboardProperties(list, index, properties);

    error = sAIArtboard->GetPosition(properties, rect);

     //now change rect as you want f.ex.

     // unit is alwayspoints

     newRect.bottom    =  rect.bottom + 10;

     newRect.top  = rect.top + 10;

     newRect.left = rect.left

     newRect.right = rect.right

   

     error = sAIArtboard->SetPosition(properties, newRect);

    error = sAIArtboard->Update(list, index, properties);

--------------------

sorry for the ugly formatting - it's just copied from VS - i dont know why there are tables added

Cheers,

Patrick

Inspiring
April 22, 2016

Thank you OP_Prepress for reply,

I am trying to do it using this code , then I will confirm you

Thanks & Regards

Kundan