After separate or unscrew the last block of text, it still points to the old story

Hello

I used "kTextUnlinkCmdBoss" to separate the last block of text on the wire, however, once the order is processed, if I have access to the textModel of the box following it still points to the old model:

InterfacePtr<IGeometry> srcgeometry (srcbox,UseDefaultIID());

If(srcgeometry ==NULL) break;

InterfacePtr<IMultiColumnTextFrame> srctextframe(srcbox. ) GetDataBase (), Utils<IFrameUtils>-> ()GetTextFrameUID(srcgeometry), UseDefaultIID());

If(srctextframe ==NULL) break;

Srctextmodel InterfacePtr<ITextModel> (srctextframe->QueryTextModel());

If(srctextmodel ==NULL) break;

Is it possible to force a refresh the news of textModel in relation to the text block? Of course, if I checked the textModel later, he is properly affected by a new, it's just problem of info is not refreshed on the same running cycle.
Thank you
ADI

Hi Adam, Hi Dirk,

what works for me using kTextLinkCmdBoss on the precceeding box.

InterfacePtr iTextLinkCmd (CmdUtils::CreateCommand (kTextLinkCmdBoss));

UIDList uidList (iDataBase);

uidList.Append (mcTextFrameUID_preceeding);

uidList.Append (mcTextFrameUID_preceeding);

iTextLinkCmd-> SetItemList (uidList);

CmdUtils::ProcessCommand (textLinkCmd);

Best,

Peter

Tags: InDesign

