Archi Forum

Archi Plug-ins => jArchi => Topic started by: TNT44 on March 26, 2023, 15:48:07 PM

Title: Import or create element with a defined ID.
Post by: TNT44 on March 26, 2023, 15:48:07 PM
I export XLS file from Smartea

I  parse the file with XLSX and produce a CSV
with

"ID","Type","Name","Documentation","Specialization"
"_6zr-AMuKEey-BNq1zaezkA","ApplicationComponent","Appli A","",""
"_7SARsMuKEey-BNq1zaezkA","ApplicationComponent","Module 1","",""
"_9n9ccMuKEey-BNq1zaezkA","ApplicationComponent","Module 1","",""

I want create the same object under Archi with the same id ?

It is possible ?

 
 
Title: Re: Import or create element with a defined ID.
Post by: Jean-Baptiste Sarrodie on March 26, 2023, 16:44:52 PM
Hi,

Quote from: TNT44 on March 26, 2023, 15:48:07 PMIt is possible ?

No, as for any tool, Id are technical things nobody should work with. If you want to keep track of some external reference, simply use properties for that purpose.

Regards,

JB
Title: Re: Import or create element with a defined ID.
Post by: Phil Beauvoir on March 26, 2023, 17:17:23 PM
However, the CSV importer will use those IDs when importing to a model.
Title: Re: Import or create element with a defined ID.
Post by: Jean-Baptiste Sarrodie on March 26, 2023, 19:32:56 PM
Hi,

Quote from: Phil Beauvoir on March 26, 2023, 17:17:23 PMHowever, the CSV importer will use those IDs when importing to a model.

Right, I should have mentioned that CSV importer allows it.

JB