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

How do I "Remove Structure from Flow" in a Script

Explorer ,
Aug 07, 2014 Aug 07, 2014

Copy link to clipboard

Copied

I would like to emulate the "Remove Structure from Flow" in a Script - I have found "FCodes.KBD_REMOVE_STRUCT" but I think that is only used to examine a keystroke in a script.

TOPICS
Scripting

Views

500
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
Mentor ,
Aug 07, 2014 Aug 07, 2014

Copy link to clipboard

Copied

HI bobsteamer,

You need KBD_STRIP_FLOWSTRUCTURE, as in:

var fcodes = [FCodes.KBD_STRIP_FLOWSTRUCTURE];

Fcodes(fcodes);

It will make you manually confirm the operation, though, just like the GUI. I'm not sure if there is a way around that.

Russ

Votes

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 ,
Aug 07, 2014 Aug 07, 2014

Copy link to clipboard

Copied

Thanks Russ.

I found the answer in the FDK Function Reference (as a Newbie in JavaScript this is the first time I have looked at it)

Open FrameMaker in non-structured format.

Use Constants.FS_FileIsStructured /Constants.FV_StripStructureAndOpen  pair in the Open parameters.

This will strip the Structure before opening the file.

Bob

Votes

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
Mentor ,
Aug 07, 2014 Aug 07, 2014

Copy link to clipboard

Copied

LATEST

Hi Bob,

I thought that might work too, but I didn't know if using the unstructured interface was an option for you. I'm glad you got it worked out.

Russ

Votes

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