Book a Demo

Author Topic: EA Generator  (Read 5623 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
EA Generator
« on: December 17, 2013, 10:01:22 pm »
Hello!
I use EA document generator to create a custom document based on EA model. I added a table of content via code:
Code: [Select]
generator.InsertTableOfContents();and found it is possible to add it via a custom template : insert->Table of content.
Well, Is it possible to add a table of figures using the ways above?

Thanks in advance!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA Generator
« Reply #1 on: December 18, 2013, 07:48:51 am »
You can't create a table of figures in EA at all.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: EA Generator
« Reply #2 on: December 22, 2013, 07:36:44 pm »
Hello!
What arguments DocumentDiagram() mehtod gets?
In EA User Guide two first arguments are long, but when I code it I have to supply 2 first int arguments!
I'm a little confused...

Thanks!

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: EA Generator
« Reply #3 on: December 25, 2013, 10:58:12 pm »
I want to create a custom template for use as Generator.InsertText() second argument.
The template purpose is formatting text as quote or bold- as the option in Word.
When I create a new template (F8 -> new) that meets these requirements nothing happens and the text is still formatted as Normal  :(
Any Idea?

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: EA Generator
« Reply #4 on: December 31, 2013, 08:58:06 pm »
Can I use EA Document generator.InsertText() method for adding an item of a list of bullets?
Thank you!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA Generator
« Reply #5 on: January 02, 2014, 09:06:55 am »
My understanding is that the second parameter to InsertText is not a template but the name of a style within the current document.

If you create a character style that applies bold to the text then you can add bold text. If you create a paragraph style that uses bulleting then you can create a list of bullets.

All of the DocumentSomething methods either take a name or id as the first parameter. The second is the depth, the basic rule is to always increase it as you move down the hierarchy.
« Last Edit: January 02, 2014, 09:13:56 am by simonm »

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: EA Generator
« Reply #6 on: January 06, 2014, 10:50:55 pm »
How can I use EA generator for inserting a hyperlink to the document?
Could InsertText method do that?  otherwise- how?

Thanks in advance!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA Generator
« Reply #7 on: January 13, 2014, 08:39:39 am »
I'm afraid I don't know the answer to that one. Fill out the support request form and you'll get an answer.