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

Sending graphics to back by scripting - without using Fcodes

Advocate ,
Apr 11, 2023 Apr 11, 2023

Copy link to clipboard

Copied

Dear fellow FrameMaker scripting geeks,

I am creating graphic objects (rectangles) in FrameMaker to make the content look 'boxed' without having to revert to 1-cell tables. My script is creating rectangles on the page with the right location and dimensions to make the content look boxed. So far, so good. But when I have a filled box, I need to push it to the back after creating it. And although I can do this for a single box using the Fcode for the GraphicsSendToBack command, this turns out to be very unreliable when I have a number of boxes in the same document.

Does anyone know an alternative method to make the new rectangles move to the back of the page so that the actual content becomes visible again after creating the boxes ?

Many thanks for any ideas you might have.

Jang

TOPICS
Scripting

Views

224

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

correct answers 1 Correct answer

Community Expert , Apr 11, 2023 Apr 11, 2023

Assuming that your rectangle is represented by a "graphic" variable, it is one of these two:

graphic.PrevGraphicInFrame = 0;

graphic.NextGraphicInFrame = 0;

I think it is the first one.

Votes

Translate

Translate
Community Expert ,
Apr 11, 2023 Apr 11, 2023

Copy link to clipboard

Copied

Assuming that your rectangle is represented by a "graphic" variable, it is one of these two:

graphic.PrevGraphicInFrame = 0;

graphic.NextGraphicInFrame = 0;

I think it is the first one.

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
Advocate ,
Apr 11, 2023 Apr 11, 2023

Copy link to clipboard

Copied

Doesn't that mess with the current lowest object on the page ? Or does Fm automatically adjust the current lowest one ?

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
Community Expert ,
Apr 11, 2023 Apr 11, 2023

Copy link to clipboard

Copied

It should behave like the fcode does and adjust the rest of them.

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
Advocate ,
Apr 11, 2023 Apr 11, 2023

Copy link to clipboard

Copied

LATEST

Tried it and it works. Thanks. If only all tricks were this easy 🙂

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