Skip to main content
Participant
November 18, 2022
Question

Unable to create new illustration, command cancelled

  • November 18, 2022
  • 2 replies
  • 921 views

When I call ai with jacob, I sometimes report this error. The Chinese meaning of the above popover is:

Unable to create new illustration, command cancelled.

I want to know under what circumstances will this popover appear,and how to avoid the popover,for help.

 

 

This topic has been closed for replies.

2 replies

Kurt Gold
Community Expert
Community Expert
November 18, 2022

Well, that just happens if one is calling AI with Jacob. Don't do that.

 

; -)

 

CarlosCanto
Community Expert
Community Expert
November 18, 2022

🤣🤣🤣

CarlosCanto
Community Expert
Community Expert
November 18, 2022

are you using a script? can you post your code?

Participant
November 22, 2022

This is my code:

 

ActiveXComponent  app = new ActiveXComponent("Illustrator.Application");
Dispatch docs = Dispatch.get(app, "Documents").toDispatch();
Dispatch doc = Dispatch.call(docs, "Add").toDispatch();

 And this is error info:

 

com.jacob.com.ComFailException: Invoke of: Add
Source: Adobe Illustrator
Description: an Illustrator error occurred: 129 ('')

at com.jacob.com.Dispatch.invokev(Native Method) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.invokev(Dispatch.java:625) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.callN(Dispatch.java:453) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.call(Dispatch.java:529) ~[Jacob-1.20.jar!/:na]

 

It happens on this line of code:

Dispatch doc = Dispatch.call(docs"Add").toDispatch();

And it happens occasionally.