Page 1 of 1

How to remove relation in software?????????????

PostPosted: Tue Jul 16, 2019 12:27 pm
by Ian.Wilson@gd-ms.com
I've been writing code in JavaScript Rhino to read/write Allocations relations inside of a Allocation Matrix Diagram. So far i've been able to read and write Allocations into the Allocation Matrix. I've been using the "Automaton Macro API" Class to create relationships between elements. However, there does not seem to be a way to delete relationships once they've been created. Is there a command to delete relationships?

Re: How to remove relation in software?????????????

PostPosted: Tue Jul 23, 2019 11:30 am
by Ian.Wilson@gd-ms.com
SOLVED:

You can remove any element in the model with the following commands (This is written with JavaScript Rhino):

var a = AutomatonMacroAPI.getOpaqueObjectByPath("Object_Path"); //Select an Element with the given path in the containment tree.

AutomatonMacroAPI.removeElement(a); //Remove Element "a"