Unlink to Imported Files Source

This forum is for all Flare issues related to importing files or projects.
Post Reply
JenniferR
Propeller Head
Posts: 76
Joined: Tue May 12, 2009 2:07 pm
Location: California's Central Valley

Unlink to Imported Files Source

Post by JenniferR »

Hi all,
I've got a TOC in my Flare project that is linked to the source files. I must have accidentally checked the "Link Generated Files To Source Files" checkbox when I imported from FM...

Can anyone tell me if there's a way to undo this without re-importing?

Thank you,
Jennifer

"Whenever you find yourself on the side of the majority, it is time to pause and reflect." -- Mark Twain
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Unlink to Imported Files Source

Post by wclass »

There is a way but only if you are happy to edit the code.

Open the TOC in the text editor. The second line should have a reference to the source file - remove that reference.
For example, in the following snippet of code, you would remove the sourceDocument=="C:\temp\test_Mar_2011.docx" bit - make sure you don't remove the greater than/less than symbols.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1" sourceDocument="C:\temp\test_Mar_2011.docx">
    <TocEntry Title="xxx ...
which should then read:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1">
    <TocEntry Title="xxx ...
Margaret Hassall - Melbourne
JenniferR
Propeller Head
Posts: 76
Joined: Tue May 12, 2009 2:07 pm
Location: California's Central Valley

Re: Unlink to Imported Files Source

Post by JenniferR »

Hi Margaret,
I'm not sure why I never got a notification that you responded to my post. Thank you for taking the time to post that response. I am not too afraid to make a simple change like that. :-)
Jennifer

"Whenever you find yourself on the side of the majority, it is time to pause and reflect." -- Mark Twain
parsonsv
Sr. Propeller Head
Posts: 110
Joined: Fri Mar 23, 2007 12:30 pm
Location: Calgary, Alberta

Re: Unlink to Imported Files Source

Post by parsonsv »

wclass wrote:There is a way but only if you are happy to edit the code.

Open the TOC in the text editor. The second line should have a reference to the source file - remove that reference.
For example, in the following snippet of code, you would remove the sourceDocument=="C:\temp\test_Mar_2011.docx"
THANK YOU! This answered my question today. A quick search and replace later, and I'm finished with the pesky linked documents that remained even though I'd deleted the Import file.

Thanks
Victoria Clarke
Lydia
Sr. Propeller Head
Posts: 373
Joined: Tue Apr 23, 2013 3:19 am
Location: The Netherlands, Amsterdam Area

Re: Unlink to Imported Files Source

Post by Lydia »

If you don't want to fiddle with the source, this should work as well:
In general, a way to unlink an item in Flare is to edit it. Once you try to edit a linked item, Flare will come up with a dialog giving you the options:
- Continue with operation
- Remove the link and continue with operation
- Remove the link and cancel the operation
The last option will remove the link, but not change your item.
For your TOC, you could shift an topic entry to a different place to force the dialog to appear.
Using Flare 10.2 and Flare 11 on Win 7
BrianBXYPRO
Propeller Head
Posts: 23
Joined: Tue May 03, 2016 12:04 pm
Location: Simi Valley, CA

Re: Unlink to Imported Files Source

Post by BrianBXYPRO »

wclass wrote:There is a way but only if you are happy to edit the code.

Open the TOC in the text editor. The second line should have a reference to the source file - remove that reference.
For example, in the following snippet of code, you would remove the sourceDocument=="C:\temp\test_Mar_2011.docx" bit - make sure you don't remove the greater than/less than symbols.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1" sourceDocument="C:\temp\test_Mar_2011.docx">
    <TocEntry Title="xxx ...
which should then read:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1">
    <TocEntry Title="xxx ...
This didn't work. :( I deleted the source files and edited that line but the link was still there.
Lydia wrote:If you don't want to fiddle with the source, this should work as well:
In general, a way to unlink an item in Flare is to edit it. Once you try to edit a linked item, Flare will come up with a dialog giving you the options:
- Continue with operation
- Remove the link and continue with operation
- Remove the link and cancel the operation
The last option will remove the link, but not change your item.
For your TOC, you could shift an topic entry to a different place to force the dialog to appear.
This is the only thing that's working. Unfortunately, I have dozens of files that need to be fixed.

Brian
Flare ( :flare: ) v12, Windows 10
Post Reply