第四步: 双击刚才加入的按钮进入C#代码编辑:
private void btnAI_Demo_Click(object sender
EventArgs e)
{
//代码区
}
在代码区内加入以下代码:
IllustratorApplication app = new IllustratorApplication();
IllustratorDocument doc = appDocumentsAdd(IllustratorAiDocumentColorSpaceaiDocumentCMYKColor );
IllustratorTextFrame textFrame = docTextFramesAdd();
object[] position = new object[] { };
textFramePosition = position;
textFrameContents = BrawDrawCom;
textFrameHeight = ;
textFrameWidth = docWidth;
textFrameCreateOutline();
appActiveDocumentClose(IllustratorAiSaveOptionsaiPromptToSaveChanges);
第五步: 按F进入调试出现窗体界面后点击测试AI编程按钮此时会出现两种情况
()在已开启Adobe Illustrator矢量绘图软件时会出现如下界面
[] [] []