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 - kepNCI

Pages: 1 ... 6 7 [8] 9
106
Can one change the default toolbox associated with an existing diagram?(or change its type of diagram from Deployment to the custom deployment diagram, which I would assume would also change its default toolbox?)

I have some deployment diagrams that were created before we started to use a custom deployment diagram which has a custom toolbox. I do not want to redo the existing diagrams, but it would be nice if I could effectively change their default toolbox to the custom toolbox rather than the Deployment toolbox so that I do not have to use the "More tools..."  (Ya, I'm lazy).

Karl

107
Automation Interface, Add-Ins and Tools / Re: Custom UI Toolbox
« on: October 19, 2012, 11:44:34 pm »
Yes, all of the UI stereotyped elements are being displayed with the same custom UI icon in the toolbox.  I have not played with it to try and get each one to display their original icon.

108
Automation Interface, Add-Ins and Tools / Re: Custom UI Toolbox
« on: September 08, 2012, 07:20:39 am »
Thanks.  
Was able to "pull" an element from each of the 3 UI toolboxes into my custom MDG toolbox.  Actually was rather easy.  Just looked at an XML containing the elements that I wanted could see the profile name and element name which I then used in my toolbox stereotype. For example, here is an element from each of the three UI profiles:
EAUI::list
simpleIU::simpleButton
win32UI::win32ScrollBarV

Karl

109
Automation Interface, Add-Ins and Tools / Re: Custom UI Toolbox
« on: September 08, 2012, 03:03:48 am »
For question 1, my issue is not referencing the same stereotype multiple times in my toolbox profile diagram,  but how do I initially create a stereotype in my profile diagram that is essentially an element from one of the EA existing IT toolboxes. At the moment I am thinking that I cannot do it.  

Thanks for the tip about using shape scripts. That is what I was thinking.

110
Automation Interface, Add-Ins and Tools / Custom UI Toolbox
« on: September 08, 2012, 01:15:45 am »
I would like to create a toolbox for my MDG that contains UI elements. I am having trouble getting started. I assume I must start with a metaclass and select GUIElement, but I do not know how to set up the associated stereotypes for each UI elelment, including redefining existing UI elelments in simple or win32 toolboxes  So.....  
1)  How can I include existing elements that are included in three other UI toolboxes into my custom toolbox?
2) What is the best way to create custom (company-specific) UI elements which can display differently depending upon tagged values (like many of the elements in the simple UI toolset do).  

Karl

111
When using the icon attribute to assign a 16x16 image for either a custom toolbox or the project browser, you must enter the full path of the image file as the string value of the stereotypte's icon" attribute. I assume the image is then embedded in the resulting xml.

Is there a way to reference an image in the EA Image Manager instead of a file for the icon attribute?  
If so, would the image still be embedded in the resutling xml?

Karl

112
In MDG, i have an enumeration list. I then have an attribute of a stereoype set to the enumeration list.  All is well on that th lst becomes the option in the sttribute's dropdown.

Is there a way to allow the dropdown so that the selection is not required to be in the list?  (I am guessing no)  

113
The use of alternate images seems to get posted once a year, at least. I am new to EA within the year and wanted to use alternate images for stereotyped within an MDG as well as on elemeents on diagrams within a model template referenced within the MDG MTS file.  I initially could not get either to work.  Here is what I know so far.

Alternate Images of stereotypes within MDG Profile:
Does not currently work. This is a known bug that EA says will be fixed in some future build. During the interim EA Support recommended to use shape scripts by adding an "_image" attribute to the stereotype and selecting the browse button [...] on the" Initial Value:" field to open the shape script editor and apply script. Ensure the fully qualified name of the image begins with the technology id followed with image name.
Example Script

shape main
{
layouttype="border";
image("TechID::MyImage.jpg",0,0,100,100);
addsubshape("name","S");

shape name
{
h_align="center";
print("#NAME#");
}
}
  
This does work, that is, when one drops the stereotype element from a toolbox onto a diagram, the image is displayed. Unfortunately one looses the capability to set feature visibility.  In my case I wanted to display the alternate image AND the tagged values on the diagram. For me, displaying the tagged values on some diagrams was more important, so I chose not to use the share script and hope that EA soon fixes the alternate image functionality.


