Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rupertkiwi

Pages: [1] 2 3 ... 7
1
General Board / Re: Profile stereotype tagged values
« on: October 18, 2019, 12:25:45 pm »
Hi Geert,

Yes I have tried the Profile Helper.

It doesn't look like there is a way to add attributes to an element in a Profile. You can add them as tagged values in a Profile but they appear in their own menu for the element which is in a model with the applied profile.
It's not the end of the world, just a little bit confusing.

thanks,
Rupert

2
General Board / Re: v15 new User Permissions
« on: October 17, 2019, 02:51:39 pm »
Thanks

3
General Board / v15 new User Permissions
« on: October 16, 2019, 04:18:09 pm »
Hi there,

Does anyone have any information regarding the new User Permissions that are available in v15?

Configure Model Add-Ins
Configure External Data Sources
Visibility Level Admin

I can't seem to find anything in the help about them

Thanks,
Rupert

4
General Board / Re: Tagged Values on Attributes
« on: October 16, 2019, 04:04:44 pm »
How do you define attributes in the profile that are applied when the stereotype is applied?

5
General Board / Profile stereotype tagged values
« on: October 10, 2019, 12:19:50 pm »
Hi,

I am trying to add tagged values to a stereotype in a Profile.

I have added the tagged value as an attribute and assigned an enumeration to it and renamed the attribute type as the name of the enumeration.
However, the tagged value is not being displayed for the stereotype when I import it as an MDG into another model.

Does anyone have an example of this working?

Thanks,
Rupert

6
General Board / Re: Parent element header line
« on: October 03, 2019, 10:53:17 am »
Hi Roy,

All the 'Show Element Compartments' checkboxes are unchecked. I can't see one in the list called 'Structure'.

Thanks anyway,
Rupert

7
General Board / Re: Parent element header line
« on: October 03, 2019, 09:25:03 am »
Apologies. Yes, items nested in the browser is what I meant.

Thanks,
Rupert

8
General Board / Parent element header line
« on: October 02, 2019, 03:59:04 pm »
Hi there,

When I drag a parent element onto a diagram it is drawing a line underneath the name of the element. It only does this when its children are included inside the parent element.

If I leave the children outside of the parent element in the diagram the line does not appear.

Does anyone know how I can remove this line?

Thanks,
Rupert

9
General Board / Re: Import relationships from Excel via a matrix
« on: October 02, 2019, 08:40:00 am »
Hi Guillaume,

I use the code below to create relationships in Excel. There are a number of further properties that can be changed. You will need to set up your worksheet in the following format:

SourcePackage, SourceType,SourceName,SourceID,TargetPackage,TargetType,TargetName,TargetID,RelationshipType,RelationshipName

Note that the 'RealtionshipType' filed is a drop down with the following options:

Association
Aggregation
Composition
Dependency
Generalization
Realization
Trace
Extension


Sub relationshipcreate(outputws As Worksheet)
    Dim x As Integer
    x = 3
    Do Until IsEmpty(outputws.Cells(x, 4))
        If IsEmpty(outputws.Cells(x, 4)) Or IsEmpty(outputws.Cells(x, 8)) Or IsEmpty(outputws.Cells(x, 9)) Then
            MsgBox "The relationships have not been populated correctly in row " & x & vbCrLf & vbCrLf & "Please check the " & outputws & " tab" & _
            vbCrLf & vbCrLf & x - 3 & " relationships have been created in EA", vbOKOnly
            Exit Sub
        Else
            Call addConnector(outputws.Cells(x, 4), outputws.Cells(x, 8), outputws.Cells(x, 9), outputws.Cells(x, 10))
            x = x + 1
        End If
    Loop
    MsgBox x - 3 & " relationships have been created in EA", vbOKOnly
    outputws.Select
    outputws.Cells.EntireColumn.AutoFit
    outputws.Cells(3, 1).Select
End Sub


Function addConnector(SourceElementID, TargetElementID, ConnectorType, connectorname)
Dim SourceElement As EA.element
Dim newconnector As EA.connector
    Dim repository As EA.repository
    Set eaapp = GetObject(, "EA.App")
Set repository = eaapp.repository
Set SourceElement = repository.GetElementByID(SourceElementID)

Set newconnector = SourceElement.connectors.AddNew(" ", ConnectorType)

newconnector.SupplierID = TargetElementID
newconnector.Name = connectorname
newconnector.Update
Set addConnector = newconnector
End Function

Hope that helps,
Rupert

10
General Board / Re: Shapescript decorations
« on: September 20, 2019, 10:19:04 am »
Also, what is the best practice for using shapescripts?

Should they be applied to a stereotype at a model or profile level?

What if you want the tagged values for the element represented differently in different diagrams?

Rupert

11
General Board / Re: Shapescript decorations
« on: September 20, 2019, 10:16:38 am »
Yes ! That works great, many thanks for your help

12
General Board / Re: Shapescript decorations
« on: September 20, 2019, 10:01:30 am »
Hi Paolo,

Yes, that's fine having several HasTag statements. I just can't seem to get the compartment to colour in.

Thanks,
Rupert

13
General Board / Re: Shapescript decorations
« on: September 20, 2019, 09:37:33 am »
Thanks KP, that works. well.

However I am trying to 'colour' the vertical compartment based on a tagged value :

shape main
{
   layouttype="border";
 noshadow = "true";
 h_align = "left";
   setfillcolor(255,255,255);
 DefSize(340,140);
 roundRect(0,0,100,100,10,10);
 AddSubShape("nameCompartment","N");
 AddSubShape("translations","S");
 AddSubShape("vert","W");
   
   shape vert
   {
      preferredwidth=15;
      rectangle(0,0,100,100);
                  if(hastag("Capability","Manage Customers, Sales, Billing, Products & Services"))
   {
setfillcolor(0, 177, 195);
   }
   }

 shape nameCompartment
 {
    layouttype="topdown";
   h_align = "center";
   editablefield = "name";
   SetFontColor(128,0,0);
   println("#name#");
  }
 
 shape translations
  {
      h_align="CENTER";
      v_align="BOTTOM";
   println("GM: #TAG:GM#");
  }

}
      
   
But I can't seem to get the vertical compartment to colour in.

Do you have any ideas?

Thanks,
Rupert


14
General Board / Re: Shapescript decorations
« on: September 20, 2019, 07:54:53 am »
Hi Eve,

Yes, that question mark looks better now.

What I would like is a vertical compartment on the left hand side of an element that I can colour in depending on its tagged value.

And then I would like horizontal compartments in the remaining space of the element to display the text from other tagged values.

Is that possible?

I only seem to be able to 'stack' horizontal compartments one on top of the other currently.

Thanks,
Rupert

15
General Board / Re: Shapescript decorations
« on: September 19, 2019, 03:04:46 pm »
Thanks for everyone's help.

Does anyone know how to draw a vertical compartment on an element?

Rupert

Pages: [1] 2 3 ... 7