After unlink or unthread the last text frame, it still points to the old story

Hi,
I used 'kTextUnlinkCmdBoss' to unlink the last text frame from the thread, however, after the command is processed if I access the textModel of the box as follows 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;
InterfacePtr<ITextModel> srctextmodel(srctextframe->QueryTextModel());
if(srctextmodel==NULL) break;
Is there any way to force refresh the textModel info related with the text frame? Of course, if I checked the textModel later, it's properly assigned with new one, it's just problem of the info is not refreshed on the same execution cycle.
Thanks,
Doil

Hi Dirk,
Thanks for the response. I tried the following, however, it didn't work, it still returns the same result:
InterfacePtr<IHierarchy> fh(thebox,UseDefaultIID());
ASSERT(fh);
if (!fh) {
break;
InterfacePtr<IHierarchy> multiColumnItemHierarchy(fh->QueryChild(0));
ASSERT(multiColumnItemHierarchy);
if (!multiColumnItemHierarchy) {
break;
InterfacePtr<IMultiColumnTextFrame> mctf(multiColumnItemHierarchy, UseDefaultIID());
ASSERT(mctf);
if (! mctf) {
break;
UID storyUID = mctf->GetTextModelUID();

Similar Messages

  • Hello my ps 2014 can not open it shuts down after 10-15 seconds. the old version run fine

    Hello
    my ps 2014 can not open it shuts down after 10-15 seconds. the old version run fine

    There are several things you can do I understand.
    1) Check the battery condition using a program like the widget iStatPro (free). If the battery health is less than 80% then Apple have a free replacement program for this.
    2) Switch the machine off and disconnect the power supply. Remove the battery and leave out for several minutes - to allow complete discharge of all electronic components, I think. Then re-instal the battery, etc and restart. I'm not 100% clear on all steps in this procedure but it provides a reset which sometimes resolves problems at least temporarily.
    3) Disconnect all peripherals and see how it works. One of these might be calling for more power than it should.
    Neville

  • Can't See Text or Select Text Frame

    I'm formatting a book in InDesign. On one of my two-page spreads, the text and its text frames have disappeared. I can see and select these objects in the Layers panel, so I can verify that the text frames are still there and are positioned correctly on the pages... but on the spread itself, I'm unable to see the text or click the frames to select anything. The rest of the pages in the book look fine...

    This is after having right-clicked on those objects in the layers panel and choosing "Select Item(s)" ... if I were to go over now and click inside one of the text frames in the spread, it would disappear, leaving me with only the pink-purple page margin lines directly beneath the text frame's borders.

  • How do you place text in a text frame, but with autoflow?

    I woudl like to place a tagged text file on a text frame rather than on a page, so i can put the contents into a pre-defined text frame, but still have the number of pages extended unitl the entire tagged text content is show.
    I can get autoflow with  Page place() function, which takes an option to turn on autoflow. However, this creates a new text frame, and I'd like the tagged text to go into a particular text frame. Unfortunately, the TextFrame place function does not seem to have an autoflow setting, that will duplicate the current page and flow text into the new page.
    Thanks,
      Read Roberts

    Hm,
    I would check for overflow, if then, create the new page, create your 'particular textFrame', set nextTextFrame of tf1 to your 'particular textFrame'
    Hans-Gerd Claßen

  • How do you answer a post on the old forums?

    I see there are many new posts on the old forum.
    When clicking reply, it takes me to the new forum.
    I expect this means that the old posts are now read-only and will not be
    migrated to the new forum?
    A great deal of time went into posting in the old forum by everyone.
    Has this work been lost now?

    DavidBedford wrote:
    Has this work been lost now?
    It is read only until the 26 February.
    Any threads that were e-mailed to the mods before 6 January 'might' make onto here.
    I asked about any threads created after 6 January (on the old forum) and didn't get a reply in time
    -+-No longer a forum member-+-

  • Pages, Numbers and Keynote won't update.  App Store says update was applied, but when I open Pages/Number/Keynote, the version of  it shows the old version.

    Pages, Numbers and Keynote won't update.  App Store says update was applied, but when I open Pages/Number/Keynote, the version of  it shows the old version.

    When you updated, the old version remained on your Mac, in a subfolder within Applications named iWork '09.  Any icons you have on the Dock still point to that old version.  Try opening the Numbers that is located in your main Applications folder, not the one in the subfolder. If that works, then drag that one to the Dock.
    SG

  • [JS][CC] How can I get the last visible character in an overflowed Text Frame?

    Hello
    I'm new in InDesign scripting in javascript. I would like to know if there is a way to get the position of the last character in a Text Frame that is overflowed? I need this because I want to calculate how many characters are hidden (overflowing text) via script.
    I've searched in the forums about this but what I find is always a script for alerting if there's overset text or not.
    I'd really appreciate any help!

    Well, let's say that myFrame is an overflowing text frame.
    So, the last character in that frame would be
    myFrame.characters[-1];
    To calculate the number of overflowing characters, select the
    overflowing text frame, and run this script:
    myFrame = app.selection[0];
    myParentStory = myFrame.parentStory;
    alert("Number of overflowing characters is
    "+myParentStory.characters.itemByRange(myFrame.characters[-1],
    myParentStory.characters[-1]).length-1);
    Ariel

  • Untread Text Frames without losing text in the second frame

    I probably not gonna use the right terms to express my question because I don't have an english version of ID. I'm sorry for that.
    If you, for example, import a text document into your column-based layout, you are able to automate the text flow and it will flow into the columns. At the end of each frame there's a text-handler (threading text) that shows you where the text continues in the next frame.
    I wanna know if there's a possibility to unthread text AND leave the text into the first column and the rest of the text into the next column WITHOUT being connected like before. If I try this I get a red plus-sign at the end of the first frame showing me there more text and the next frame ends up without text.
    I can cut the text from behind the plus-sign and paste it into the next frame, okay. But there's something in my memory telling me it was already possible with Pagemaker to simply disconnect frames and leave the text intact.
    I hope somebody understands my question?

    Salah Fadlabi wrote:
    Try to open Object style with no document open, double click on none then close and open indesign. Every frame after this process will be without border.
    This is only correct for new created document, not for existing ones. If the problem existis in an existing document you have to change the default style with no object selected.
    I would strongly recommend to create its own basic styles for each category and load them into the several style panels to have always styles with the same name in every document which makes exchange of items easier.
    Default Object styles are those with the small rectangle graphic at the right. The one with the T ist for Text frames, the one without T for Image Frames.

  • Search for the end of each text frame?

    I'd like to insert some kind of marker at the end of each of my text frames in order to preserve where the page breaks occur, even after I've exported my file. The only function in InDesign that seems to recognize pages is the text variables that can pull the first/last instance of something on a page. Other than that, I can find no way of searching for the end of a page or end of a text frame.

    myFrames = app.activeDocument.textFrames;
    myCharStyle = app.activeDocument.characterStyles.itemByName("Marker");
    for (a=0; a<myFrames.length; a++){
         if (myFrames[a].characters.length>0){
              myFrames[a].characters[-1].appliedCharacterStyle = myCharStyle;
    The above script will apply a character style called Marker to the last character of all text frames in the document (prepare a character style called Marker [case-sensitive] before you run the script, or change the name in the second line.
    I guess a character style isn't an ideal solution, though, as it might override something else.
    Perhaps a strikethrough? In which case, change the 5th line to:
    myFrames[a].characters[-1].strikeThru = true;
    Does that help?
    Ariel
    www.FreelanceBookDesign.com
    Message was edited by: Arïel to correct syntax error.

  • Unthread text frames

    hi
    i develop an indesign extension with CS extension builder 2 and flashbuilder 4.6.
    how to unthread text frames ? i don't find any method or property in textframe class...
    thanks
    Simon

    This is a discussion for the scripting forum, however you can achieve what you want using the following code.
    tFrame.nextTextFrame = NothingEnum.NOTHING;
    This is a sample code in JS, i am not very proficient in AS, but you can converet this easily into AS.
    In the above code snippet "tFrame" corresponds to the textframe which you require to unlink from the one it is linked to.
    Hope i made the point clear, and please try to post your questions on the right forum to get good response and also help people searching help on similar issues
    Manan Joshi
    - Efficient InDesign Solutions
    - MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • How to trap the event before unlock of locked text frames

    How to trap the event before the message "You must check out the contents of this frame in order to make changes. Check out now?" for locked text frames?
    I have tried installing the service Responder kUserEditTextCmdResponder
    The responder event is fired after the unlock of text frame in this case.
    I was trying the service kEditCmdPreProcessService, but I could not find the companion interface for this service.
    How to find the companion interface?

    calle111 wrote:
    The answer to why i need the event executed if nothing has changed is that in my application the text ring will hold some predefined settings for some other controls. If the user selects one of the predefined settings from the text ring a bunch of other controls will take predefined values. These values in the other controls can now be altered by the user. If the user now wants to re-apply the same set of pre-defined settings as last time it should be as simple as selecting the pre-defined settings from the text ring. If now the same value is selected from the text ring, no event will be executed.
    What you should do instead is change the value of the ring to a "special" value (e.g. using a local variable) whenever one of the other settings change, indicating that the settings have been modified. It seems wrong to show an inconsistent value in the ring, right?
    Now, whenever you change it back to one of the default settings, is IS a value changed event and there is no problem. .
    Here's a quick draft.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    event_testerMOD.vi ‏10 KB

  • Unlinked text frames!!

    I was given a big textbook to polish up in Pagemaker 7. The text of the each chapter is already broken into dozens of random unlinked, discrete text frames. These are complete in themselves - there's no "+" in the windowshade handles at the top or at bottom, either black or red. When I style the text of the first frame, it doesn't flow into the second because it isn't linked, and I can't link the frames by clicking the window handles as all the tutorials say. When I click the bottom handle on the first box and then click into the next frame, all that happens is another new frame is created, with the same problem as the first. The text doesn't flow from that frame into the next one either.

    Thank you for replying!
    I've never actually used the Scripts pallete before, but I tried "merge stories" - and got an "invalid state" error message whether in both Layout and Story view. I'll start Googling for help on this script - any help you can give me much appreciated.
    I've been trying to get by with doing it manually, cutting and pasting. Some of the sections are huge, dozens of pages. I copy and paste and when it's ok delete the copied block entirely. No point having more than one text block really. Working from the back is a good tip, thanks.
    The only reason I can figure that they did this is that in one part of the text there are several images. They put these in separate text blocks rather than embedding them in the text. Otherwise I have no idea why they made so many text blocks. Maybe because it's so easy to do accidentally, and once you have a text block it's hard to get rid of it. I've been "closing the sandwich" on blocks to see if I can get the block before it and the block after it to flow together, which amounts to deleting the middle block.
    What a drag, hours of time wasted on this. You would think there would be some simple one-click way to "combine all text."

  • ID CS3 - text wrap doesn't work at the end of a long multi-columned text frame

    Did a search - don't think this specific issue has been addressed:
    We design large graphics often used on walls. When working with a text frame that that was 11 feet long and had 8 columns, text wrap would not work on an image placed in the last column. The same image with the same text wrap applied will work fine anywhere else in the text frame. I found that if I shortened the width of the text frame a little bit at a time eventually it would work, but there doesn't seem to be a specific cut-off width - sometimes the last column won't text wrap when the frame is 115 inches wide and sometimes it doesn't work when the frame is only 80 inches wide. Again, all of the other columns work fine. I have tried all of the obvious stuff, the only variable between the columns that wrap and the one that doesn't is it's position at the end of the text frame.
    We have gotten around this issue by using multiple threaded frames instead of one long frame with multiple columns, but I am curious if anyone else has run into this or might know what the issue is.
    thanks

    Did a search - don't think this specific issue has been addressed:
    We design large graphics often used on walls. When working with a text frame that that was 11 feet long and had 8 columns, text wrap would not work on an image placed in the last column. The same image with the same text wrap applied will work fine anywhere else in the text frame. I found that if I shortened the width of the text frame a little bit at a time eventually it would work, but there doesn't seem to be a specific cut-off width - sometimes the last column won't text wrap when the frame is 115 inches wide and sometimes it doesn't work when the frame is only 80 inches wide. Again, all of the other columns work fine. I have tried all of the obvious stuff, the only variable between the columns that wrap and the one that doesn't is it's position at the end of the text frame.
    We have gotten around this issue by using multiple threaded frames instead of one long frame with multiple columns, but I am curious if anyone else has run into this or might know what the issue is.
    thanks

  • Can an InCopy editor add, remove and edit a text frame placed inside the main story text frame?

    I think I already know the answer to this which is - no. I'll explain why I am asking the question in a second, but the reason I think the simple answer is no is because - text frames are controlled by a designer in the layout file, an editor using incopy can only edit the text and images placed inside text frames, and so cannot resize them, add or delete them.
    Ok, so the reason I have asked this.
    Is there a way around this so that editors in incopy can edit certain types of text frame that are contained within the main text frame? I'm using these text frames to contain specific paragraph styles, giving them a boxed look and also with an anchored icon in the top left of the text frame depending on the type of paragraph it is. See screenshot as an example of a green text frame that I am using to contain paragraphs of type "tip".
    If it is not possible for editors in incopy to add, edit or resize these text frames (green tip frame in the example above), then how else can I style these paragraphs to give the same visual appearance, but without the use of wrapping them in a text frame?
    One (not so good) way around this is for the designer to add the text frames in the layout file after he gets the content back from the editor, then moving the "tip" paragraphs into these newly created text frames. However when the editor updates the content in incopy and gets these new text frames in their copy, they can not then delete them if they wish to, or if they add or reduce content inside of these green text frames then the frames dont grow to fit their edited content. So I dont think its a solution for the designer to control the adding, removing and resizing of these frames.
    UPDATE: I have just discovered that once a text frame has been placed into the document by the designer and the editor updates their copy in incopy-  they can then use the "Position Tool" to select that text frame - allowing them to resize it, or delete it! Fantastic. But would the editor be able to add these frames in themselves to begin with? Maybe have a document containing all of the objects available to them, copy and paste one of them into the main document and edit its content? Does anyone have any advice on how to go about this? Essentially I would like the editor to control the insertion, editing and removal of these inline text frames.

    True. But when all I am trying to achieve is a border around a paragraph, use of a table seems overkill to me. But if thats the only solution I have so far then I will have to go down that route.
    It would be useful to have an object libraries panel in InCopy so that editors can drag across predefined text frames into their doc via InCopy, but I cant see that option in InCopy. is there one? I have also thought about exporting the frames as seperate InDesign Snippets and saving them to an objects folder, then when an editor needs to insert one into their doc they simply use File > Place > "Choose required text frame snippet". However I have found that InCopy can't place InDesign snippets so that theory was a failure. Is there another format I could use to save the objects and bring them into InCopy? List below shows my findings so far for trying to save/export a text frame from InDesign and then import into InCopy:
    InDesign Snippet (.idms) - can't import into InCopy
    InDesign Document (.indd) - imports content as an image - only editable in InDesign
    InDesign Template (.indt) - imports content as an image - only editable in InDesign
    InDesign Library (.indl) - can't import into InCopy - no panel available in InCopy for object libraries (that I can see...)
    InCopy Markup (.icml) - only imports the text, loses the text frame

  • Adding pages and Text Frames to emulate the behaviour of "Smart Text Reflow"

    I am creating a large number of tables in a document.  If I have Smart Text reflow turned on, my script does not work properly.  I have the start of the processing:
    1. Add a new table
    2. If the last page text frame overflows then Add a new page
    With smartTextReflow turned off, I want to ensure that new text frames that match the primary text frames from the master page.  It has to be able to handle getting the parameters from the left/right page text frame.

    I have been able to solve my problem.  I was really overthinking things!!!
    Since I have designated the text frames on the master pages as primary text frames, when creating a new page, a text frame is created automatically. So the problem is then just link the previous text frame to the text frame that was created when adding the page.
    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

Maybe you are looking for

  • Just got snow leopard install failed now Mac will not boot up?

    I got a iPad and snow leopard very excited to use them I try to install leopard and it fails so I turn on the comp to try it again and I get the apple logo then the spinning wheel then it just shuts off and that's all it will do now! Glad I got the i

  • How to unlock objects in Transport Organizer?

    I found a program to unreleased the objects. And create new TR so it wont affect the logs on the old TR#s. Do you think I'm doing the safe way? Now, I need to delete and create another object(fmod, fgroup or table) to save it in a new transport reque

  • Text index for UNION queries.

    Hi All, Can anyone please help me in tuning search query mentioned below select id from usr1.organizations where lower(ID_official_name)   like  'technology%' union select id from usr1.organizations where lower(ID_OFFICIAL_NORM_NAME)   like  'technol

  • Premiere pro stopped working when starting help me

    My Premiere Pro CC keeps giving me a "premiere pro stopped working" when I try to start it. What do I do?

  • Download error 2 itunes

    I have been trying to download ITunes into my computer but it comes up with error #2 I've unloaded and reloaded several times but no luck..