Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
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...
-
Ahh, your suggestion work excellent, thanks! That is odd how the GUID is not displayed in the UI.
Thanks,
Chris
-
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.