insert inset in anchored frame
I cannot find the info on how to insert an Inset into an existing AFrame using ExtendScript. Does anyone have experience with this?
Thanks
Jang
I cannot find the info on how to insert an Inset into an existing AFrame using ExtendScript. Does anyone have experience with this?
Thanks
Jang
Hi Russ,
Simple, indeed, and the TextLoc parameter is confusing. If you post your reply to the forum I can award 10 points for the correct answer - and others will be able to see the answer, too. You replied by a message, so I cannot see the replies on the forum.
Ciao
Jang
Hi Jang,
Here is the solution summed up.
To insert a new inset (that is, a new referenced graphic) into an anchored frame, you need to:
- Deselect all graphic objects in the document, then select just the anchored frame (set frame.GraphicIsSelected=true, all other graphics to false).
- Use doc.Import() in a standard manner, except don't worry about a valid textLocP parameter. Just specify doc.TextRange.beg or null.
The result will be a new referenced graphic as a child of the anchored frame. Note that this methodology follows the GUI-based procedure.
Russ
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.