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

FDK Command for Remove Structure from Flow

Community Expert ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

Is there an FDK command for removing structure from a structured FrameMaker document? I don't want to use an fcode because of the warning message. If so, I am hoping that there is a corresponding ExtendScript command. Thanks.

TOPICS
Scripting , Structured

Views

1.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

correct answers 1 Correct answer

Mentor , May 05, 2020 May 05, 2020

Digging around in fapi.h for the FDK, I did find this which seems to work:

 

extern StatusT F_ApiStripFlowStructure FARGS((F_ObjHandleT docId,F_ObjHandleT flowId));

 

But I could not get it to work with ES. I tried the usual things:

 

flow.StripFlowStructure();

doc.StripFlowStructure(flow);

StripFlowStructure(doc, flow);

 

May not be implemented. That would be a disappointment.

 

Russ

Votes

Translate

Translate
Mentor ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

Hi Rick, it seems like there is a trick for this, but I can't remember exactly what it was. I do know that if you import the content as a text inset into an unstructured document, it will strip the structure. Possibly you could do it that way as a last resort... create the text inset in another doc, convert to text, then copy back over the original content.

 

Russ

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
Mentor ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

Digging around in fapi.h for the FDK, I did find this which seems to work:

 

extern StatusT F_ApiStripFlowStructure FARGS((F_ObjHandleT docId,F_ObjHandleT flowId));

 

But I could not get it to work with ES. I tried the usual things:

 

flow.StripFlowStructure();

doc.StripFlowStructure(flow);

StripFlowStructure(doc, flow);

 

May not be implemented. That would be a disappointment.

 

Russ

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 ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

Thank you Russ. I will check with Adobe and see if they can implement it with ExtendScript.

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
Contributor ,
Aug 31, 2020 Aug 31, 2020

Copy link to clipboard

Copied

Hi Rick,

 

You might have already found a solution but just in case! Have you checked out using Constants.FS_FileIsStructured with Constants.FV_StripStructureAndOpen in Open(fileName, openParams, openReturnParams)?

 

It appears to work!

 

Jon

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
New Here ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

LATEST

hi

 

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