Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Polymorph on September 17, 2024, 09:25:02 pm

Title: Access URLs added via Element Properties Files Dialogue
Post by: Polymorph on September 17, 2024, 09:25:02 pm
Hi

It's possible to store URLs to external resources within EA using the Files tab on the element properties window.

Does anyone know which table/field this data is encoded in?

I want to export it via a template?

Thanks!
Title: Re: Access URLs added via Element Properties Files Dialogue
Post by: Polymorph on September 17, 2024, 10:48:14 pm
The answer is the t_objectfiles table!

Code: [Select]
SELECT
    t_object.name,
    t_objectfiles.*
FROM
    t_object INNER JOIN
    t_objectfiles ON t_object.object_id = t_objectfiles.object_id
WHERE
    t_object.name = 'My Use Case with URL';
Title: Re: Access URLs added via Element Properties Files Dialogue
Post by: Eve on September 23, 2024, 09:09:50 am
The answer is Element.Files (https://sparxsystems.com/enterprise_architect_user_guide/17.0/add-ins___scripting/file.html (https://sparxsystems.com/enterprise_architect_user_guide/17.0/add-ins___scripting/file.html))

and in your template use the 'File' section below an Element.