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.


Topics - Sorno

Pages: 1 [2]
16
Hi!

I'm trying to set up a MDG which extendes SysML with a few custom stereotypes. For ease of use I also would like to include a couple of stereotypes directly from SysML in my toolbox. Alas, the only way I manage to add anything to my toolbox is if I give the stereotype a new name. But since I don't do any changes in comparison to the original stereotype I would like to keep the same name, just add a button in my Toolbox.

For example, I want to include the connector "copy" to my profile "Extension". In the profile diagram I add the metatype (SysML1.3::copy), add a stereotype (copy), which generalizez the metatype.

In the toolbox profile I then add the attribut Extension::copy(SysML1.3::copy) to the stereotypes that extends the ToolBoxpage.

This work fine, IF I hadn't chosen the name "copy" on my stereotype but instead CustomCopy. But I don't want to change the name...

What else should I do to be able to just include elements and connectors from an MDG in my custom made Toolbox, without changing the name of every single one.


Hoping for your wisdom!

Edit: Rephrased the q to be more to the point...

17
I'm trying to create my first extension to EA. I want to extend the SysML1.3 Requirement to include a couple of tagged values.

I have followed the the chapter "Add Stereotypes and Metaclasses" aswell as http://www.tigerteam.dk/2011/how-to-develop-mdgs-for-enterprise-architect-part-1/.

I have successfully created a profile, added the tagged values as attributes  and finally imported it to a project. I can create a element with my new stereotype. But the tagged values I added as attributes are not there.

My profile looks like this:

<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
      <Documentation id="BCC4F73A-A" name="SysML Extension" version="1.0" notes="SysML Extension"/>
      <Content>
            <Stereotypes>
                  <Stereotype name="Test::requirement" notes="" cx="90" cy="70" generalizes="SysML1.3::requirement" baseStereotypes="SysML1.3::requirement">
                        <TaggedValues>
                              <Tag name="ReqID" type="string" description="" unit="" values="" default=""/>
                              <Tag name="Source" type="string" description="" unit="" values="" default=""/>
                        </TaggedValues>
                  </Stereotype>
                  <Stereotype name="Test::requirement2" notes="" cx="90" cy="70" generalizes="SysML1.3::requirement" baseStereotypes="SysML1.3::requirement"/>
            </Stereotypes>
            <TaggedValueTypes/>
      </Content>
</UMLProfile>

What am I doing wrong? I'm just getting a normal SysML1.3::requirement, but with a new name.


18
I'm trying to create a rtf report based on a master document with nested model documents.

I have created the following structure:

<<master document>> Report1
  (diagram) Report1
  1: <<model document>> Chapter 1
  2: <<model document>> Chapter 2
  2.1:  <<model document>> Chapter 2.1
  2.2:  <<model document>> Chapter 2.2


When I generate the report only the first level is reported, i.e Chapter 1 & 2, not Chapter 2.1 & Chapter 2.2.

Must all model documents be on the same level? Or how do I tell it to go down a level. Using child package in the Template does kinda the same thing, but then it ignores the templates I have set to each level.

19
Hi!

I'm trying to use model scripts in a RTF fragment, but feel a bit lost. All I can find in the documentation are the two pages of "Example RTF Template Fragment Script" and "Example Output of an RTF Template Fragment Script". These don't really cut it for me... Do anyone know about where to read about this feature?

Where can I read about working with the XML-object ("MSXML2.DOMDocument.4.0") ?

How and what parameters are available in the template to pass to the script? The example has #objectid# as a parameter, but don't use it in the actually script.

For example, if I want a script that from a packageId do cool stuff, how do I pass it to the script? Is #objectid# that I should use, and is this the only thing that a template can pass forward?
Found this: Q: What else can be passed into the script function other than Object ID? Can I use a DiagramID?
A: You can also pass a PackageID. We plan to support DiagramID as well, but this capability is not available in the current release (10.0.1004).

Thank you for any help or hints!


20
Hi,

I'm lost trying to output tab in the Output-window. It seems to ignore \t. Is this correct? Creating a newline with \n works tho.



Edit: I noticed that vbTab actually adds a tab to the text, but the output window don't show it. I guess it's not possible to show tabs in the output then.

Case closed I guess.

Pages: 1 [2]