Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Hoefler1 on June 07, 2016, 11:56:51 pm

Title: Setting Relationship Matrix Profiles
Post by: Hoefler1 on June 07, 2016, 11:56:51 pm
How can I set up profiles for the Relationship Matrix using a script?

I want to automate the creation process for several profiles which must be added to all of my projects.
So running the script should then do the creation.

Where are these profiles even stored?

There is only a Getter for this: Repository.GetRelationshipMatrix() returns something like:
Code: [Select]
...<Profile linktype="Refine" source="Requirement" target="UseCase" direction="0" targetpackage="{...guid...}"
sourcepackage="{...guid...}" showsourcechildren="1" showtargetchildren="1"/>...
Title: Re: Setting Relationship Matrix Profiles
Post by: qwerty on June 08, 2016, 01:55:30 am
It goes under t_trxtypes. See section 6.14 of my Inside book.

Description: MXProfile
NumericWeight: 1
Notes: The settings applied to the profile. A semi-colon separated list list of options as NAME=VAL entries
TRX: The name of the profile
TRX_ID: The primary key
Style: Always NULL

q.