• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Global changes to Anchored Frames?

Enthusiast ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

Has anyone run across a plug-in or FrameScript that applies the same set of global properties to all anchored frames in a file or book?

I'm working on a legacy document and I need to change all anchored frames to have a 1 pt black rule, right align, have the same width, and be set to Below Current Line.
Bonus points for setting the graphic inside to 0/0 offset.

(ImpGraph does some of this for newly imported graphics, but this is applying changes to existing frames... more of a global S&R operation.)

Thanks,

Art

Views

2.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

Hi Art,

This is a really short script (without bonus points). Like this:

Local lvObj lvDoc(ActiveDoc) lvCount(0) lvColor;

Get Object DocObject(lvDoc) Type(Color) Name('Black') NewVar(lvColor);

Set lvObj = lvDoc.FirstGraphicInDoc;

Loop While(lvObj)

  If (lvObj.ObjectName = 'AFrame')

    Set lvCount = lvCount + 1;

    Set lvObj.Pen = FillBlack;

    Set lvObj.BorderWidth = 1; // metrics in pt

    Set lvObj.Color = lvColor;

    Set lvObj.Alignment = AlignRight;

    Set lvObj.AnchorType = AnchorBelow;

    Set lvObj.Width = 35mm;

  EndIf

  Set lvObj = lvObj.NextGraphicInDoc;
EndLoop

Display '# of changes: ' + lvCount;
Careful: Untested!
HTH,
- Michael

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 08, 2013 Jan 08, 2013

Copy link to clipboard

Copied

LATEST

Did anyone use this script with success? I need to re-align all the graphics in some docs to the left, but not make any other changes. I'm thinking I can use just the alignment command in this script to accomplish this.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines