Author Topic: Virtual document from vbscript?  (Read 3565 times)

m2i7c9k

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Virtual document from vbscript?
« on: September 08, 2021, 03:12:57 am »
Hi guys,

please help me! I'm a bit "out of order", because I don't understand how works virtual documents.

Is is possible have 3 element on the diagram and print them by element type?

1 Diagram = 1 UseCase, 1, Class (stereotype="webpage"), 1 Class (stereotype="service")

And I have no idea how create template that read the diagram elements, and use 3 deferent templates
by element type, in one document,  document chapter?

Thanks for advice

Mick


Sunshine

  • EA Practitioner
  • ***
  • Posts: 1226
  • Karma: +111/-10
  • Its the results that count
    • View Profile
Re: Virtual document from vbscript?
« Reply #1 on: September 08, 2021, 02:20:21 pm »
Usually virtual documents are created as a model in Sparx EA and then generated from that model. Don't need vbscript.
All the information you need about document generation is in the guide.
https://www.sparxsystems.com/resources/user-guides/15.2/publish/document-reports.pdf

Out of the box you can order how the diagrams, elements and packages by tree order (as they appear in project browser), name either ascending or descending order in standard templates. If you want to order things as you suggested then you should look at creating Fragment Templates where you can use SQL, custom script or document script.

Hope that helps
Happy to help
:)

m2i7c9k

  • EA User
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Virtual document from vbscript?
« Reply #2 on: September 08, 2021, 04:09:13 pm »
Thank You Sunshine,

I'm going to dive in int.

Mick