Recent posts

#91
coArchi / publish changes error
Last post by yendo - August 11, 2022, 02:32:06 AM
Dear All,
I have a problem with this publish changes error, can help me with this.
thanks!!archi err.png
#92
General Archi Discussion / Re: Adding global properties
Last post by Xiaoqi - August 06, 2022, 01:49:43 AM
Quote from: crm on August 05, 2022, 13:20:23 PMI am somewhat a beginner in the Archi world. I have been struggling to add global properties to types. Example: I want to add complexity and a maturity score to all capabilities across the model. Whenever I do this it appears only in that view and for that capability. I'm sure I have overlooked something but where do I add properties that cut across all current and future instances that I have in my model?

Hello,

Welcome to Archi World! ;-)
I think you may need to explore the jArchi plug-in, by whick you can code some simple lines with selection scope then add properties in batch.
However, I think there will not be the same value for different capability element on the properties, so that will be your choice on what are the group of elements that can apply with same property (both key and value).

Good luck,
Xiaoqi
#93
General Archi Discussion / Re: Adding global properties
Last post by Alberto - August 05, 2022, 19:23:51 PM
QuoteI want to add complexity and a maturity score to all capabilities across the model.
I believe you are referring to Profiles, that was in the original proposal for adding Specializations to Archi, but don't think it has been implemented yet. 
#94
General Archi Discussion / Adding global properties
Last post by crm - August 05, 2022, 13:20:23 PM
I am somewhat a beginner in the Archi world. I have been struggling to add global properties to types. Example: I want to add complexity and a maturity score to all capabilities across the model. Whenever I do this it appears only in that view and for that capability. I'm sure I have overlooked something but where do I add properties that cut across all current and future instances that I have in my model?
#95
jArchi / Re: load CSV from URL
Last post by Jean-Baptiste Sarrodie - August 03, 2022, 15:18:28 PM
Hi,

you have to create the readFully() function that is able to get a local or remote file and return the content as a string on which you can work. You can find this function here: https://forum.archimatetool.com/index.php?topic=625.msg3499#msg3499

Regards,

JB
#96
jArchi / Re: load CSV from URL
Last post by Phil Beauvoir - August 03, 2022, 09:17:18 AM
I'm also not so brilliant with JS.  :D But is this more of a generalised JS task? I Googled it and found a few ways to connect to a URL and parse the data from the connection.
#97
coArchi / Re: Strange error when importi...
Last post by pkraakman - August 03, 2022, 08:24:10 AM
SOLVED! Apparently I was using a wrong url. I tried with the url pointing to the location of *.git in the remote repository and this worked fine.
#98
jArchi / load CSV from URL
Last post by Alberto - August 02, 2022, 15:40:26 PM
I'm a JS idiot, so please bear with me. I'm trying to update the "Import from CSV" jArchi script from loading a local CSV file, to loading a CSV file from a URL, but can't quite find the JS command that will do so.  load() didn't work. Any other ideas?
#99
coArchi / Strange error when importing m...
Last post by pkraakman - August 02, 2022, 14:21:54 PM
In my company we're using Atlassian, and I have setup a repository on BitBucket and could publish my archimate model to that repository and publish new commits as well.

This was done on MacOS. Now moving over to my Windows 10 system, I am trying to bring that model into my local workspace by the command "Import model into workspace", it starts but after a few seconds I get a rather unfamiliar error which says something like:

"Failed (IOException) to execute: the semaphore timeout period has expired"

Never seen this before, tried to find an answer thru google without success so far.

Anyone ever seen this and has a clue how to solve it?

Many thanks,

Paul
#100
General Archi Discussion / Re: Html reports : excluding v...
Last post by jsimoncello - July 29, 2022, 10:02:04 AM
same script + remove references to hidden views in Alasql
#!/bin/bash
xvfb-run /applis/archi/Archi/Archi -application com.archimatetool.commandline.app -consoleLog -nosplash  --modelrepository.cloneModel https://GIT_URL/PROJECT_NAME/archimate_coop --modelrepository.loadModel /var/tmp/archi/  --modelrepository.userName  USER_LOGIN  --modelrepository.identityFile /applis/archi/archimate_coop/primary_key --modelrepository.passFile /applis/archi/archimate_coop/password.txt   --xmlexchange.export /applis/archi/archimate_coop/export.xml --html.createReport /var/www/html/archi
grep hide-true /var/www/html/archi/*.html | grep -oP 'id-.*html' | xargs rm

cd /var/www/html/archi
echo "deleting reference to hidden views"
grep hide-true /var/www/html/archi/*.html | grep -oP 'id-.*html' | xargs rm
grep hide-true /var/www/html/archi/*.html | grep -oP 'id-.*html' | awk -F'[/.]' '{print $3}' > tmp.txt
sed -i '/hide-true/d' /var/www/html/archi/*.html
sed -r -i -e "s|mode coop</span>|mode coop (generated on $(date))</span>|g" /var/www/html/archi/index.html
cat tmp.txt | while read line
do
   echo "$line"
   sed -i "/$line/d"  /var/www/html/archi/id-*/elements/model.html
done
rm tmp.txt