Similar Questions

  • Mail will not work after Migration Wizard from the old to the new iMac

    A Migration Wizard transfer everything what a processor Intel Core Duo 2007 19 "an i5 2012 27" iMac iMac.  Everything worked fine EXCEPT Mail.  She appeared a dialog box for each account of email asking for passwords. When passwords were seized said each was wrong or does not match.  It still works fine on the old iMac with the same entered password and turned down on the i5. Why is this and how can it be solved?  The old iMac has been sold, so I have TO get the i5 27 "of work. Any ideas or help that can be given is appreciated.

    Try this... In Messaging menu, choose Preferences > accounts > "enable this account" (top) and don't forget he is checked, if it is uncheck and save.

  • I need help activating CS6 after transfer, I disabled the old computer but CS6 reactivate on new computer

    I followed the instructions online and disable CS6 on the old computer. But when I tried to activate CS6 on the new computer the Activate button is not available. I have all my licenses. How to use computer on the new CS6?

    have you installed cs6 in your new computer by using the installation files?

    If so, you enter your serial number when prompted during installation?

    If so, your cs6 is probably already enabled.  You can confirm by opening a program > click Help > and confirm activate is not clickable, but disable is clickable.

  • Recover the old story

    Recently I had to rename my Skype "Old Skype" folder and delete the folder DbTemp. Now, I'm trying to load to the top of the history of my old cat.

    I see the instructions here https://support.skype.com/en/faq/FA392/how-do-i-manage-my-conversation-history-in-skype-for-windows-... but for step 4, I do not see the ' Find ' filemain database in the folder (it will be called main or main.db), copy it and save it on an external media device "under my Skype account name.

    I don't see a master file or a main.db.

    I did not remove the old Skype and former Skype once again the files that I had to rename when I deleted the file dbtemp in the past.

    Does anyone know how to recover all of my history of conversation?

    Thank you.

    cvcvsefdfsd wrote:

    Sorry don't know how to post a.

    But these are the files under old Skype and my user name:

    chatsync

    Ecache

    httpfe

    newspapers

    Media

    media_messaging

    mmanager

    photos

    qikdb

    Parameters

    simcache

    ThManager

    voicemail

    bistats

    bistats.DB - journal

    bistats. Lock

    config.lck

    config

    DC

    eascache

    eascache.DB - journal

    eascache. Lock

    keyVal

    keval.DB - journal

    keyVal.Lock

    main

    main.DB - journal

    hand. Lock

    MSN

    MSN.db - journal

    The file in red is the main.db database file. This file appears as the main because the .db extension is not shown.

  • new windows are open in mozilla firefox after you have reinstalled the old version. the new windows are annoying me because they are shaadi. com please help me

    I have reset my mozilla firefox. as I was in trouble, watch videos before you reset it, I downloaded mozilla but it had the same problem, so I reset it. the problem is after this new windos open in my default browser as shaadi.com etc... They annoy me a lot

     please help to stop those windows from popping
    

    Hello, this looks like a problem maybe caused by adware on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (toolbars, the things that you have not installed intentionally, I don't know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

  • You need to install MS Office Pro 2007 on new computer after motherboard crashed on the old computer.

    I have a license for MS Office Pro 2007 (US only) (OEM) that came with a new Dell laptop.  The motherboard on the computer crashed and I bought a new computer (Dell no).  Of course, I can't uninstall Office from your old computer.  Can I use my existing license to install/activate the Office on my new computer.  The new computer has the trial version which allows 25 uses.  My product key does not work because it has not been uninstalled or disabled (I guess).

    Your product key does not work because you can not use it to "move" from an edition of the trial and because it has already been used (on the other system).  You must do it manually and I do not know the manual process for Office products.  As an OEM license, I do not think it can be moved to another machine - but if this applies to operating systems, I am not sure that it applies to the Office products (I've never had this issue before).  It may be perfectly fine once you uninstall the trial and download the appropriate version of Microsoft.  You need to ask the experts.

    Please repost your question in the Forums Office: http://social.answers.microsoft.com/Forums/en-US/officeinstall/threads where specialists in office wil be more than happy to answer your question.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Difficult to re - install Acrobat Pro XI on the new computer after disabling it on the old.

    I got XI of Acrobat Pro installed on a desktop running Windows 7.  Everything was fine, until I got a new desktop computer, faster (still under Windows 7) so I disabled Acrobat on my old computer, downloaded and installed the same version (Pro XI) on my new computer with the same serial number, and now it does not work.  I get a dialog box titled "serial number Upgrade.  Under the title it says ' serial number you provided is valid, but calling it a product was not found on this computer.

    Below that, it tells me to choose one of the following products in a drop-down menu, but Acrobat Pro XI is not one of the selections!

    Antlersrob he asks serial number previous version of Acrobat that you upgraded.  You can find your serial number registered under your account at http://www.adobe.com/.  You will find more details in your serial number to find fast - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • Adding pages and blocks of text to emulate the behavior of "Smart Text Reflow"

    I create a large number of tables in a document.  If I'm Smart Text reflow on, my script is malfunctioning.  I have the start of treatment:

    1. Add a new table

    2. If the last block of text of page overflowing and then add a new page

    With smartTextReflow off, I want to assure that the executives of new blocks of text which corresponding to the main text of the page master.  It must be able to manage to get the settings from the page of left/right text block.

    I have solved my problem.  I was overthinking things!

    Given that I have selected blocks of text on master pages as the main text blocks, when you create a new page, a block of text is automatically created. So the problem is then simply connect the block preceding text for the text block that was created when the page is added.

    TableAutomation.prototype.AddPage = function() {
         var previousTextFrame = app.activeDocument.pages[-2].textFrames[0];
         var np = app.activeDocument.pages.add();
         var textFrame = np.textFrames[0];
         previousTextFrame.nextTextFrame = textFrame;
    };
    

    The cost of the above code was about 5 hours of banging my head against the wall

  • Please provide the script story Splitter by Adi Ravid?

    Hello

    I'm working on a book complex and need to separate stories threaded in many places. I know that I can do it manually via the editor of history but have really set my eyes on the script to split history created by Adi Ravid. I found its place @ the Adobe Exchange website (http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail & loc = en_us & extid = 1302 # 518), but get an error "sorry, we have encountered an error while processing your request." - also when pressing on ' author Email: Adi Ravid.

    So, someone who has the script, please report it here could?

    Thank you very much in advance

    /*

    ------------------------------------------------------------------------------------------ ------------------------

    StorySplitter

    ------------------------------------------------------------------------------------------ ------------------------

    A JavaScript InDesign CS/CS2/CS3 by FourAces

    On the final 2006 touch

    Version 3.0.0

    Divides history chosen to separate blocks of text, while maintaining their content.

    ------------------------------------------------------------------------------------------ ------------------------

    */

    var myScriptVer = "3.0"

    If (app.documents.length! = 0) {}

    mySelection var = app.activeDocument.selection;

    If (mySelection.length! = 0) {}

    myObjectType = mySelection [0].constructor.name;

    If (myObjectType == "TextFrame") {}

    The dialog box Interface

    myDialog = app.dialogs.add var ({name: 'History Splitter v' + myScriptVer});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    with (dialogRows.add ()) {}

    {with (borderPanels.Add ())}

    var mySplitOptions = radiobuttonGroups.add ();

    {with (mySplitOptions)}

    radiobuttonControls.add ({staticLabel: "Split all frames", checkedState:true});})

    radiobuttonControls.add ({staticLabel: "Scinder front Selected Frame"});

    radiobuttonControls.add ({staticLabel: "Scinder after Selected Frame"});

    }

    }

    }

    with (dialogRows.add ()) {}

    staticTexts.add ({staticLabel: "© The Final Touch"});

    }

    }

    }

    Ditto var = myDialog.show({name:"SplitOptions"});)

    if(myResult == true) {}

    monarticle var = mySelection [0] .parentStory;

    If (App.version.Split(".") [0] >= 5){

    var myTextFrames = myStory.textContainers;

    }

    else {}

    var myTextFrames = myStory.textFrames;

    }

    var myStoryFramesCount = myTextFrames.length;

    If (myStoryFramesCount > 1) {}

    for (f = 0; f< mystoryframescount;="">

    {If (mySelection [0] == {[f] myStory.textFrames)}

    var myTextFrame = f;

    }

    }

    {Switch (mySplitOptions.selectedButton)}

    case 0:

    mySplitAll();

    break;

    case 1:

    mySplitBefore();

    break;

    case 2:

    mySplitAfter();

    break;

    }

    }

    else {}

    Alert ("are you kidding Me? \nThe history you selected has only a SINGLE block of text. ») ;

    }

    }

    }

    else {}

    Alert ("Selection\nYou evil chosen the wrong type of object. Please select a block of text. ») ;

    }

    }

    else {}

    Alert ("No selection Made. \nPlease specify a history split.");

    }

    }

    else {}

    Alert ("No. Active Document Found. ("\nPlease open an InDesign document and select a story to split.");

    }

    //----------------------------------------------------------------------------

    function mySplitAll() {}

    for (i = 0; i< mystoryframescount;="">

    myTextFrames [i] .duplicate ();

    }

    for (i = 0; i< mystoryframescount;="">

    If (App.version.Split(".") [0] >= 5){

    myTextFrames [i] .remove ();

    }

    else {}

    myTextFrames [0] .remove ();

    }

    }

    }

    function mySplitBefore() {}

    If (.previousTextFrame mySelection [0] == null) {}

    Alert ("unable to break Thread. \nThe selected text block is the FIRST block of text in the thread.");

    }

    else {}

    var myBfBreakFrame = .previousTextFrame mySelection [0];

    var myAfBreakFrame = mySelection [0];

    var myBreakStory = myBfBreakFrame.parentStory;

    mySelection [0] .previousTextFrame = null;

    if(myBfBreakFrame.Overflows == true) {}

    var myOversetText = myBreakStory.texts.itemByRange (myBfBreakFrame.insertionPoints [-1], anointed myBreakStory.insertionP [-1]);

    myOversetText.select ();

    App.Cut ();

    App.Select(myAfBreakFrame.insertionPoints[0]);

    App.Paste ();

    }

    }

    }

    function mySplitAfter() {}

    If (.nextTextFrame mySelection [0] == null) {}

    Alert ("unable to break Thread. \nThe selected text block is the LAST block of text in the thread.");

    }

    else {}

    var myBfBreakFrame = mySelection [0];

    var myAfBreakFrame = .nextTextFrame mySelection [0];

    var myBreakStory = myBfBreakFrame.parentStory;

    mySelection [0] .nextTextFrame = null;

    if(myBfBreakFrame.Overflows == true) {}

    var myOversetText = myBreakStory.texts.itemByRange (myBfBreakFrame.insertionPoints [-1], anointed myBreakStory.insertionP [-1]);

    myOversetText.select ();

    App.Cut ();

    App.Select(myAfBreakFrame.insertionPoints[0]);

    App.Paste ();

    }

    }

    }

  • Add the map results in keeping the old settings

    Hi all

    I have a weird problem.

    We have an environment vspere running with 9 blades, vsphere 4.1 and enough memory.

    Last week some application managers tried to NLB to work on a Sharepoint Frontend server. This is going well @ all and after that they had "abandoned" they wanted to put it back as it was.

    So we have uninstalled nlb, gave the DFU new ip address and we have tried to connect... Low and behold it worked! WTH!

    We threw all the cards and then add the. After we had made the old ip came back in the machine--< = (and that I don't get!)

    It seems that vmware somehow puts cache settings for NW cards formerly added, and so also the problem came back.

    I found a way around this by adding 1 map more then the orgional 2, we were already in it. Configure the third card, remove the other 2 in the settings and the server wasn't reachable again.

    but now whenever I want to add a new map of nw, I must first add 2 nw cards that didn't work, and then another that actually work.

    2 questions:

    1A someone at - he never had such a problem, and says how fix you it?

    2 - does someone has an idea that would prevent to keep old setting when adding a card nw?

    Your old NIC card is probably far in the devices hidden in Device Manager

    In the command prompt

    Type set devmgr_show_nonpresent_devices = 1

    devmgmt.msc (run it from the command prompt)

    Click view-> devices show hidden

    Search no matter what old NIC and remove

    Check this KB network error: address already assigned to another adapter

  • creating a table of blocks of text [AS2]

    Hello

    I want to create a table of text blocks.

    The code I use is.

    for (c=0; c<5; c++) {
        tf = ("test_txt"+c.toString());
        this.createTextField(tf, 10, c*20, 80, 40, 20);
    }
    
    a = [test_txt0, test_txt1, test_txt2, test_txt3, test_txt4];
    
    for (c=0; c<5; c++) {
        a[c].text = "foo " + c.toString();
        a[c].border = true;
        a[c].borderColor = 0x00FF00;
        a[c].textColor = 0x0000FF;
        a[c].size = 24;
    }
    

    The result I want from the code is 5 spead of frames of text on the stage, but only the last block of text is created.

    Untitled-4.png

    What is the right way to create the frames in a loop and then having accsesible in a table?

    Thanks in advance

    Trevor

    The second argument of the createTextField method is the depth.  If you keep by specifying the same depth, you replace whatever you place there whenever you assign to something new at this depth.

  • I have problems to restart of Yosemite, after power failure during the new backup, and now HD is also blocked.

    I have problems to restart of Yosemite, after power failure during the new backup, and now HD is also blocked.

    I tried the holding of 'command-r' and 'option' to see if the problem can be resolved or try any boot from a boot disk, my old backup, USB function start - but after a slow long process it all just stops.

    There is software on my HD that I don't want to lose by simply reformatting the computer, because I am now in a different country, far from my house, which is another problem of the Apple Store, to reinstall my OS from Yosemite on the www.

    Hey AmnonMikeCohen,

    Thank you for being a part of the communities of Apple Support.

    I understand that your Mac is not start properly after the power went out.  Let's start with resetting the SMC and NVRAM on your Mac and see if he can start from there:

    Reset the management system (SCM) controller on your Mac.

    How to reset the NVRAM on your Mac.

    See you soon.

  • Why when I backup after selection keep only last system only the old image image is maintained?

    Why when I backup after selection keep only last system only the old image image is maintained?

    Hello

    ·         What operating system is installed on the computer?

    ·         The computer is connected to the domain network?

    If you are using Windows 7 then you can try the steps mentioned below and check to see if they help.

    When you schedule a backup on your computer, all the backup files would be automatically and replaces the old backup data.

    You can follow these steps below to remove the system image backup.

    1. open the control panel (all items view).
    2. click on the backup and restore icon.
    3. as the backup, click on the link manage space.
    4. to select a backup location-
    NOTE: This is for which the backup of files the user is located in. If the backup location is already displayed, go to step 5.
    (A) under the backup location, click Browse.
    (B) go to the backup location and select it.
    (C) continue to step 5.
    5. under backup of user files, click View backups button.
    6. Select the period of backup that you want to remove, and then click Remove.

    See also:

    Learn more about the system image backup

    http://blogs.technet.com/b/filecab/archive/2009/10/31/learn-more-about-system-image-backup.aspx

    Should what backup settings I use to maximize my disk space?

    http://Windows.Microsoft.com/en-us/Windows7/what-backup-settings-should-I-use-to-maximize-my-disk-space

  • After 13 updated both the system rebooted and now as he begins to install XP it autorestarts. It will not recover to the last known good config and delivers a message of corrupted config file.

    Any ideas?

    Thank you

    Frank

    You will share exactly what the message of the corrupt config file says?  My crystal ball takes off the second Wednesday of each month.
    If your system reboots continuously, the next time the system reboots, start tapping the F8 key until you see the menu Boot Options Advanced XP.  On the Advanced Boot Options menu, select:
    Disable the automatic restart in the event of system failure
    This will display the error message that you don't see when the system restarts.  This is what Windows is supposed to do when there a failure - it is supposed to automatically restart.  The error you see on the screen has your clues...
    If you do not see the menu Options start Advancded or you do not have to turn it off automatic restart on option system in the list of choices, you need to try again until you do.  Start typing the F8 key earlier and more frequently as your system begins to come alive.  If you miss the window of opportunity F8, you must try again.
    Please provide additional information on your system:
    What is your system brand and model?
    What is your Version of XP and the Service Pack?
    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..
    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)
    The afflicted system has a CD/DVD drive work?
    You have a true bootable XP installation CD (it is not the same as any recovery CD provided with your system)
    ?
    Most of the time (in recent memory) when there is a problem after installing Microsoft updates, the problem is because the computer was somehow afflicted before/when updates have been installed and updates simply bring to the surface a problem that was not evident before.
    If the last thing people remember is to install the updates from MS, it's am understandable reaction in some way involve updates for updating the post problems when things don't work properly afterwards and especially during the next reboot.
    Another reaction is to try to remember all of the updates you have installed and somehow uninstall the updates one of the XP Recovery Console until you find one who is 'responsible '.  Unless you noted all issues of update, it would be more difficult, but not impossible.  It is unlikely that practical or useful advice in most situations, but you can of course try it.
    Security updates sometimes holes patch XP and when security holes are patched (and XP is "tighter"), affliction can no longer do what is done, things to happen are no longer allowed to happen as a result of the strengthening of security, the system has now a new problem (especially when it initializes more) , and it seems that install updates broken system while in fact, it's just a coincidence.
    Another thing that can happen is that the Microsoft updates will change or update certain critical files on the XP system.  Depending on what your software antivirus or antimalware software is, these programs can interpret the new or updated files to day as being a threat or somehow infected and quarantine (effectively delete) files it thinks are wary.
    The next time you restart your system, you'll have some sort of a problem, or you do not start if the files are missing.  Once more, the problem is not with the updates, it's another condition on your system with your antivirus or antimalware programs you beautiful little (they could be aware of what like the new look of Microsoft files).
    You may have seen some or heard talk about some of these kinds of people, but not too intellectually stimulating general or scenarios of error after update:
    NTLDR is missing or corrupt, ntdetect.com is missing or damaged, ntoskrnl.exe is missing or damaged, hal.dll is missing or corrupt, etc.
    These types of errors are usually very easy to fix, but if you don't know what's happening, the temptation is to do a repair installation, or if none of these kinds of things are really necessary, completely reinstall your XP.  I have never done a system restore, a repair install or reinstalled XP in my life to solve any problem (but I did the process for practice).  These things are simply not options with me.
    Given that Microsoft sends many updates on the second Tuesday of each month (they call it "Patch Tuesday"), this means that the or to the second Wednesday of each month there is an increase of 'problems' in the field - in particular the types of problems "my computer does not start after you install the updates from Microsoft.  That day is also known as "exploit Wednesday".
    You can read about it here: http://en.wikipedia.org/wiki/Patch_Tuesday
    It is likely that if you have a problem like this or after the installation of MS updates, someone else has also had the same problem and understood what to do about it.  A problem here, is that no one knows what is your problem.

    Do, or do not. There is no test.

    I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • I got Photoshop CS2 before on my computer, but after that I formatted this last day, I can't download the programs again. I use Vista on my computer and my Internet is also open.

    Hello. I have a problem downloading the photoshop cs2 free on the Adobe site to my PC... I got 2 before Photoshop on my computer, but after that I formatted this last day, I can't download the programs again. I use Vista on my computer and my Internet is also open and I ludovic Firefox. My firewall I also closed when I try to download the file, but the problem is the same. When I try to download the photoshop or other programs Adobe down your site (Adobe website) and cams out there a text saying: Firefox can not find server download.adobe.com. Check the address for typing errors, like ww.eksempel.dk instead of www.eksempel.dk if you can not load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the web. I also tried with Crome and Microsoft Internet but still the same problem and error text is displayed. Can someone help me? Please...

    Hi benjamina35117761,

    Please visit the following link;

    Error: "Activation Server is not available. CS2, Acrobat 7, pass a hearing 3

