Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Chris S on October 07, 2011, 04:08:54 am

Title: RunHTMLReport
Post by: Chris S on October 07, 2011, 04:08:54 am
When using RunHTMLReport, is there any way to generate HTML for a model?  The first parameter of RunHTMLReport is a GUID and models do not seem to have GUID's.

Any Ideas?

Thanks,
Chris
Title: Re: RunHTMLReport
Post by: Luis J. Lobo on October 08, 2011, 01:05:10 am
The Models (root nodes) have GUID, but you can't see it with the user interface.

Try:

RunHTMLReport(Repository.Models.GetAt(0).PackageGUID,"C:\Path\","PNG",".htm")

PS: This is valid for the first "root node". If you have more than one, use any method to locate the one you want...
Title: Re: RunHTMLReport
Post by: Chris S on October 08, 2011, 04:02:14 am
Ahh, your suggestion work excellent, thanks!  That is odd how the GUID is not displayed in the UI.

Thanks,
Chris
Title: Re: RunHTMLReport
Post by: Shaggy Man on October 11, 2011, 11:50:29 am
You can see and get GUID in UI.

See in Properties sub windows | Project | GUID.
Get at Project Browser context menu | Copy Reference | Copy Node GUID to Clipboard.