Skip to main content
Rsfl
Inspiring
June 28, 2013
Question

Auto-insert several nested elements on same level

  • June 28, 2013
  • 1 reply
  • 850 views

Hi all,

over the EDD I have only been able to auto-insert a single child element, and then another nested element. Is there a way to auto-insert several elements on he same level?

Example: When I insert a concept element, then title and conbody elements should be inserted automatically.

Robert

This topic has been closed for replies.

1 reply

Inspiring
June 28, 2013

Hi,

in FM11 this is possible.

You can automatically insert multiple elements one after the other.

FM9 cannot do it, not sure about FM10

Cheers Alex

Participating Frequently
June 28, 2013

It also works fine in FrameMaker 7.2 and before.  I reported this problem to Kapil in January.  I'm guessing that they fixed it for FM11 but not for FM9.  Those of you with FM10 may want to look at this.

If you rely on the correct behavior for any plugins you created here's what I observed under the hood:

What seems to be happening is that FrameMaker 9 defines a new F_ElementRangeT value  for the insertion point at post-paste, which is different from the F_ElementRangeT that it gets pre-past.  A comparison of the FA_Note_PreFunction and FA_Note_PostFunction notifications for KBD_PASTE will confirm that. 

My workaround in FM9 involved capturing the F_ElementRangeT value for the insertion point pre-paste and then using that location post-paste, essentially ignoring the post-past value that FM9 returns post-paste.    It works for me but "your mileage may vary".

Regards

Chuck