Quote from: Mate on May 16, 2024, 22:38:54 PMUnder properties.appearance there is a checkbox option called "Show Label" that does what I want, so was wondering if that can be done programmatically.
connection.labelVisible = false;
selectedView = ... // Get the View you want to work with
// Find each ArchiMate relation in the View and delete the visual connection
$(selectedView).find('relation').each(connection => {
connection.delete();
});
selectedView = ... // Get the View you want to work with
// Find each ArchiMate relation in the View and reset name
$(selectedView).find('relation').each(connection => {
connection.name = "";
});
selectedView = ... // Get the View you want to work with
// Find each ArchiMate relation in the View and assign label expression
$(selectedView).find('relation').each(connection => {
connection.labelExpression = "${property:empty}";
});
<run .ajs script here> | socat - /tmp/mysock.sock
import { Server } from "net";
const server = Server({});
server.on("connection", (client) => {
client.on("data", (data) => {
// use data here
}
});
server.listen("/tmp/mysock.sock");
Quote from: Phil Beauvoir on May 10, 2024, 18:08:11 PMHi Tom,
thanks for sharing. I wonder if your "isAllowedRelationship" is already taken care of in jArchi itself - https://github.com/archimatetool/archi-scripting-plugin/wiki/Model-Functions#isallowedrelationship - or are you trying to achieve this without a dependency on jArchi?
Phil