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

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

Explorer ,
Aug 07, 2014 Aug 07, 2014

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
510
Translate
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

Explorer , Aug 07, 2014 Aug 07, 2014

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

Translate
Mentor ,
Aug 07, 2014 Aug 07, 2014

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

Translate
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

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

Translate
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
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

Translate
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