Book a Demo

Author Topic: Set Constants for a single Documentation(not Proj)  (Read 2948 times)

Niy

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Set Constants for a single Documentation(not Proj)
« on: February 22, 2012, 01:01:38 am »
Hi,

does anyone of you know a way to set some constants for a single Documentation?
We have a project with more than one documentationfolder, and the DocIDs of each document need to be unique (and be set prior to the documentation template run, I know how I can set Fieldfunctions and later add the DocID in Word, but that's not what I want).
Tagged Values kinda work, but you can't add a tagged-value-field into the firstpage-header (or at least I couldn't).

Any help would be appreciated :)

edit: EA 8.0, if you found a nice EA9 trick, it wouldn't help much  :-/
« Last Edit: February 22, 2012, 01:02:45 am by Niy »

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Set Constants for a single Documentation(not P
« Reply #1 on: February 22, 2012, 04:51:28 am »
Well it won't help much, but EA 9.x does have the ability to set project constants that can be used during document generation across templates.  They can also be exported and imported between different project repositories.

Niy

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Set Constants for a single Documentation(not P
« Reply #2 on: February 22, 2012, 11:36:01 pm »
The project constants work in EA 8 too, but they are for the whole project.
I need constants for a single Documentation-Folder

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Set Constants for a single Documentation(not P
« Reply #3 on: February 23, 2012, 02:30:20 am »
Create an Add-In which writs your actual projConstants into a string.
then calls your desired Items from the Repository and Write them into your ProjConstants.
Then call the reportgeneration and create the Document.
Afterwards you can write your old projconstants back into the repository.

Improvement: create an information for all the templates you need and add them into the add-in(see above). Than you get different informations for different templates.

Best regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website