Archi Forum

Archi Plug-ins => jArchi => Topic started by: Hans.Downe on March 13, 2023, 15:21:13 PM

Title: how to reference content of extended / user properties
Post by: Hans.Downe on March 13, 2023, 15:21:13 PM
Hi I am an Archi Patreon subscriber, and have used jArchi a lot in the past.  But am no JavaScript person.  Have not used in a few months.
Two simple needs:
(1) what is the best source of documentation on the scripting language, espectially object model.
(2) in the attached screenshot, what would be the code for seeing the property LOC_TYPE which may be blank.

Help is appreciated.
akscript to include ext. properties.png
Title: Re: how to reference content of extended / user properties
Post by: Phil Beauvoir on March 13, 2023, 16:13:58 PM
Hi, the jArchi documentation is here:

https://github.com/archimatetool/archi-scripting-plugin/wiki

Also, there's a lot of tips and useful snippets in this forum.

To get a property use one of the "prop()" methods - https://github.com/archimatetool/archi-scripting-plugin/wiki/jArchi-Collection#prop

To find a property value for the key "LOC_TYPE" you would use e.prop("LOC_TYPE").