Matthias B. wrote:
I'm trying to create a new AutoText via API, but it doesn't work. I've
copy'n'pasted the example from the Dev Guide and it throws a
RuntimeException (with no detail message) on the call to
XAutoTextGroup.insertNewByName(). I've tried creating an AutoText via
Basic, but it has the same problem. Below is my code. You need to
create a Bookmark "Test" for it to "work".

Can someone tell me what's the problem?

Hi,
the group name contains a path index separated by '*'. If this is not supplied then the first AutoText path is used to create the new group file. This file is usually placed in the share layer. If your share layer is not writeable insertNewByName() will fail. Use autoTextContainer.insertNewByName("TempGroup1*1") instead.

Regards

Oliver




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to