Skip to main content
Inspiring
August 7, 2014
Answered

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

  • August 7, 2014
  • 1 reply
  • 595 views

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.

This topic has been closed for replies.
Correct answer bobsteamer

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

1 reply

Legend
August 7, 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

bobsteamerAuthorCorrect answer
Inspiring
August 7, 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

Legend
August 7, 2014

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