Author Topic: Where are Resource Documents stored?  (Read 6089 times)

Nick Webb

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Where are Resource Documents stored?
« on: August 11, 2010, 01:39:12 am »
Hi all,
Just wondered if anyone knows where Resource Document information is stored?  I'm not doing too well looking through the database...
Cheers
Nick

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where are Resource Documents stored?
« Reply #1 on: August 11, 2010, 03:27:47 pm »
Nick,

I haven't heard of "Resource Document" information before. Care to elaborate?

Geert

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Where are Resource Documents stored?
« Reply #2 on: August 11, 2010, 04:21:31 pm »
Geert

From the Help:

The Resource Document feature enables a particular documentation configuration to be 'remembered', linking the loaded template within the Generate RTF Documentation dialog to the current highlighted package. If a particular template is always used with a specific package, and multiple cases of documentation exist to be propagated, saving these as Resource Documents can ease document generation later. They save the package, output file destination and template name of the document.

You identify and store Resource Documents using the Resource Document button on the Generate RTF Documentation dialog.

... and they are accessed through the Documents > RTF Documents folder in the Resources window.
« Last Edit: August 11, 2010, 04:25:57 pm by RoyC »
Best Regards, Roy

Nick Webb

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Where are Resource Documents stored?
« Reply #3 on: August 11, 2010, 04:32:14 pm »
Roy,

Thanks for the definition.

To be more specific, what I am interested in is whether the file paths are stored in the database?  I was exploring the idea of automating the creation of Resource Documents for an Add-In which uses the RTF Generator.  It appears that absolute file paths are used and perhaps that Artifacts/Linked Documents might be more flexible for relative path names, other file types etc.  ISound sensible?

Cheers
Nick




Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where are Resource Documents stored?
« Reply #4 on: August 11, 2010, 04:34:54 pm »
Ah, RTF document generation stuff.  :P
Explains why I never heard of it.

Geert

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Where are Resource Documents stored?
« Reply #5 on: August 11, 2010, 04:38:36 pm »
if you are trying to find this information in the database, try looking in t_trxtypes where Description = "SSDocProfile"

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Where are Resource Documents stored?
« Reply #6 on: August 11, 2010, 04:45:17 pm »
Nick, have a look in t_trxtypes.Notes where t_trxtypes.Description='SSDocProfile'. And try not to break anything! ;)

EDIT: Rats! Aaron beat me to it...
« Last Edit: August 11, 2010, 04:46:14 pm by KP »
The Sparx Team
[email protected]

Nick Webb

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Where are Resource Documents stored?
« Reply #7 on: August 11, 2010, 04:49:47 pm »
Having spent a lot of time playing with virtual documents I can produce pretty much what I need (sometimes with a bit of help from my add-in).  Main concern is that I don't want to clutter my model with multiple Model Document elements, which at first glance Resource Documents seem to address...   Perhaps dynamically building  the models and updating filters is a better approach?   it seems a shame to ignore the RTF features entirely as I think they are pretty flexible.  I might stop wasting time thinking about Resource Documents however!

Nick

Nick Webb

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Where are Resource Documents stored?
« Reply #8 on: August 11, 2010, 04:51:22 pm »
KP and Aaaron - many thanks!

I'll tread carefully and will persevere just for a little longer  :)


Nick Webb

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Where are Resource Documents stored?
« Reply #9 on: August 11, 2010, 05:08:37 pm »
One more question!  what does the "UID" in the Notes field reference?!

EDIT: found it - UID=package ID of package selected for RTF generation...  

LET'S GO!  8-)
« Last Edit: August 11, 2010, 05:14:43 pm by nickwebb »