Skip to content

Instantly share code, notes, and snippets.

@jbsarrodie
jbsarrodie / Merge multiple concepts (and delete others).ajs
Last active Aug 27, 2020
#jArchi script to merge multiple concepts (and delete others)
View Merge multiple concepts (and delete others).ajs
// Merge multiple concepts (and delete others)
//
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
//
// This script merges multiple concepts (and delete others)
//
// Version 1.1 (2020/01/20) Add an option to keep only the content of the "target" concept
// Version 1.0 (2019/11/12) First version published
//
// Known limitation: works only on elements, not relationships
@jbsarrodie
jbsarrodie / RemoveBentpoints.ajs
Created Sep 14, 2018
#jArchi script to remove bendpoints on selected relationships
View RemoveBentpoints.ajs
// RemoveBentpoints
//
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
//
// This script takes a selection of visual objects as input, filter it to keep only relationships and remove all their bendpoints
//
// (c) 2018 Jean-Baptiste Sarrodie
$(selection).filter("relationship").filter(function(o) {return o.view}).each(function(o) {
var view = o.view;
@felpasl
felpasl / ExportAllToMarkdown.ajs
Created Jun 11, 2019
#jArchi Create markdown to all Views from file based on smileham/Export to Markdown.ajs
View ExportAllToMarkdown.ajs
/*
* Export All Views to Markdown
*
* Based on smileham/Export to Markdown.ajs - https://gist.github.com/smileham/578bbbb88dc0ed5a1403f3b98711ec25
* (c) 2018 Steven Mileham
*
*
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
*
* Markdown - https://www.markdownguide.org/
@tkazimie
tkazimie / fromCsv.ajs
Last active Jul 29, 2021
#jArchi This scripts exports selected elements to the CSV in fixed structure and import elements to the model and the current view
View fromCsv.ajs
/*
* Import Elements from CSV
*
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
* Requires PapaParse - https://www.papaparse.com/
*
* This script imports CSV containg followin structure:
* * Name
* * Documentation
* * Type (element type)
@FrancoisCoudeville
FrancoisCoudeville / Step by step script examples - v0.1.ajs
Created May 26, 2021
jArchi Step by step Tutorial Beginner Guide script example creating, updating, navigating, deleting objects, relationship #jArchi
View Step by step script examples - v0.1.ajs
/****************************************
* Step by Step JArchi script examples *
* v0.1 *
* Francois Coudeville *
* May 2021 #jArchi *
* #Beginner #Guide #Tutorial #Example *
****************************************/
//---------
// 1 Utils