Maybe you are looking for

  • Internet high speed slows down significantly when wifi turned on on my Mac.

    When I run a speed test I get 29Mbps with my mac wifi disabled. When I turn on wifi it drops to 5 Mbps. Any suggestions please?

  • SPI USB converter

    HiI am trying to use USC-216 SPI isolated with Labview.But USB Converter can't communicate with the unit is someone familiar with this converter? Best regardsGuy

  • BlackBerry Q10 Dev Alpha C - stuck on "essential gestures."

    Hey guys,. I accidentally placed an emergency call after loading the last 10.3 OS on my Dev Alpha C through the tutorial from gesturest. He asks me to swipe down from the top where the only option is 'emergency call '. I don't see a way to pass the t

  • Tried Unity3d of load on the PB Flash export

    For someone who is interested, I tried exporting my Unity3D game Flash and tried to load on the Playbook does not. I tried to create a .bar with the .swf with blackberry-airpackager and I tried to put the swf file in an html and do a WebWorks app so

  • HFM-rule error

    Hi guru,.I tried to do no entry to establish hierarchy with written code entities as loop statement is less thanVOID NOINPUT()IF HS. SCENARIO. MEMBER = "REAL" THENHS =. ENTITY. LIST ("SING", "[BASIC]")FOR i = LBOUND (has) to UBoundHS. "" NOINPUT "E #