Alternate images within model template diagrams.
Initial problem:
In my model template EAP project I use an alternate image on a
boundary element in a diagram (used to display compnay logo on several
"home page" diagrams). The package is exported as an XML file, which is
referenced in my MTS Control file as the model template. When generating the MDG file, I also select the image file as one of the images to include in the technology. The generated MDG XML file is referenced via the Settings/MDG Technologies/Advanced method. When  I create a new project or add a new package using the generated MDG technology, all the packages/diagrams are correctly created, however any element/stereotype that was associated with an alternate image
reverts back to the original image and properties. However, if I import
the same XML file, the alternate image is correctly displayed, thus
leading me to believe the problem is not with the generated XML, but
with the MDG technology usage.

I was able to get this to work if:
1) I selected an image that was NOT imported via MDG.
2) When exporting package to XML, used UML 2.3 (XMI 2.1) and checked the option to same alternate images.

Hope this helps.

Karl

114
I have been playing with this for awhile.  I logged onto the forum today to post an update of what I have learned and noticed your post.  Bottom-line, alternate images do not work yet in MDG. It is a known bug.

I'll go ahead a post a new thread on what I know so far.

Karl

115
In my MDG profile I have an existing stereotype extened form a node. I added a new attribute to the stereotype and generated a new MDG.

What is the best way to update existing elements in porjects that were created with that stereotype so that they also include the new attritue?

Is the process any different if instead of add a new attribute, you changed the name of an existing attribute?

116
Thanks, I'll try that today.  Similar question, but outside of MDG. I have a project with a package which has a diagram that defines the patch panel defined with 24 ports. I now would like to drop the patch panel onto a different diagram as a simple link. but when I drag the panel over from the project browser, only the panel (node) is displayed, that is, no ports. I then have to drag the ports from the probser onto the linked patch node and arrange them.  Is there a way to drag an existing node with its configured ports onto a different diagram as a simple link?

117
In my MDG profile folder I have metaclass for Node where I extend stereotypes for various network devices such as router, patchpanel, switch, server, etc as well as a metaclass for port where I extend a port stereotype.  I then have created a toolbox and a diagram for network design which reference the defined network  stereotypes. All is working fine.  For example, I can select a PatchPanel device from the network design toolbox and drop in onto s network diagram.

Now I would like to define a specific model in my MDG profile under the a node which would already have the number of ports configured. For example, I was hoping that I could use the network design toolbox to select a patch panel that when puilled onto the diagram would already have all of the ports configured. Can I do that?

This is what I tried to do, but it does not work.
In my MDG profile, I created a stereotype called PatchPanel12 to which I configured 12 ports to it and then connected it to the PatchPanel stereotype as a Generalization.
The PatchPanel12 does appear in my toolbox, but selected and dropped into a diagram, the ports are not there. (FYI: It does pickup the attributes from the parent PatchPanel stereotype)

118
Automation Interface, Add-Ins and Tools / Stereotype background color
« on: April 26, 2012, 01:16:33 am »
I think I must have been dreaming. In my MDG model I had 3 stereotype elements extended from the same metaclass element. I gave the background a different color for each stereotype. When using the model to create a new element on a diagram, the element would have the background color of the profile's stereotype.

I thought that was all I needed to do, but now the profile xml is not picking up my background color (or font color), but instead setting it to the defaults, so now when I create a new element from any of the 3 stereotypes, they all look the same, even though when I saved the profile XML, I have the color and appearance checked.

Seems the only way to get it to work is on my stereotype in myprofile I must now set the background via the Appearance/Default Appearance.

Was it always this way?

(not sure if this had anything to do with it, but seems I had to use the Appearace/Default Appearance option after using a _metatype attribute in the stereotype. I think that may be just a coincidence.)

119
Sorry, qwerty, not understanding your reply.  

I also am using a toolbox, but when I drag the element from the toolbox onto my diagram, the element's tagged values are in alphabetical order rather than the order which I created the underlying stereotype.

Just to be clear, I am not talking about the order of the elements in the toolbox. Are you saying there is a way in my toolbox profile that will force an element to keep the order of its tagged values per its associated stereotype? If so, how?

Karl

120
In my MDG profile I have defined a stereotype to which I have assigned attributes. The attributes are arranged in a specific order. The defined stereotype is then used in a toolbox for the MDG.

However in a diagram using the MGD technology, when I drag the element from the toolbox, the order of the MDG's tagged values are always alphabetical by name. Likewise when I create an RTF template to display the tagged values, they are displayed in alphabetical order.

Is there a way to maintain the order of the tagged values as defined in the profile stereotype? If not, then what is the purpose of having the order in the stereotype attribute definition?

Karl

Pages: 1 ... 6 7 [8] 9